Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009109/0.0009107, allocations: 99.03 kB / 17 MB, free: 6.398 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.0011/0.0011, allocations: 177.7 kB / 17.89 MB, free: 5.945 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.497/1.497, allocations: 223.3 MB / 241.9 MB, free: 324 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2488/0.2488, allocations: 44.24 MB / 337.3 MB, free: 2.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004971/0.0004972, allocations: 12.22 kB / 409.7 MB, free: 27.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1581/0.1586, allocations: 61.93 MB / 471.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001091/0.1598, allocations: 0.5144 MB / 472.1 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000194/0.16, allocations: 47.84 kB / 472.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.583e-05/0.16, allocations: 0 / 472.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.657e-05/0.1601, allocations: 3.938 kB / 472.2 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.446e-05/0.1602, allocations: 0 / 472.2 MB, free: 13.13 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001045/0.1603, allocations: 15.98 kB / 472.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.448e-05/0.1604, allocations: 35.91 kB / 472.2 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.032e-05/0.1605, allocations: 23.91 kB / 472.2 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.028e-05/0.1605, allocations: 11.92 kB / 472.2 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.204e-05/0.1606, allocations: 11.94 kB / 472.2 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.257e-05/0.1606, allocations: 3.938 kB / 472.3 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.368e-06/0.1606, allocations: 0 / 472.3 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.623e-05/0.1606, allocations: 7.938 kB / 472.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.086e-05/0.1607, allocations: 29.7 kB / 472.3 MB, free: 12.99 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 6.269e-05/0.1607, allocations: 23.95 kB / 472.3 MB, free: 12.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.1608, allocations: 0 / 472.3 MB, free: 12.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1608, allocations: 0 / 472.3 MB, free: 12.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.186e-06/0.1608, allocations: 4 kB / 472.3 MB, free: 12.96 MB / 350.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.0003782/0.1611, allocations: 343.5 kB / 472.7 MB, free: 12.58 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.1612, allocations: 8.031 kB / 472.7 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.412e-05/0.1612, allocations: 4 kB / 472.7 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001736/0.1614, allocations: 178.9 kB / 472.8 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.005e-05/0.1614, allocations: 4 kB / 472.8 MB, free: 12.35 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.809e-05/0.1615, allocations: 4 kB / 472.8 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001049/0.1616, allocations: 49.64 kB / 472.9 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.213e-06/0.1616, allocations: 4 kB / 472.9 MB, free: 12.29 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.385e-05/0.1616, allocations: 4 kB / 472.9 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.434e-06/0.1616, allocations: 4 kB / 472.9 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.626e-05/0.1617, allocations: 15.98 kB / 472.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004748/0.1621, allocations: 292.6 kB / 473.2 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.001e-05/0.1622, allocations: 22.58 kB / 473.2 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.856e-05/0.1622, allocations: 12.86 kB / 473.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.947e-06/0.1622, allocations: 0 / 473.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.186e-05/0.1623, allocations: 55.41 kB / 473.3 MB, free: 11.81 MB / 350.1 MB Notification: Performance of pre-optimization done (n=3): time 9.42e-07/0.1623, allocations: 0 / 473.3 MB, free: 11.81 MB / 350.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001272/0.1625, allocations: 49.59 kB / 473.3 MB, free: 11.76 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.375e-05/0.1625, allocations: 55.41 kB / 473.4 MB, free: 11.69 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.676e-05/0.1626, allocations: 114 kB / 473.5 MB, free: 11.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.168e-05/0.1626, allocations: 29.7 kB / 473.5 MB, free: 11.53 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.8e-05/0.1627, allocations: 96.19 kB / 473.6 MB, free: 11.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.4e-05/0.1627, allocations: 3.906 kB / 473.6 MB, free: 11.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.857e-06/0.1627, allocations: 3.938 kB / 473.6 MB, free: 11.43 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000103/0.1628, allocations: 323.1 kB / 474 MB, free: 11.1 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.379e-05/0.1628, allocations: 4 kB / 474 MB, free: 11.1 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.732e-05/0.1629, allocations: 25.7 kB / 474 MB, free: 11.07 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.644e-05/0.1629, allocations: 12.28 kB / 474 MB, free: 11.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1629, allocations: 3.938 kB / 474 MB, free: 11.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001257/0.163, allocations: 57.52 kB / 474.1 MB, free: 10.99 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.1631, allocations: 8 kB / 474.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.968e-06/0.1631, allocations: 0 / 474.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.868e-06/0.1631, allocations: 0 / 474.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.128e-05/0.1631, allocations: 4 kB / 474.1 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.1631, allocations: 4 kB / 474.1 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.975e-05/0.1632, allocations: 4 kB / 474.1 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.117e-06/0.1632, allocations: 32 / 474.1 MB, free: 10.97 MB / 350.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 ($whenCondition1,greaterEqualThreshold.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.625e-05/0.1633, allocations: 126.3 kB / 474.2 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.205e-06/0.1633, allocations: 0 / 474.2 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.298e-05/0.1633, allocations: 11.91 kB / 474.2 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.1633, allocations: 0 / 474.2 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.1633, allocations: 0 / 474.2 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.1633, allocations: 0 / 474.2 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002812/0.1636, allocations: 310.3 kB / 474.5 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.1636, allocations: 4 kB / 474.5 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.723e-05/0.1637, allocations: 0 / 474.5 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.1637, allocations: 4 kB / 474.5 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.412e-06/0.1637, allocations: 0 / 474.5 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1637, allocations: 0 / 474.5 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1637, allocations: 0 / 474.5 MB, free: 10.45 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000128/0.1638, allocations: 151.4 kB / 474.7 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.793e-05/0.1639, allocations: 85 kB / 474.8 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.213e-05/0.1639, allocations: 4.031 kB / 474.8 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.586e-05/0.1639, allocations: 4.062 kB / 474.8 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.622e-05/0.164, allocations: 4 kB / 474.8 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.248e-06/0.164, allocations: 4 kB / 474.8 MB, free: 10.17 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.544e-05/0.164, allocations: 91.27 kB / 474.9 MB, free: 10.08 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.164, allocations: 0 / 474.9 MB, free: 10.08 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002162/0.1643, allocations: 4 kB / 474.9 MB, free: 10.08 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.526e-05/0.1644, allocations: 91.25 kB / 475 MB, free: 9.977 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.899e-05/0.1645, allocations: 31.86 kB / 475 MB, free: 9.945 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1645, allocations: 288 / 475 MB, free: 9.945 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.946e-05/0.1645, allocations: 12 kB / 475 MB, free: 9.934 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002621/0.1648, allocations: 18.11 kB / 475 MB, free: 9.918 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002927/0.1651, allocations: 146.7 kB / 475.2 MB, free: 9.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000254/0.1653, allocations: 0.6888 MB / 475.8 MB, free: 9.035 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.389e-05/0.1654, allocations: 7.891 kB / 475.9 MB, free: 9.027 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.444e-05/0.1654, allocations: 11.44 kB / 475.9 MB, free: 9.016 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1654, allocations: 0 / 475.9 MB, free: 9.016 MB / 350.1 MB Notification: Performance of Templates: time 0.002498/0.1679, allocations: 461.1 kB / 476.3 MB, free: 8.566 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches