Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.SchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 114.6 kB / 17.28 MB, free: 6.219 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.000966/0.000966, allocations: 189.3 kB / 18.2 MB, free: 5.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.031/2.031, allocations: 205.1 MB / 224.1 MB, free: 12.36 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001429, allocations: 55.92 kB / 280.2 MB, free: 3.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1574/0.1588, allocations: 46.64 MB / 326.8 MB, free: 4.781 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger): time 0.005252/0.1641, allocations: 2.757 MB / 329.6 MB, free: 2 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002089/0.1663, allocations: 0.706 MB / 330.3 MB, free: 1.285 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002766/0.1666, allocations: 8 kB / 330.3 MB, free: 1.277 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002806/0.1669, allocations: 39.69 kB / 330.3 MB, free: 1.238 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002729/0.1672, allocations: 71.45 kB / 330.4 MB, free: 1.168 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004953/0.1677, allocations: 83.84 kB / 330.5 MB, free: 1.086 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005063/0.1682, allocations: 354.6 kB / 330.8 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003765/0.1686, allocations: 88.7 kB / 330.9 MB, free: 0.6562 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002109/0.1688, allocations: 131.4 kB / 331 MB, free: 0.5273 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002242/0.1691, allocations: 143.4 kB / 331.2 MB, free: 396 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.856e-05/0.1692, allocations: 35.94 kB / 331.2 MB, free: 360 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.014e-05/0.1692, allocations: 28 kB / 331.2 MB, free: 332 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.677e-05/0.1693, allocations: 75.67 kB / 331.3 MB, free: 256 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001851/0.1695, allocations: 143.3 kB / 331.4 MB, free: 112 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004679/0.17, allocations: 323.1 kB / 331.8 MB, free: 15.79 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.706e-06/0.17, allocations: 0 / 331.8 MB, free: 15.79 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.17, allocations: 4 kB / 331.8 MB, free: 15.79 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.098e-05/0.17, allocations: 0 / 331.8 MB, free: 15.79 MB / 286.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.001475/0.1715, allocations: 0.6379 MB / 332.4 MB, free: 15.09 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.403e-05/0.1716, allocations: 8.031 kB / 332.4 MB, free: 15.09 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001122/0.1717, allocations: 36.56 kB / 332.4 MB, free: 15.05 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004029/0.1721, allocations: 275.7 kB / 332.7 MB, free: 14.74 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.399e-05/0.1722, allocations: 20.81 kB / 332.7 MB, free: 14.72 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.73e-05/0.1722, allocations: 16.38 kB / 332.7 MB, free: 14.7 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006594/0.1729, allocations: 259.5 kB / 333 MB, free: 14.45 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.491e-05/0.1729, allocations: 0 / 333 MB, free: 14.45 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.734e-05/0.1729, allocations: 4 kB / 333 MB, free: 14.44 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.868e-06/0.1729, allocations: 4 kB / 333 MB, free: 14.44 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000669/0.1736, allocations: 253.5 kB / 333.3 MB, free: 14.19 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001794/0.1754, allocations: 0.8778 MB / 334.1 MB, free: 13.24 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008593/0.1763, allocations: 238.5 kB / 334.4 MB, free: 13 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003778/0.1767, allocations: 100.8 kB / 334.5 MB, free: 12.9 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.573e-05/0.1768, allocations: 4 kB / 334.5 MB, free: 12.89 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006934/0.1775, allocations: 177.8 kB / 334.6 MB, free: 12.7 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 3.176e-06/0.1775, allocations: 0 / 334.6 MB, free: 12.7 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.002515/0.18, allocations: 0.6668 MB / 335.3 MB, free: 12 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001155/0.1801, allocations: 118.8 kB / 335.4 MB, free: 11.86 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003958/0.1805, allocations: 266.6 kB / 335.7 MB, free: 11.59 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.312e-05/0.1806, allocations: 25.7 kB / 335.7 MB, free: 11.56 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001414/0.1807, allocations: 179.9 kB / 335.9 MB, free: 11.38 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.232e-05/0.1808, allocations: 39.45 kB / 335.9 MB, free: 11.34 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.436e-05/0.1809, allocations: 45.64 kB / 336 MB, free: 11.29 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001426/0.181, allocations: 326.8 kB / 336.3 MB, free: 10.96 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003508/0.1814, allocations: 112.8 kB / 336.4 MB, free: 10.85 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003646/0.1818, allocations: 155.7 kB / 336.5 MB, free: 10.67 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000645/0.1824, allocations: 262.5 kB / 336.8 MB, free: 10.39 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.1824, allocations: 4 kB / 336.8 MB, free: 10.39 MB / 286.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.001163/0.1836, allocations: 439.5 kB / 337.2 MB, free: 9.941 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.233e-05/0.1837, allocations: 33.69 kB / 337.3 MB, free: 9.902 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.2e-05/0.1837, allocations: 4 kB / 337.3 MB, free: 9.898 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000474/0.1842, allocations: 80.83 kB / 337.4 MB, free: 9.816 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001881/0.1844, allocations: 35.91 kB / 337.4 MB, free: 9.781 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003003/0.1874, allocations: 1.97 MB / 339.4 MB, free: 7.664 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003615/0.1878, allocations: 52.03 kB / 339.4 MB, free: 7.613 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.218e-05/0.1878, allocations: 11.98 kB / 339.4 MB, free: 7.602 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003706/0.1882, allocations: 176 kB / 339.6 MB, free: 7.426 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003067/0.1885, allocations: 143.7 kB / 339.7 MB, free: 7.258 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005026/0.189, allocations: 227.4 kB / 340 MB, free: 7.008 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.941e-06/0.189, allocations: 3.938 kB / 340 MB, free: 7.004 MB / 286.1 MB Notification: Performance of matching and sorting (n=23) (initialization_lambda0): time 0.0007371/0.1898, allocations: 315 kB / 340.3 MB, free: 6.684 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.38e-05/0.1898, allocations: 33.7 kB / 340.3 MB, free: 6.645 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.1899, allocations: 4 kB / 340.3 MB, free: 6.641 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001388/0.19, allocations: 36.78 kB / 340.3 MB, free: 6.602 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001719/0.1902, allocations: 31.97 kB / 340.4 MB, free: 6.57 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001264/0.1915, allocations: 1.611 MB / 342 MB, free: 4.824 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002898/0.1918, allocations: 43.8 kB / 342 MB, free: 4.781 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.866e-05/0.1918, allocations: 12 kB / 342 MB, free: 4.77 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (18): * Single equations (assignments): 16 * 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.0002198/0.192, allocations: 192.1 kB / 342.2 MB, free: 4.574 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.613e-05/0.1921, allocations: 23.72 kB / 342.2 MB, free: 4.551 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.064e-05/0.1921, allocations: 33.89 kB / 342.3 MB, free: 4.52 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.1922, allocations: 0 / 342.3 MB, free: 4.52 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.1922, allocations: 0 / 342.3 MB, free: 4.52 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.1922, allocations: 0 / 342.3 MB, free: 4.52 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003884/0.1926, allocations: 301.4 kB / 342.6 MB, free: 4.176 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.1926, allocations: 0 / 342.6 MB, free: 4.176 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001277/0.1927, allocations: 23.97 kB / 342.6 MB, free: 4.152 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002625/0.193, allocations: 80.73 kB / 342.7 MB, free: 4.07 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.121e-05/0.193, allocations: 0 / 342.7 MB, free: 4.07 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002326/0.1953, allocations: 1.75 MB / 344.4 MB, free: 2.18 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.99e-06/0.1954, allocations: 4.031 kB / 344.4 MB, free: 2.176 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001012/0.1964, allocations: 366.1 kB / 344.8 MB, free: 1.797 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001342/0.1965, allocations: 100.8 kB / 344.9 MB, free: 1.68 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.874e-05/0.1966, allocations: 11.94 kB / 344.9 MB, free: 1.668 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002336/0.1968, allocations: 31.97 kB / 344.9 MB, free: 1.637 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001099/0.1969, allocations: 23.97 kB / 345 MB, free: 1.613 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.452e-05/0.197, allocations: 7.938 kB / 345 MB, free: 1.605 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0002336/0.1972, allocations: 190 kB / 345.1 MB, free: 1.418 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1972, allocations: 0 / 345.1 MB, free: 1.418 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006163/0.1978, allocations: 123.7 kB / 345.3 MB, free: 1.297 MB / 286.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.0002203/0.1981, allocations: 111.2 kB / 345.4 MB, free: 1.18 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001631/0.1997, allocations: 0.6872 MB / 346.1 MB, free: 452 kB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.1997, allocations: 0 / 346.1 MB, free: 452 kB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004684/0.2002, allocations: 235.2 kB / 346.3 MB, free: 204 kB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004972/0.2007, allocations: 44.52 kB / 346.3 MB, free: 160 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001411/0.2021, allocations: 0.5309 MB / 346.9 MB, free: 15.6 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004534/0.2026, allocations: 0.7483 MB / 347.6 MB, free: 14.82 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001391/0.2027, allocations: 26.28 kB / 347.6 MB, free: 14.8 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.649e-05/0.2028, allocations: 23.44 kB / 347.7 MB, free: 14.77 MB / 302.1 MB Notification: Performance of SimCode: time 9.01e-07/0.2028, allocations: 0 / 347.7 MB, free: 14.77 MB / 302.1 MB Notification: Performance of Templates: time 0.009633/0.2125, allocations: 4.088 MB / 351.8 MB, free: 10.69 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OpAmps/SchmittTrigger/SchmittTrigger.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SchmittTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches