Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001003/0.001003, allocations: 102.6 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001374/0.001374, allocations: 185.4 kB / 16.92 MB, free: 6.918 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.226/2.226, allocations: 205.4 MB / 223.1 MB, free: 5.758 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4899/0.4899, allocations: 43.57 MB / 315 MB, free: 8.711 MB / 254.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.0005001/0.0005001, allocations: 19.94 kB / 384.6 MB, free: 7.668 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.156/0.1565, allocations: 58.88 MB / 443.4 MB, free: 12.69 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001593/0.1582, allocations: 0.5263 MB / 444 MB, free: 12.16 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002751/0.1584, allocations: 55.73 kB / 444 MB, free: 12.11 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.291e-05/0.1586, allocations: 4 kB / 444 MB, free: 12.11 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000144/0.1587, allocations: 3.938 kB / 444 MB, free: 12.1 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 1.783e-05/0.1587, allocations: 3.938 kB / 444 MB, free: 12.1 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001451/0.1589, allocations: 19.98 kB / 444.1 MB, free: 12.08 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001307/0.159, allocations: 35.92 kB / 444.1 MB, free: 12.04 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001429/0.1592, allocations: 15.97 kB / 444.1 MB, free: 12.03 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.058e-05/0.1592, allocations: 15.92 kB / 444.1 MB, free: 12.01 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.019e-05/0.1593, allocations: 7.938 kB / 444.1 MB, free: 12 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.857e-05/0.1593, allocations: 0 / 444.1 MB, free: 12 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.145e-05/0.1593, allocations: 3.938 kB / 444.1 MB, free: 12 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 2.378e-05/0.1594, allocations: 11.92 kB / 444.1 MB, free: 11.99 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.437e-05/0.1594, allocations: 37.64 kB / 444.2 MB, free: 11.95 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001004/0.1595, allocations: 32.05 kB / 444.2 MB, free: 11.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.1595, allocations: 8 kB / 444.2 MB, free: 11.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.386e-06/0.1596, allocations: 0 / 444.2 MB, free: 11.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.661e-06/0.1596, allocations: 0 / 444.2 MB, free: 11.91 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.000571/0.1601, allocations: 339.5 kB / 444.6 MB, free: 11.52 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.773e-05/0.1602, allocations: 8.031 kB / 444.6 MB, free: 11.52 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.7e-05/0.1603, allocations: 8.844 kB / 444.6 MB, free: 11.51 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002489/0.1605, allocations: 180.2 kB / 444.7 MB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.542e-05/0.1605, allocations: 4.375 kB / 444.8 MB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.488e-05/0.1606, allocations: 384 / 444.8 MB, free: 11.29 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001561/0.1607, allocations: 58.19 kB / 444.8 MB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.367e-06/0.1608, allocations: 192 / 444.8 MB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.067e-05/0.1608, allocations: 3.938 kB / 444.8 MB, free: 11.22 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.097e-06/0.1608, allocations: 4 kB / 444.8 MB, free: 11.22 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.412e-05/0.1609, allocations: 11.98 kB / 444.8 MB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006261/0.1615, allocations: 284.8 kB / 445.1 MB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.852e-05/0.1616, allocations: 38.5 kB / 445.1 MB, free: 10.83 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.103e-05/0.1616, allocations: 4.859 kB / 445.1 MB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.137e-06/0.1616, allocations: 0 / 445.1 MB, free: 10.82 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001691/0.1618, allocations: 51.47 kB / 445.2 MB, free: 10.76 MB / 382.1 MB Notification: Performance of pre-optimization done (n=3): time 1.212e-06/0.1618, allocations: 0 / 445.2 MB, free: 10.76 MB / 382.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001829/0.162, allocations: 53.62 kB / 445.3 MB, free: 10.7 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.207e-05/0.1621, allocations: 59.41 kB / 445.3 MB, free: 10.63 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001293/0.1622, allocations: 121.7 kB / 445.4 MB, free: 10.5 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.796e-05/0.1622, allocations: 25.7 kB / 445.5 MB, free: 10.47 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.864e-05/0.1623, allocations: 96.19 kB / 445.5 MB, free: 10.38 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.964e-05/0.1623, allocations: 3.906 kB / 445.6 MB, free: 10.37 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.06e-05/0.1624, allocations: 13.72 kB / 445.6 MB, free: 10.35 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001623/0.1626, allocations: 318.8 kB / 445.9 MB, free: 10.03 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.188e-05/0.1626, allocations: 15.92 kB / 445.9 MB, free: 10.02 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.585e-05/0.1626, allocations: 21.72 kB / 445.9 MB, free: 9.988 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.566e-05/0.1627, allocations: 25.66 kB / 445.9 MB, free: 9.957 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1627, allocations: 0 / 445.9 MB, free: 9.957 MB / 382.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.705e-05/0.1628, allocations: 57.92 kB / 446 MB, free: 9.895 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.1628, allocations: 4 kB / 446 MB, free: 9.891 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.373e-06/0.1628, allocations: 0 / 446 MB, free: 9.891 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.1628, allocations: 4 kB / 446 MB, free: 9.887 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.694e-05/0.1629, allocations: 7.938 kB / 446 MB, free: 9.879 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.635e-06/0.1629, allocations: 4.031 kB / 446 MB, free: 9.875 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.181e-05/0.1629, allocations: 7.922 kB / 446 MB, free: 9.867 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.117e-06/0.163, allocations: 7.938 kB / 446 MB, free: 9.859 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000105/0.1631, allocations: 113.8 kB / 446.1 MB, free: 9.738 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.246e-05/0.1631, allocations: 4 kB / 446.1 MB, free: 9.734 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.116e-05/0.1631, allocations: 3.906 kB / 446.1 MB, free: 9.73 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.359e-06/0.1631, allocations: 4 kB / 446.2 MB, free: 9.727 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.274e-06/0.1632, allocations: 4 kB / 446.2 MB, free: 9.723 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.1632, allocations: 0 / 446.2 MB, free: 9.723 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003271/0.1635, allocations: 314.4 kB / 446.5 MB, free: 9.359 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.1635, allocations: 0 / 446.5 MB, free: 9.359 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.932e-05/0.1635, allocations: 0 / 446.5 MB, free: 9.359 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.1636, allocations: 0 / 446.5 MB, free: 9.359 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.728e-06/0.1636, allocations: 0 / 446.5 MB, free: 9.359 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.023e-06/0.1636, allocations: 7.938 kB / 446.5 MB, free: 9.352 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.1636, allocations: 0 / 446.5 MB, free: 9.352 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001856/0.1638, allocations: 151.5 kB / 446.6 MB, free: 9.188 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.433e-05/0.1639, allocations: 81.02 kB / 446.7 MB, free: 9.09 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.645e-05/0.1639, allocations: 0 / 446.7 MB, free: 9.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.742e-05/0.1639, allocations: 7.969 kB / 446.7 MB, free: 9.082 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.065e-05/0.164, allocations: 3.938 kB / 446.7 MB, free: 9.078 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.362e-06/0.164, allocations: 3.984 kB / 446.7 MB, free: 9.074 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.739e-05/0.1641, allocations: 99.59 kB / 446.8 MB, free: 8.977 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1641, allocations: 0 / 446.8 MB, free: 8.977 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000207/0.1643, allocations: 4 kB / 446.8 MB, free: 8.973 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001515/0.1644, allocations: 107.2 kB / 446.9 MB, free: 8.859 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001027/0.1646, allocations: 16 kB / 446.9 MB, free: 8.844 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1646, allocations: 3.938 kB / 446.9 MB, free: 8.84 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.149e-05/0.1646, allocations: 7.938 kB / 446.9 MB, free: 8.832 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003165/0.1649, allocations: 15.98 kB / 447 MB, free: 8.816 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004184/0.1653, allocations: 154.7 kB / 447.1 MB, free: 8.637 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003521/0.1657, allocations: 0.6848 MB / 447.8 MB, free: 7.926 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 2.852e-05/0.1657, allocations: 3.984 kB / 447.8 MB, free: 7.922 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.958e-05/0.1658, allocations: 11.44 kB / 447.8 MB, free: 7.914 MB / 382.1 MB Notification: Performance of SimCode: time 7.32e-07/0.1658, allocations: 0 / 447.8 MB, free: 7.914 MB / 382.1 MB Notification: Performance of Templates: time 0.003455/0.1692, allocations: 465.2 kB / 448.3 MB, free: 7.461 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches