Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.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.Comparator,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.Comparator") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.Comparator,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.Comparator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001622/0.001622, allocations: 106.2 kB / 16.51 MB, free: 6.707 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.00194/0.00194, allocations: 190.6 kB / 17.43 MB, free: 6.066 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.361/1.361, allocations: 222.9 MB / 241.1 MB, free: 15.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001609/0.001609, allocations: 47.45 kB / 300 MB, free: 6.285 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1401/0.1417, allocations: 49.45 MB / 349.4 MB, free: 4.828 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.005616/0.1474, allocations: 2.916 MB / 352.3 MB, free: 1.891 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001723/0.1491, allocations: 0.709 MB / 353 MB, free: 1.176 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002333/0.1494, allocations: 7.938 kB / 353 MB, free: 1.168 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000213/0.1496, allocations: 27.77 kB / 353.1 MB, free: 1.141 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002834/0.1499, allocations: 87.38 kB / 353.2 MB, free: 1.055 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003967/0.1503, allocations: 99.84 kB / 353.3 MB, free: 0.957 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004784/0.1508, allocations: 366.5 kB / 353.6 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003077/0.1511, allocations: 119.6 kB / 353.7 MB, free: 488 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002217/0.1514, allocations: 131.4 kB / 353.9 MB, free: 356 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002427/0.1516, allocations: 167.2 kB / 354 MB, free: 188 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.607e-05/0.1517, allocations: 24 kB / 354 MB, free: 164 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.383e-05/0.1518, allocations: 20 kB / 354.1 MB, free: 144 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.138e-05/0.1519, allocations: 63.69 kB / 354.1 MB, free: 80 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002267/0.1521, allocations: 155.2 kB / 354.3 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004654/0.1526, allocations: 374.9 kB / 354.6 MB, free: 15.56 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1526, allocations: 0 / 354.6 MB, free: 15.56 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1526, allocations: 0 / 354.6 MB, free: 15.56 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.733e-06/0.1527, allocations: 8 kB / 354.6 MB, free: 15.55 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001745/0.1544, allocations: 0.6847 MB / 355.3 MB, free: 14.81 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/0.1545, allocations: 12.03 kB / 355.3 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001047/0.1546, allocations: 32.56 kB / 355.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004718/0.1551, allocations: 291.6 kB / 355.7 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.244e-05/0.1551, allocations: 20.88 kB / 355.7 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.904e-05/0.1552, allocations: 24.36 kB / 355.7 MB, free: 14.4 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000975/0.1562, allocations: 331.9 kB / 356 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.407e-05/0.1562, allocations: 0 / 356 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.81e-05/0.1562, allocations: 8 kB / 356 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.228e-05/0.1563, allocations: 8 kB / 356 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001098/0.1574, allocations: 278 kB / 356.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002411/0.1598, allocations: 1.138 MB / 357.5 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001077/0.1609, allocations: 202.5 kB / 357.7 MB, free: 12.35 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004323/0.1613, allocations: 84.8 kB / 357.7 MB, free: 12.26 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.427e-05/0.1614, allocations: 11.98 kB / 357.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006661/0.1621, allocations: 153.1 kB / 357.9 MB, free: 12.08 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 2.184e-06/0.1621, allocations: 0 / 357.9 MB, free: 12.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.001709/0.1638, allocations: 415 kB / 358.3 MB, free: 11.65 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.23e-05/0.1639, allocations: 81.11 kB / 358.4 MB, free: 11.55 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005043/0.1644, allocations: 328.5 kB / 358.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.103e-05/0.1644, allocations: 25.7 kB / 358.7 MB, free: 11.2 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00019/0.1646, allocations: 215.4 kB / 358.9 MB, free: 10.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.556e-05/0.1647, allocations: 35.55 kB / 359 MB, free: 10.95 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001317/0.1648, allocations: 53.94 kB / 359 MB, free: 10.88 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001532/0.165, allocations: 334.8 kB / 359.4 MB, free: 10.55 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004734/0.1655, allocations: 100.1 kB / 359.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005351/0.166, allocations: 211 kB / 359.7 MB, free: 10.19 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009518/0.167, allocations: 342.9 kB / 360 MB, free: 9.801 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.167, allocations: 0 / 360 MB, free: 9.801 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001309/0.1683, allocations: 404 kB / 360.4 MB, free: 9.391 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.569e-05/0.1684, allocations: 37.69 kB / 360.4 MB, free: 9.348 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.234e-05/0.1684, allocations: 4 kB / 360.4 MB, free: 9.344 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002513/0.1687, allocations: 28.84 kB / 360.5 MB, free: 9.312 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003755/0.1691, allocations: 67.98 kB / 360.5 MB, free: 9.246 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001433/0.1705, allocations: 1.308 MB / 361.8 MB, free: 7.805 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005239/0.1711, allocations: 55.72 kB / 361.9 MB, free: 7.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.819e-05/0.1711, allocations: 12 kB / 361.9 MB, free: 7.738 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * 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 (27): * Single equations (assignments): 25 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002503/0.1714, allocations: 153.6 kB / 362 MB, free: 7.578 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.127e-05/0.1714, allocations: 23.72 kB / 362.1 MB, free: 7.555 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.866e-05/0.1715, allocations: 30.61 kB / 362.1 MB, free: 7.527 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.1715, allocations: 4 kB / 362.1 MB, free: 7.523 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.052e-06/0.1715, allocations: 0 / 362.1 MB, free: 7.523 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.563e-06/0.1716, allocations: 4 kB / 362.1 MB, free: 7.52 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006599/0.1722, allocations: 451.1 kB / 362.5 MB, free: 7.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.5e-06/0.1722, allocations: 4 kB / 362.5 MB, free: 7.016 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002291/0.1725, allocations: 31.91 kB / 362.6 MB, free: 6.984 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001574/0.1726, allocations: 28.88 kB / 362.6 MB, free: 6.953 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.358e-05/0.1727, allocations: 7.984 kB / 362.6 MB, free: 6.945 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001353/0.174, allocations: 1.308 MB / 363.9 MB, free: 5.504 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.1741, allocations: 0 / 363.9 MB, free: 5.504 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009874/0.1751, allocations: 262.4 kB / 364.2 MB, free: 5.223 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001259/0.1752, allocations: 108.8 kB / 364.3 MB, free: 5.098 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.486e-05/0.1753, allocations: 4 kB / 364.3 MB, free: 5.094 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003015/0.1756, allocations: 23.97 kB / 364.3 MB, free: 5.07 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001094/0.1757, allocations: 23.97 kB / 364.3 MB, free: 5.047 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.061e-05/0.1757, allocations: 4 kB / 364.3 MB, free: 5.043 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003558/0.1761, allocations: 235 kB / 364.6 MB, free: 4.816 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1761, allocations: 0 / 364.6 MB, free: 4.816 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005598/0.1767, allocations: 67.84 kB / 364.6 MB, free: 4.75 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002276/0.1769, allocations: 110.7 kB / 364.7 MB, free: 4.633 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001358/0.1783, allocations: 414.5 kB / 365.2 MB, free: 4.203 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.1783, allocations: 96 / 365.2 MB, free: 4.203 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006068/0.1789, allocations: 222.5 kB / 365.4 MB, free: 3.973 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005142/0.1794, allocations: 47.67 kB / 365.4 MB, free: 3.926 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00138/0.1808, allocations: 0.5508 MB / 366 MB, free: 3.34 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004248/0.1813, allocations: 0.756 MB / 366.7 MB, free: 2.559 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001895/0.1815, allocations: 30.97 kB / 366.8 MB, free: 2.531 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.068e-05/0.1816, allocations: 31.36 kB / 366.8 MB, free: 2.504 MB / 302.1 MB Notification: Performance of SimCode: time 6.61e-07/0.1816, allocations: 0 / 366.8 MB, free: 2.504 MB / 302.1 MB Notification: Performance of Templates: time 0.1702/0.3518, allocations: 2.981 MB / 369.8 MB, free: 25.2 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches