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: translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001136/0.001136, allocations: 97.22 kB / 16.3 MB, free: 5.562 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.001194/0.001194, allocations: 184 kB / 17.19 MB, free: 5.496 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.45/1.45, allocations: 223.2 MB / 241.1 MB, free: 364 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003346/0.0003348, allocations: 11.94 kB / 300.7 MB, free: 6.457 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1407/0.1411, allocations: 50.41 MB / 351.2 MB, free: 4.035 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger): time 0.003641/0.1448, allocations: 2.235 MB / 353.4 MB, free: 1.785 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001357/0.1462, allocations: 0.655 MB / 354 MB, free: 1.125 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001442/0.1463, allocations: 7.938 kB / 354.1 MB, free: 1.117 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.386e-05/0.1464, allocations: 35.75 kB / 354.1 MB, free: 1.082 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002998/0.1467, allocations: 95.72 kB / 354.2 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002973/0.1471, allocations: 75.78 kB / 354.3 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003952/0.1475, allocations: 223.5 kB / 354.5 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002061/0.1477, allocations: 69 kB / 354.5 MB, free: 0.625 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001899/0.1479, allocations: 115.5 kB / 354.7 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002311/0.1481, allocations: 127.5 kB / 354.8 MB, free: 396 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.553e-05/0.1482, allocations: 20 kB / 354.8 MB, free: 376 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.512e-05/0.1483, allocations: 16 kB / 354.8 MB, free: 360 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.007e-05/0.1484, allocations: 43.81 kB / 354.9 MB, free: 316 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.487e-05/0.1485, allocations: 73.52 kB / 354.9 MB, free: 236 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003512/0.1488, allocations: 239.6 kB / 355.2 MB, free: 15.99 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.805e-06/0.1488, allocations: 0 / 355.2 MB, free: 15.99 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1489, allocations: 0 / 355.2 MB, free: 15.99 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.827e-06/0.1489, allocations: 0 / 355.2 MB, free: 15.99 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.001612/0.1505, allocations: 0.6182 MB / 355.8 MB, free: 15.32 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.397e-05/0.1506, allocations: 8.031 kB / 355.8 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.651e-05/0.1507, allocations: 27.72 kB / 355.8 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004264/0.1511, allocations: 270.5 kB / 356.1 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.833e-05/0.1511, allocations: 12.44 kB / 356.1 MB, free: 14.97 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.156e-05/0.1512, allocations: 20 kB / 356.1 MB, free: 14.95 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009608/0.1522, allocations: 289.7 kB / 356.4 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.1522, allocations: 0 / 356.4 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.605e-05/0.1523, allocations: 15.94 kB / 356.4 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.033e-05/0.1523, allocations: 4 kB / 356.4 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001227/0.1535, allocations: 269.6 kB / 356.7 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001836/0.1554, allocations: 0.9793 MB / 357.7 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000828/0.1562, allocations: 278.5 kB / 357.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.075e-05/0.1563, allocations: 0 / 357.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005087/0.1568, allocations: 197.8 kB / 358.1 MB, free: 12.82 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.343e-06/0.1568, allocations: 0 / 358.1 MB, free: 12.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.002342/0.1591, allocations: 0.7324 MB / 358.9 MB, free: 12.06 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.652e-05/0.1592, allocations: 106.8 kB / 359 MB, free: 11.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002504/0.1595, allocations: 274.6 kB / 359.2 MB, free: 11.66 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.323e-05/0.1595, allocations: 25.7 kB / 359.2 MB, free: 11.63 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001019/0.1596, allocations: 180 kB / 359.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.36e-05/0.1596, allocations: 39.39 kB / 359.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.317e-05/0.1597, allocations: 11.94 kB / 359.5 MB, free: 11.4 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001008/0.1598, allocations: 334.8 kB / 359.8 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003347/0.1601, allocations: 111.9 kB / 359.9 MB, free: 10.96 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003688/0.1605, allocations: 194.2 kB / 360.1 MB, free: 10.73 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003634/0.1609, allocations: 153.6 kB / 360.3 MB, free: 10.57 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.1609, allocations: 4 kB / 360.3 MB, free: 10.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.001195/0.1621, allocations: 487.5 kB / 360.7 MB, free: 10.08 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.113e-05/0.1621, allocations: 36.36 kB / 360.8 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.1621, allocations: 0 / 360.8 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004086/0.1626, allocations: 84.86 kB / 360.8 MB, free: 9.953 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002055/0.1628, allocations: 51.91 kB / 360.9 MB, free: 9.902 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002706/0.1655, allocations: 1.881 MB / 362.8 MB, free: 7.883 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003485/0.1659, allocations: 55.88 kB / 362.8 MB, free: 7.828 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.268e-05/0.1659, allocations: 8 kB / 362.8 MB, free: 7.82 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 ($whenCondition1,$PRE.vIn.signalSource.T_start,vIn.signalSource.T_start,$PRE.vIn.signalSource.count,vIn.signalSource.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001505/0.1661, allocations: 142 kB / 363 MB, free: 7.672 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.495e-05/0.1661, allocations: 27.7 kB / 363 MB, free: 7.645 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.592e-05/0.1661, allocations: 29.83 kB / 363 MB, free: 7.613 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.1662, allocations: 3.953 kB / 363 MB, free: 7.609 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.454e-06/0.1662, allocations: 128 / 363 MB, free: 7.609 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.1662, allocations: 7.984 kB / 363.1 MB, free: 7.602 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002579/0.1664, allocations: 293.3 kB / 363.3 MB, free: 7.266 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.1665, allocations: 0 / 363.3 MB, free: 7.266 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001414/0.1666, allocations: 31.97 kB / 363.4 MB, free: 7.234 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002682/0.1669, allocations: 80.8 kB / 363.4 MB, free: 7.152 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.256e-05/0.1669, allocations: 0 / 363.4 MB, free: 7.152 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002272/0.1692, allocations: 1.795 MB / 365.2 MB, free: 5.227 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1692, allocations: 0 / 365.2 MB, free: 5.227 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001097/0.1703, allocations: 397.5 kB / 365.6 MB, free: 4.816 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.47e-05/0.1704, allocations: 108.8 kB / 365.7 MB, free: 4.691 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.561e-05/0.1704, allocations: 4 kB / 365.7 MB, free: 4.688 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000258/0.1707, allocations: 39.97 kB / 365.8 MB, free: 4.648 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.628e-05/0.1708, allocations: 19.97 kB / 365.8 MB, free: 4.629 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.679e-05/0.1708, allocations: 12.05 kB / 365.8 MB, free: 4.617 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001835/0.171, allocations: 201.9 kB / 366 MB, free: 4.422 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.171, allocations: 0 / 366 MB, free: 4.422 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004446/0.1714, allocations: 60 kB / 366.1 MB, free: 4.363 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001805/0.1716, allocations: 111.2 kB / 366.2 MB, free: 4.242 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001327/0.173, allocations: 0.5056 MB / 366.7 MB, free: 3.711 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.173, allocations: 4 kB / 366.7 MB, free: 3.707 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004546/0.1734, allocations: 247 kB / 366.9 MB, free: 3.453 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002706/0.1737, allocations: 43.23 kB / 367 MB, free: 3.414 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002963/0.1767, allocations: 1.048 MB / 368 MB, free: 2.34 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002599/0.177, allocations: 0.7484 MB / 368.8 MB, free: 1.566 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001062/0.1771, allocations: 34.27 kB / 368.8 MB, free: 1.531 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.001e-05/0.1771, allocations: 15.44 kB / 368.8 MB, free: 1.516 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1772, allocations: 0 / 368.8 MB, free: 1.516 MB / 302.1 MB Notification: Performance of Templates: time 0.1724/0.3496, allocations: 3.306 MB / 372.1 MB, free: 24.33 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.makefile (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 & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/InvertingSchmittTrigger/InvertingSchmittTrigger.csv","../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.InvertingSchmittTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches