Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001155/0.001155, allocations: 99.2 kB / 17.01 MB, free: 6.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001704/0.001704, allocations: 193.6 kB / 17.91 MB, free: 5.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.478/1.478, allocations: 227.7 MB / 246.4 MB, free: 11.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002686/0.0002687, allocations: 8 kB / 307.1 MB, free: 1.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1526/0.1529, allocations: 51.53 MB / 358.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.Comparator): time 0.004018/0.157, allocations: 2.471 MB / 361.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00188/0.1589, allocations: 0.7054 MB / 361.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003979/0.1593, allocations: 4 kB / 361.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002222/0.1596, allocations: 31.7 kB / 361.9 MB, free: 10.41 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003393/0.1599, allocations: 79.38 kB / 361.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003863/0.1603, allocations: 67.91 kB / 362 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005412/0.1609, allocations: 350.5 kB / 362.3 MB, free: 9.926 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003048/0.1612, allocations: 106.2 kB / 362.4 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003236/0.1615, allocations: 119.5 kB / 362.6 MB, free: 9.703 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003185/0.1618, allocations: 151.3 kB / 362.7 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.826e-05/0.1619, allocations: 16 kB / 362.7 MB, free: 9.539 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.25e-05/0.162, allocations: 27.94 kB / 362.8 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.69e-05/0.1621, allocations: 55.75 kB / 362.8 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001252/0.1622, allocations: 77.52 kB / 362.9 MB, free: 9.375 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003197/0.1625, allocations: 295.4 kB / 363.2 MB, free: 9.086 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.1625, allocations: 0 / 363.2 MB, free: 9.086 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.1626, allocations: 0 / 363.2 MB, free: 9.086 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.356e-06/0.1626, allocations: 0 / 363.2 MB, free: 9.086 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.00141/0.164, allocations: 0.6575 MB / 363.8 MB, free: 8.371 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.528e-05/0.164, allocations: 8.031 kB / 363.8 MB, free: 8.363 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.583e-05/0.1641, allocations: 35.61 kB / 363.9 MB, free: 8.328 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004157/0.1646, allocations: 290.3 kB / 364.2 MB, free: 8.004 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.139e-05/0.1646, allocations: 20.52 kB / 364.2 MB, free: 7.984 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.95e-05/0.1647, allocations: 24 kB / 364.2 MB, free: 7.961 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007851/0.1655, allocations: 331.6 kB / 364.5 MB, free: 7.629 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.1655, allocations: 0 / 364.5 MB, free: 7.629 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.229e-05/0.1655, allocations: 16 kB / 364.5 MB, free: 7.613 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.888e-06/0.1655, allocations: 4 kB / 364.5 MB, free: 7.609 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007808/0.1663, allocations: 306 kB / 364.8 MB, free: 7.305 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002021/0.1684, allocations: 1.165 MB / 366 MB, free: 6.047 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007949/0.1692, allocations: 238.5 kB / 366.2 MB, free: 5.805 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000304/0.1695, allocations: 108.8 kB / 366.3 MB, free: 5.695 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.021e-05/0.1695, allocations: 8.125 kB / 366.4 MB, free: 5.688 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004724/0.17, allocations: 165 kB / 366.5 MB, free: 5.508 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.623e-06/0.17, allocations: 0 / 366.5 MB, free: 5.508 MB / 302.1 MB Notification: Performance of matching and sorting (n=10): time 0.001287/0.1713, allocations: 459.1 kB / 367 MB, free: 5.031 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.661e-05/0.1714, allocations: 85.48 kB / 367 MB, free: 4.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003651/0.1718, allocations: 316.5 kB / 367.4 MB, free: 4.613 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.768e-05/0.1718, allocations: 33.7 kB / 367.4 MB, free: 4.574 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001878/0.172, allocations: 207.5 kB / 367.6 MB, free: 4.367 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.962e-05/0.1721, allocations: 39.47 kB / 367.6 MB, free: 4.328 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.473e-05/0.1721, allocations: 12 kB / 367.6 MB, free: 4.316 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.1722, allocations: 334.8 kB / 368 MB, free: 3.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003357/0.1726, allocations: 116.2 kB / 368.1 MB, free: 3.863 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003976/0.173, allocations: 226.9 kB / 368.3 MB, free: 3.59 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003616/0.1734, allocations: 161.6 kB / 368.5 MB, free: 3.426 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.337e-06/0.1734, allocations: 0 / 368.5 MB, free: 3.426 MB / 302.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009577/0.1743, allocations: 431.8 kB / 368.9 MB, free: 2.988 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.504e-05/0.1744, allocations: 37.59 kB / 368.9 MB, free: 2.945 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.17e-05/0.1744, allocations: 4 kB / 368.9 MB, free: 2.941 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000209/0.1746, allocations: 36.83 kB / 369 MB, free: 2.902 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000259/0.1749, allocations: 71.95 kB / 369 MB, free: 2.832 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001498/0.1764, allocations: 1.304 MB / 370.3 MB, free: 1.398 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003187/0.1767, allocations: 59.66 kB / 370.4 MB, free: 1.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.468e-05/0.1768, allocations: 12 kB / 370.4 MB, free: 1.328 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 ($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.0002012/0.177, allocations: 149.8 kB / 370.6 MB, free: 1.172 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.091e-05/0.177, allocations: 27.67 kB / 370.6 MB, free: 1.145 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.961e-05/0.1771, allocations: 30.61 kB / 370.6 MB, free: 1.117 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.1771, allocations: 0 / 370.6 MB, free: 1.117 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.1771, allocations: 4 kB / 370.6 MB, free: 1.113 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.1771, allocations: 0 / 370.6 MB, free: 1.113 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004917/0.1776, allocations: 455 kB / 371.1 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.1776, allocations: 4 kB / 371.1 MB, free: 0.6055 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001624/0.1778, allocations: 40 kB / 371.1 MB, free: 0.5664 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001035/0.1779, allocations: 24.83 kB / 371.1 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.796e-05/0.1779, allocations: 11.98 kB / 371.1 MB, free: 0.5273 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2698/0.4478, allocations: 1.286 MB / 372.4 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.4479, allocations: 1.344 kB / 372.4 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009337/0.4488, allocations: 299.6 kB / 372.7 MB, free: 18.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.648e-05/0.4489, allocations: 107.7 kB / 372.8 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.918e-05/0.449, allocations: 8.703 kB / 372.8 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002372/0.4492, allocations: 34.52 kB / 372.9 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.584e-05/0.4493, allocations: 21.14 kB / 372.9 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.856e-05/0.4493, allocations: 8.047 kB / 372.9 MB, free: 18.19 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003266/0.4497, allocations: 229.9 kB / 373.1 MB, free: 18.11 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4497, allocations: 0.6562 kB / 373.1 MB, free: 18.11 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004339/0.4501, allocations: 67.89 kB / 373.2 MB, free: 18.11 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 (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.0001524/0.4503, allocations: 97.7 kB / 373.3 MB, free: 18.03 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001053/0.4513, allocations: 440.2 kB / 373.7 MB, free: 17.86 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.4514, allocations: 3.828 kB / 373.7 MB, free: 17.86 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004666/0.4518, allocations: 234.1 kB / 373.9 MB, free: 17.75 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003692/0.4522, allocations: 47.33 kB / 374 MB, free: 17.75 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001152/0.4534, allocations: 0.5592 MB / 374.5 MB, free: 17.43 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002749/0.4537, allocations: 0.7537 MB / 375.3 MB, free: 16.74 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001654/0.4538, allocations: 36.11 kB / 375.3 MB, free: 16.73 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.376e-05/0.4539, allocations: 22 kB / 375.4 MB, free: 16.72 MB / 302.1 MB Notification: Performance of SimCode: time 5.51e-07/0.4539, allocations: 3.938 kB / 375.4 MB, free: 16.72 MB / 302.1 MB Notification: Performance of Templates: time 0.008694/0.4626, allocations: 2.866 MB / 378.2 MB, free: 16.55 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.makefile (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.sim & ./Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Analog.Examples.OpAmps.Comparator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches