Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001113/0.001113, allocations: 90.72 kB / 16.65 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001272/0.001273, allocations: 177 kB / 17.56 MB, free: 6.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.571/1.571, allocations: 223.3 MB / 241.6 MB, free: 14.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002957/0.0002958, allocations: 8 kB / 301.5 MB, free: 5.809 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.124/0.1244, allocations: 50.41 MB / 352 MB, free: 3.379 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.003374/0.1278, allocations: 2.436 MB / 354.4 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001513/0.1293, allocations: 0.6624 MB / 355.1 MB, free: 264 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002807/0.1296, allocations: 4 kB / 355.1 MB, free: 260 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001767/0.1298, allocations: 27.77 kB / 355.1 MB, free: 232 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003309/0.1302, allocations: 79.38 kB / 355.2 MB, free: 152 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000355/0.1305, allocations: 87.91 kB / 355.3 MB, free: 64 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005112/0.131, allocations: 342.5 kB / 355.6 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002126/0.1313, allocations: 65.14 kB / 355.7 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002329/0.1315, allocations: 111.5 kB / 355.8 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002435/0.1318, allocations: 131.4 kB / 355.9 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.229e-05/0.1318, allocations: 19.98 kB / 355.9 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.379e-05/0.1319, allocations: 19.94 kB / 355.9 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.852e-05/0.132, allocations: 47.77 kB / 356 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001825/0.1321, allocations: 161 kB / 356.1 MB, free: 15.17 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003215/0.1325, allocations: 299.1 kB / 356.4 MB, free: 14.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1325, allocations: 0 / 356.4 MB, free: 14.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1325, allocations: 0 / 356.4 MB, free: 14.88 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.175e-05/0.1325, allocations: 0 / 356.4 MB, free: 14.88 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001283/0.1338, allocations: 0.6068 MB / 357 MB, free: 14.21 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/0.1339, allocations: 12.03 kB / 357 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001428/0.134, allocations: 58.72 kB / 357.1 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.513e-05/0.1341, allocations: 28.66 kB / 357.1 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003968/0.1345, allocations: 275.6 kB / 357.4 MB, free: 13.8 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.395e-05/0.1346, allocations: 20.81 kB / 357.4 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.635e-05/0.1346, allocations: 20.36 kB / 357.4 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007003/0.1353, allocations: 293.9 kB / 357.7 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.1353, allocations: 0 / 357.7 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.62e-05/0.1354, allocations: 8 kB / 357.7 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.125e-05/0.1354, allocations: 11.98 kB / 357.7 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007914/0.1362, allocations: 269.6 kB / 358 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001719/0.1379, allocations: 0.9754 MB / 359 MB, free: 12.13 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008903/0.1388, allocations: 274.5 kB / 359.3 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003591/0.1392, allocations: 124.8 kB / 359.4 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.357e-05/0.1392, allocations: 0 / 359.4 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005329/0.1398, allocations: 197.7 kB / 359.6 MB, free: 11.51 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.833e-06/0.1398, allocations: 3.938 kB / 359.6 MB, free: 11.51 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002496/0.1423, allocations: 0.7325 MB / 360.3 MB, free: 10.75 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.311e-05/0.1424, allocations: 106.8 kB / 360.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002999/0.1427, allocations: 270.4 kB / 360.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.115e-05/0.1427, allocations: 33.7 kB / 360.7 MB, free: 10.32 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001309/0.1429, allocations: 175.9 kB / 360.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.777e-05/0.1429, allocations: 47.39 kB / 360.9 MB, free: 10.09 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.778e-05/0.143, allocations: 25.7 kB / 360.9 MB, free: 10.06 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.1431, allocations: 334.8 kB / 361.3 MB, free: 9.727 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003697/0.1435, allocations: 107.9 kB / 361.4 MB, free: 9.621 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000402/0.1439, allocations: 184.4 kB / 361.6 MB, free: 9.41 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007212/0.1446, allocations: 299.4 kB / 361.9 MB, free: 9.09 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.1446, allocations: 0 / 361.9 MB, free: 9.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.00133/0.146, allocations: 475.6 kB / 362.3 MB, free: 8.609 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.861e-05/0.146, allocations: 33.7 kB / 362.3 MB, free: 8.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.1461, allocations: 4 kB / 362.4 MB, free: 8.566 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003886/0.1464, allocations: 84.73 kB / 362.4 MB, free: 8.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001968/0.1467, allocations: 43.97 kB / 362.5 MB, free: 8.438 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002608/0.1493, allocations: 1.795 MB / 364.3 MB, free: 6.504 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003551/0.1496, allocations: 59.89 kB / 364.3 MB, free: 6.445 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.449e-05/0.1497, allocations: 8 kB / 364.3 MB, free: 6.438 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001577/0.1498, allocations: 137.8 kB / 364.5 MB, free: 6.293 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.087e-05/0.1499, allocations: 23.72 kB / 364.5 MB, free: 6.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.153e-05/0.1499, allocations: 25.83 kB / 364.5 MB, free: 6.242 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.15, allocations: 0 / 364.5 MB, free: 6.242 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/0.15, allocations: 4.109 kB / 364.5 MB, free: 6.238 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.15, allocations: 7.984 kB / 364.5 MB, free: 6.23 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003255/0.1503, allocations: 301.4 kB / 364.8 MB, free: 5.887 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.1503, allocations: 0 / 364.8 MB, free: 5.887 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001433/0.1505, allocations: 27.97 kB / 364.9 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00028/0.1508, allocations: 88.73 kB / 364.9 MB, free: 5.77 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.397e-05/0.1508, allocations: 0 / 364.9 MB, free: 5.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002266/0.1531, allocations: 1.667 MB / 366.6 MB, free: 3.973 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.1531, allocations: 7.969 kB / 366.6 MB, free: 3.965 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00114/0.1542, allocations: 393.5 kB / 367 MB, free: 3.559 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001035/0.1543, allocations: 104.8 kB / 367.1 MB, free: 3.438 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.518e-05/0.1544, allocations: 192 / 367.1 MB, free: 3.438 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002806/0.1547, allocations: 47.95 kB / 367.2 MB, free: 3.391 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.972e-05/0.1548, allocations: 23.97 kB / 367.2 MB, free: 3.367 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.362e-05/0.1548, allocations: 4 kB / 367.2 MB, free: 3.363 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002168/0.155, allocations: 189.9 kB / 367.4 MB, free: 3.18 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.155, allocations: 3.938 kB / 367.4 MB, free: 3.176 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003853/0.1554, allocations: 71.91 kB / 367.4 MB, free: 3.105 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001561/0.157, allocations: 0.9369 MB / 368.4 MB, free: 2.133 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001171/0.1582, allocations: 445.7 kB / 368.8 MB, free: 1.676 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.546e-06/0.1582, allocations: 0 / 368.8 MB, free: 1.676 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000516/0.1587, allocations: 242.8 kB / 369 MB, free: 1.426 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003697/0.1591, allocations: 50.47 kB / 369.1 MB, free: 1.383 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2232/0.3823, allocations: 3.111 MB / 372.2 MB, free: 22.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002635/0.3826, allocations: 0.7436 MB / 373 MB, free: 22.21 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001525/0.3828, allocations: 25.3 kB / 373 MB, free: 22.21 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001244/0.3829, allocations: 74.92 kB / 373 MB, free: 22.2 MB / 302.1 MB Notification: Performance of SimCode: time 1.282e-06/0.3829, allocations: 0 / 373 MB, free: 22.2 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02236/0.4053, allocations: 5.705 MB / 378.8 MB, free: 21.9 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001581/0.4055, allocations: 251.4 kB / 379 MB, free: 21.64 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.041/2.447, allocations: 0 / 379 MB, free: 21.64 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_SchmittTrigger.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/SchmittTrigger/SchmittTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,opAmp.out.v,opAmp.out.i Variables in the result:R1,R2,Vin,Vns,Vps,f,ground.p.i,ground.p.v,k,opAmp.V0,opAmp.Vns,opAmp.Vps,opAmp.homotopyType,opAmp.i_s,opAmp.in_n.i,opAmp.in_n.v,opAmp.in_p.i,opAmp.in_p.v,opAmp.out.i,opAmp.out.v,opAmp.p_in,opAmp.p_out,opAmp.p_s,opAmp.strict,opAmp.useSupply,opAmp.v_in,opAmp.v_out,opAmp.vns,opAmp.vps,r1.LossPower,r1.R,r1.R_actual,r1.T,r1.T_heatPort,r1.T_ref,r1.alpha,r1.i,r1.n.i,r1.n.v,r1.p.i,r1.p.v,r1.useHeatPort,r1.v,r2.LossPower,r2.R,r2.R_actual,r2.T,r2.T_heatPort,r2.T_ref,r2.alpha,r2.i,r2.n.i,r2.n.v,r2.p.i,r2.p.v,r2.useHeatPort,r2.v,time,vHys,vIn.V,vIn.falling,vIn.i,vIn.n.i,vIn.n.v,vIn.nperiod,vIn.offset,vIn.p.i,vIn.p.v,vIn.period,vIn.rising,vIn.signalSource.amplitude,vIn.signalSource.falling,vIn.signalSource.nperiod,vIn.signalSource.offset,vIn.signalSource.period,vIn.signalSource.rising,vIn.signalSource.startTime,vIn.signalSource.width,vIn.signalSource.y,vIn.startTime,vIn.v,vIn.width,vOut.n.i,vOut.n.v,vOut.p.i,vOut.p.v,vOut.v