Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.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.InvertingSchmittTrigger,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger",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.0009421/0.0009418, allocations: 93.88 kB / 16.65 MB, free: 6.586 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.0009744/0.0009745, allocations: 187.3 kB / 17.57 MB, free: 6.199 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.51/1.51, allocations: 223.3 MB / 241.6 MB, free: 212 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002975/0.0002974, allocations: 8 kB / 301.5 MB, free: 6.035 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.1268, allocations: 50.42 MB / 352 MB, free: 3.609 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.003882/0.1308, allocations: 2.432 MB / 354.4 MB, free: 1.16 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001655/0.1324, allocations: 0.6701 MB / 355.1 MB, free: 496 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003138/0.1328, allocations: 7.938 kB / 355.1 MB, free: 488 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000206/0.133, allocations: 35.69 kB / 355.1 MB, free: 452 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003736/0.1334, allocations: 71.45 kB / 355.2 MB, free: 380 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003864/0.1338, allocations: 91.84 kB / 355.3 MB, free: 288 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005347/0.1343, allocations: 334.7 kB / 355.6 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002308/0.1346, allocations: 80.98 kB / 355.7 MB, free: 15.87 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002739/0.1349, allocations: 111.4 kB / 355.8 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002682/0.1351, allocations: 131.4 kB / 355.9 MB, free: 15.63 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.626e-05/0.1352, allocations: 19.94 kB / 355.9 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.809e-05/0.1353, allocations: 16 kB / 355.9 MB, free: 15.6 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.119e-05/0.1353, allocations: 43.77 kB / 356 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001945/0.1355, allocations: 157 kB / 356.1 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003573/0.1359, allocations: 311 kB / 356.4 MB, free: 15.09 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1359, allocations: 0 / 356.4 MB, free: 15.09 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.1359, allocations: 0 / 356.4 MB, free: 15.09 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.167e-06/0.1359, allocations: 0 / 356.4 MB, free: 15.09 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.00139/0.1373, allocations: 0.6068 MB / 357 MB, free: 14.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.564e-05/0.1374, allocations: 12.03 kB / 357.1 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001065/0.1375, allocations: 54.72 kB / 357.1 MB, free: 14.35 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000105/0.1376, allocations: 32.66 kB / 357.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003986/0.138, allocations: 279.6 kB / 357.4 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.97e-05/0.1381, allocations: 12.81 kB / 357.4 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.989e-05/0.1381, allocations: 24.36 kB / 357.5 MB, free: 13.97 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007248/0.1388, allocations: 293.9 kB / 357.7 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.1389, allocations: 0 / 357.7 MB, free: 13.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.846e-05/0.1389, allocations: 8 kB / 357.7 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.175e-06/0.1389, allocations: 4 kB / 357.8 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008187/0.1397, allocations: 277.6 kB / 358 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001768/0.1415, allocations: 0.9753 MB / 359 MB, free: 12.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008825/0.1424, allocations: 266.6 kB / 359.3 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003522/0.1428, allocations: 116.8 kB / 359.4 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.643e-05/0.1428, allocations: 4 kB / 359.4 MB, free: 11.95 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005496/0.1434, allocations: 197.7 kB / 359.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.363e-06/0.1434, allocations: 0 / 359.6 MB, free: 11.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002486/0.1459, allocations: 0.7332 MB / 360.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.432e-05/0.146, allocations: 102.8 kB / 360.4 MB, free: 10.85 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003274/0.1463, allocations: 274.5 kB / 360.7 MB, free: 10.58 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.042e-05/0.1464, allocations: 29.7 kB / 360.7 MB, free: 10.54 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001443/0.1465, allocations: 183.7 kB / 360.9 MB, free: 10.36 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.219e-05/0.1466, allocations: 47.44 kB / 360.9 MB, free: 10.31 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.792e-05/0.1466, allocations: 25.7 kB / 361 MB, free: 10.28 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.1468, allocations: 330.8 kB / 361.3 MB, free: 9.949 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003671/0.1471, allocations: 119.9 kB / 361.4 MB, free: 9.832 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004328/0.1476, allocations: 202.3 kB / 361.6 MB, free: 9.598 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007624/0.1484, allocations: 316.7 kB / 361.9 MB, free: 9.254 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.1484, allocations: 0 / 361.9 MB, free: 9.254 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001336/0.1497, allocations: 487.6 kB / 362.4 MB, free: 8.762 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.18e-05/0.1498, allocations: 29.7 kB / 362.4 MB, free: 8.727 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.1498, allocations: 4 kB / 362.4 MB, free: 8.723 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003969/0.1502, allocations: 84.86 kB / 362.5 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002105/0.1504, allocations: 47.91 kB / 362.5 MB, free: 8.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002792/0.1532, allocations: 1.861 MB / 364.4 MB, free: 6.59 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003481/0.1536, allocations: 63.89 kB / 364.5 MB, free: 6.527 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.604e-05/0.1536, allocations: 8 kB / 364.5 MB, free: 6.52 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (21): * Single equations (assignments): 19 * 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.000163/0.1538, allocations: 141.7 kB / 364.6 MB, free: 6.371 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.117e-05/0.1538, allocations: 23.72 kB / 364.6 MB, free: 6.348 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.099e-05/0.1539, allocations: 25.83 kB / 364.7 MB, free: 6.32 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.1539, allocations: 4 kB / 364.7 MB, free: 6.316 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/0.1539, allocations: 7.938 kB / 364.7 MB, free: 6.309 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.1539, allocations: 0 / 364.7 MB, free: 6.309 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003009/0.1542, allocations: 289.5 kB / 365 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.1542, allocations: 4 kB / 365 MB, free: 5.973 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001398/0.1544, allocations: 23.98 kB / 365 MB, free: 5.949 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002913/0.1547, allocations: 80.8 kB / 365.1 MB, free: 5.867 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.747e-05/0.1547, allocations: 7.984 kB / 365.1 MB, free: 5.859 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002378/0.1571, allocations: 1.772 MB / 366.8 MB, free: 3.957 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.1571, allocations: 0 / 366.8 MB, free: 3.957 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001153/0.1583, allocations: 397.5 kB / 367.2 MB, free: 3.547 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.682e-05/0.1584, allocations: 104.8 kB / 367.3 MB, free: 3.426 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.434e-05/0.1584, allocations: 0 / 367.3 MB, free: 3.426 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002708/0.1587, allocations: 51.89 kB / 367.4 MB, free: 3.375 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.7e-05/0.1588, allocations: 15.98 kB / 367.4 MB, free: 3.359 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.697e-05/0.1588, allocations: 7.984 kB / 367.4 MB, free: 3.352 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002145/0.159, allocations: 190 kB / 367.6 MB, free: 3.168 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.159, allocations: 0 / 367.6 MB, free: 3.168 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003968/0.1594, allocations: 71.84 kB / 367.7 MB, free: 3.098 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.001562/0.161, allocations: 0.9482 MB / 368.6 MB, free: 2.117 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001366/0.1624, allocations: 0.5095 MB / 369.1 MB, free: 1.582 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.1624, allocations: 3.938 kB / 369.1 MB, free: 1.578 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000521/0.1629, allocations: 247 kB / 369.4 MB, free: 1.324 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000376/0.1633, allocations: 58.41 kB / 369.4 MB, free: 1.273 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2071/0.3704, allocations: 3.68 MB / 373.1 MB, free: 23.46 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002616/0.3707, allocations: 0.747 MB / 373.8 MB, free: 22.76 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001662/0.3709, allocations: 23.3 kB / 373.9 MB, free: 22.76 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001396/0.371, allocations: 73.22 kB / 373.9 MB, free: 22.75 MB / 302.1 MB Notification: Performance of SimCode: time 1.282e-06/0.371, allocations: 0 / 373.9 MB, free: 22.75 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02149/0.3925, allocations: 5.716 MB / 379.7 MB, free: 22.35 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001801/0.3927, allocations: 258.2 kB / 379.9 MB, free: 22.09 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.108/2.501, allocations: 3.938 kB / 379.9 MB, free: 22.09 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_OpAmps_InvertingSchmittTrigger.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingSchmittTrigger/InvertingSchmittTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.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