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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001664/0.001664, allocations: 116.9 kB / 18.41 MB, free: 4.531 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001884/0.001884, allocations: 190.9 kB / 21.34 MB, free: 1.602 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.423/1.423, allocations: 222.9 MB / 247 MB, free: 4.219 MB / 190.1 MB " [Timeout remaining time 178] 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=1000,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=1000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002213/0.002213, allocations: 47.92 kB / 358.7 MB, free: 8.348 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1451/0.1473, allocations: 49.45 MB / 408.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.005658/0.153, allocations: 2.878 MB / 411 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001764/0.1548, allocations: 0.705 MB / 411.7 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000194/0.155, allocations: 4 kB / 411.7 MB, free: 3.258 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002223/0.1553, allocations: 47.5 kB / 411.8 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002845/0.1556, allocations: 99.19 kB / 411.9 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003959/0.156, allocations: 107.8 kB / 412 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000605/0.1566, allocations: 398.5 kB / 412.4 MB, free: 2.617 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003324/0.157, allocations: 135.8 kB / 412.5 MB, free: 2.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002606/0.1572, allocations: 151.4 kB / 412.6 MB, free: 2.332 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003176/0.1576, allocations: 171.2 kB / 412.8 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.99e-05/0.1577, allocations: 36 kB / 412.8 MB, free: 2.129 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.826e-05/0.1578, allocations: 40 kB / 412.9 MB, free: 2.09 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001072/0.1579, allocations: 83.69 kB / 413 MB, free: 2.008 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002396/0.1581, allocations: 167.1 kB / 413.1 MB, free: 1.844 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006253/0.1588, allocations: 394.4 kB / 413.5 MB, free: 1.457 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.1588, allocations: 0 / 413.5 MB, free: 1.457 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1588, allocations: 0 / 413.5 MB, free: 1.457 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.1588, allocations: 0 / 413.5 MB, free: 1.457 MB / 334.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.001784/0.1606, allocations: 0.6884 MB / 414.2 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.648e-05/0.1606, allocations: 12.03 kB / 414.2 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001061/0.1608, allocations: 32.75 kB / 414.2 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005824/0.1614, allocations: 299.7 kB / 414.5 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.328e-05/0.1614, allocations: 24.94 kB / 414.6 MB, free: 324 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.971e-05/0.1615, allocations: 24.38 kB / 414.6 MB, free: 300 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001018/0.1625, allocations: 319.9 kB / 414.9 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.538e-05/0.1625, allocations: 0 / 414.9 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.236e-05/0.1626, allocations: 12 kB / 414.9 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.075e-05/0.1626, allocations: 8 kB / 414.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001146/0.1638, allocations: 270 kB / 415.2 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002536/0.1663, allocations: 1.146 MB / 416.3 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001096/0.1674, allocations: 202.6 kB / 416.5 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004362/0.1679, allocations: 92.72 kB / 416.6 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.364e-05/0.1679, allocations: 192 / 416.6 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005967/0.1685, allocations: 161 kB / 416.8 MB, free: 13.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=10): time 1.753e-06/0.1685, allocations: 0 / 416.8 MB, free: 13.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=10): time 0.001807/0.1704, allocations: 411.2 kB / 417.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.28e-05/0.1704, allocations: 85.05 kB / 417.3 MB, free: 13.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005404/0.171, allocations: 332.4 kB / 417.6 MB, free: 13.11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.518e-05/0.171, allocations: 29.7 kB / 417.6 MB, free: 13.08 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000211/0.1713, allocations: 208 kB / 417.8 MB, free: 12.87 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.898e-05/0.1713, allocations: 31.73 kB / 417.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001412/0.1715, allocations: 57.88 kB / 417.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002072/0.1717, allocations: 342.8 kB / 418.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005074/0.1722, allocations: 92.16 kB / 418.3 MB, free: 12.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006202/0.1728, allocations: 223.6 kB / 418.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001108/0.174, allocations: 324 kB / 418.9 MB, free: 11.7 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.079e-05/0.174, allocations: 8 kB / 418.9 MB, free: 11.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001425/0.1754, allocations: 411.8 kB / 419.3 MB, free: 11.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.898e-05/0.1755, allocations: 33.7 kB / 419.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.225e-05/0.1755, allocations: 4 kB / 419.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002234/0.1757, allocations: 32.78 kB / 419.3 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003844/0.1761, allocations: 67.88 kB / 419.4 MB, free: 11.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00161/0.1777, allocations: 1.406 MB / 420.8 MB, free: 9.57 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005074/0.1783, allocations: 59.69 kB / 420.9 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.132e-05/0.1783, allocations: 16 kB / 420.9 MB, free: 9.496 MB / 350.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.0002327/0.1786, allocations: 145.7 kB / 421 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.741e-05/0.1786, allocations: 27.86 kB / 421.1 MB, free: 9.316 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.904e-05/0.1787, allocations: 31.05 kB / 421.1 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.1787, allocations: 4 kB / 421.1 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.305e-06/0.1788, allocations: 3.938 kB / 421.1 MB, free: 9.277 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.1788, allocations: 3.984 kB / 421.1 MB, free: 9.273 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006644/0.1794, allocations: 451.1 kB / 421.5 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.1795, allocations: 0 / 421.5 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002403/0.1797, allocations: 31.95 kB / 421.6 MB, free: 8.742 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001461/0.1799, allocations: 36.75 kB / 421.6 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.067e-05/0.1799, allocations: 4 kB / 421.6 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001507/0.1814, allocations: 1.395 MB / 423 MB, free: 7.164 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.1814, allocations: 0 / 423 MB, free: 7.164 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009356/0.1824, allocations: 278.5 kB / 423.3 MB, free: 6.867 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001075/0.1825, allocations: 108.9 kB / 423.4 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.358e-05/0.1826, allocations: 4 kB / 423.4 MB, free: 6.738 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002483/0.1828, allocations: 27.97 kB / 423.4 MB, free: 6.711 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.454e-05/0.1829, allocations: 19.92 kB / 423.4 MB, free: 6.691 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.648e-05/0.1829, allocations: 7.984 kB / 423.4 MB, free: 6.684 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002673/0.1832, allocations: 231.1 kB / 423.7 MB, free: 6.461 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1832, allocations: 0 / 423.7 MB, free: 6.461 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003556/0.1836, allocations: 67.89 kB / 423.7 MB, free: 6.395 MB / 350.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.0001569/0.1837, allocations: 111.7 kB / 423.8 MB, free: 6.273 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0011/0.1848, allocations: 414.1 kB / 424.2 MB, free: 5.844 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.1848, allocations: 0 / 424.2 MB, free: 5.844 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005107/0.1854, allocations: 215.3 kB / 424.5 MB, free: 5.621 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003732/0.1857, allocations: 51.66 kB / 424.5 MB, free: 5.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00107/0.1868, allocations: 0.5215 MB / 425 MB, free: 5.016 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004021/0.1872, allocations: 0.7518 MB / 425.8 MB, free: 4.234 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.918e-05/0.1873, allocations: 23.44 kB / 425.8 MB, free: 4.211 MB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1873, allocations: 0 / 425.8 MB, free: 4.211 MB / 350.1 MB Notification: Performance of Templates: time 0.1813/0.3687, allocations: 4.643 MB / 430.4 MB, free: 22.21 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.598510510055348]