Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 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.Comparator,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.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_3.2.3_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.001128/0.001128, allocations: 102.1 kB / 16.94 MB, free: 5.984 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.00139/0.00139, allocations: 179.4 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.901/1.901, allocations: 205.4 MB / 224 MB, free: 13.17 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.0004716/0.0004718, allocations: 19.28 kB / 280.8 MB, free: 3.75 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.1403, allocations: 47.59 MB / 328.3 MB, free: 4.094 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.003535/0.144, allocations: 2.311 MB / 330.6 MB, free: 1.766 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001964/0.146, allocations: 0.7259 MB / 331.4 MB, free: 1.031 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002826/0.1463, allocations: 4 kB / 331.4 MB, free: 1.027 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001185/0.1464, allocations: 35.75 kB / 331.4 MB, free: 0.9922 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000377/0.1468, allocations: 103.7 kB / 331.5 MB, free: 0.8906 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004126/0.1472, allocations: 75.84 kB / 331.6 MB, free: 0.8164 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004558/0.1477, allocations: 255.4 kB / 331.8 MB, free: 0.5664 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003007/0.148, allocations: 90.33 kB / 331.9 MB, free: 492 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002252/0.1483, allocations: 127.5 kB / 332.1 MB, free: 364 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002261/0.1485, allocations: 151.4 kB / 332.2 MB, free: 212 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.242e-05/0.1486, allocations: 16 kB / 332.2 MB, free: 196 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.997e-05/0.1486, allocations: 20 kB / 332.2 MB, free: 176 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.621e-05/0.1487, allocations: 55.8 kB / 332.3 MB, free: 120 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.62e-05/0.1488, allocations: 77.52 kB / 332.4 MB, free: 36 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003577/0.1492, allocations: 303.4 kB / 332.7 MB, free: 15.74 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.1492, allocations: 0 / 332.7 MB, free: 15.74 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.476e-06/0.1492, allocations: 0 / 332.7 MB, free: 15.74 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.135e-05/0.1492, allocations: 0 / 332.7 MB, free: 15.74 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: 61 * Number of variables: 61 Notification: Performance of Generate backend data structure: time 0.001747/0.151, allocations: 0.6496 MB / 333.3 MB, free: 15.03 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.548e-05/0.1511, allocations: 8.031 kB / 333.3 MB, free: 15.02 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.51e-05/0.1512, allocations: 39.56 kB / 333.4 MB, free: 14.98 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005212/0.1517, allocations: 294.3 kB / 333.6 MB, free: 14.66 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.581e-05/0.1517, allocations: 16.56 kB / 333.7 MB, free: 14.64 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.633e-05/0.1518, allocations: 27.98 kB / 333.7 MB, free: 14.61 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008607/0.1527, allocations: 296.8 kB / 334 MB, free: 14.31 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.704e-05/0.1527, allocations: 0 / 334 MB, free: 14.31 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.926e-05/0.1528, allocations: 8 kB / 334 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.69e-05/0.1528, allocations: 8 kB / 334 MB, free: 14.3 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009561/0.1537, allocations: 318 kB / 334.3 MB, free: 13.99 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002073/0.1558, allocations: 1.087 MB / 335.4 MB, free: 12.81 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008293/0.1567, allocations: 242.5 kB / 335.6 MB, free: 12.57 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.557e-05/0.1567, allocations: 4 kB / 335.6 MB, free: 12.56 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005133/0.1572, allocations: 165 kB / 335.8 MB, free: 12.38 MB / 286.1 MB Notification: Performance of pre-optimization done (n=11): time 1.814e-06/0.1573, allocations: 0 / 335.8 MB, free: 12.38 MB / 286.1 MB Notification: Performance of matching and sorting (n=11): time 0.001336/0.1586, allocations: 451.5 kB / 336.2 MB, free: 11.91 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.534e-05/0.1587, allocations: 77.11 kB / 336.3 MB, free: 11.82 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004571/0.1592, allocations: 328.5 kB / 336.6 MB, free: 11.49 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.786e-05/0.1592, allocations: 29.7 kB / 336.7 MB, free: 11.46 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002173/0.1595, allocations: 199.6 kB / 336.9 MB, free: 11.26 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.739e-05/0.1595, allocations: 35.45 kB / 336.9 MB, free: 11.22 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.598e-05/0.1596, allocations: 7.938 kB / 336.9 MB, free: 11.21 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002658/0.1598, allocations: 342.8 kB / 337.2 MB, free: 10.87 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003447/0.1602, allocations: 108.2 kB / 337.3 MB, free: 10.77 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004798/0.1607, allocations: 222 kB / 337.6 MB, free: 10.5 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004034/0.1611, allocations: 149.6 kB / 337.7 MB, free: 10.35 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.133e-06/0.1611, allocations: 8 kB / 337.7 MB, free: 10.34 MB / 286.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009417/0.1621, allocations: 407.8 kB / 338.1 MB, free: 9.926 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009272/0.163, allocations: 1.42 MB / 339.5 MB, free: 8.391 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.281e-05/0.163, allocations: 4 kB / 339.5 MB, free: 8.387 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002881/0.1633, allocations: 48.77 kB / 339.6 MB, free: 8.336 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002752/0.1636, allocations: 63.89 kB / 339.6 MB, free: 8.273 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001381/0.165, allocations: 1.304 MB / 340.9 MB, free: 6.84 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003889/0.1654, allocations: 59.88 kB / 341 MB, free: 6.781 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.842e-05/0.1654, allocations: 12 kB / 341 MB, free: 6.77 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.192e-05/0.1655, allocations: 4 kB / 341 MB, free: 6.766 MB / 286.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007745/0.1662, allocations: 346.5 kB / 341.4 MB, free: 6.418 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.1663, allocations: 8.031 kB / 341.4 MB, free: 6.41 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.87e-05/0.1663, allocations: 28.84 kB / 341.4 MB, free: 6.379 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002225/0.1666, allocations: 55.91 kB / 341.4 MB, free: 6.324 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001098/0.1677, allocations: 1.299 MB / 342.7 MB, free: 4.891 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000325/0.168, allocations: 52 kB / 342.8 MB, free: 4.84 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.908e-05/0.1681, allocations: 16 kB / 342.8 MB, free: 4.824 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (27): * Single equations (assignments): 25 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003048/0.1684, allocations: 217 kB / 343 MB, free: 4.602 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.364e-05/0.1684, allocations: 31.62 kB / 343.1 MB, free: 4.57 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.532e-05/0.1685, allocations: 29.89 kB / 343.1 MB, free: 4.539 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.1685, allocations: 3.984 kB / 343.1 MB, free: 4.535 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.1685, allocations: 3.953 kB / 343.1 MB, free: 4.531 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.1685, allocations: 0 / 343.1 MB, free: 4.531 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005783/0.1691, allocations: 451.2 kB / 343.5 MB, free: 4.031 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.1691, allocations: 4 kB / 343.5 MB, free: 4.027 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001669/0.1693, allocations: 31.97 kB / 343.6 MB, free: 3.996 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001127/0.1694, allocations: 36.8 kB / 343.6 MB, free: 3.957 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.547e-05/0.1695, allocations: 3.953 kB / 343.6 MB, free: 3.953 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001409/0.1709, allocations: 1.308 MB / 344.9 MB, free: 2.512 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.1709, allocations: 3.938 kB / 344.9 MB, free: 2.508 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008447/0.1718, allocations: 312.2 kB / 345.2 MB, free: 2.172 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001361/0.1719, allocations: 104.8 kB / 345.3 MB, free: 2.051 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.033e-05/0.172, allocations: 4 kB / 345.3 MB, free: 2.047 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002225/0.1722, allocations: 27.97 kB / 345.4 MB, free: 2.02 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001199/0.1723, allocations: 27.91 kB / 345.4 MB, free: 1.992 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.475e-05/0.1723, allocations: 4 kB / 345.4 MB, free: 1.988 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0003916/0.1727, allocations: 227.1 kB / 345.6 MB, free: 1.77 MB / 286.1 MB Notification: Performance of sort global known variables: time 4.1e-07/0.1728, allocations: 0 / 345.6 MB, free: 1.77 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0006884/0.1734, allocations: 127.7 kB / 345.7 MB, free: 1.645 MB / 286.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 (10): * Single equations (assignments): 7 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002419/0.1737, allocations: 103.2 kB / 345.8 MB, free: 1.535 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001714/0.1754, allocations: 0.7273 MB / 346.6 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 5.711e-06/0.1754, allocations: 7.938 kB / 346.6 MB, free: 0.75 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004755/0.1759, allocations: 227.4 kB / 346.8 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003304/0.1763, allocations: 44.64 kB / 346.8 MB, free: 484 kB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001094/0.1774, allocations: 0.5583 MB / 347.4 MB, free: 15.89 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003598/0.1778, allocations: 0.7599 MB / 348.2 MB, free: 15.1 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001865/0.1779, allocations: 46.94 kB / 348.2 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.907e-05/0.178, allocations: 19.44 kB / 348.2 MB, free: 15.03 MB / 302.1 MB Notification: Performance of SimCode: time 4.71e-07/0.178, allocations: 0 / 348.2 MB, free: 15.03 MB / 302.1 MB Notification: Performance of Templates: time 0.007519/0.1856, allocations: 3.246 MB / 351.5 MB, free: 11.79 MB / 302.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OpAmps/Comparator/Comparator.csv","../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches