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.001233/0.001233, allocations: 110 kB / 17.03 MB, free: 6.102 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.00116/0.00116, allocations: 194.9 kB / 17.96 MB, free: 5.195 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.604/1.604, allocations: 205.1 MB / 223.8 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2415/0.2415, allocations: 43.54 MB / 314.7 MB, free: 468 kB / 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.001481/0.001481, allocations: 68.97 kB / 384.2 MB, free: 56.4 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1454/0.1469, allocations: 57.8 MB / 442 MB, free: 6.141 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.003346/0.1504, allocations: 0.7993 MB / 442.8 MB, free: 5.336 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002969/0.1507, allocations: 47.81 kB / 442.8 MB, free: 5.289 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001123/0.1508, allocations: 0 / 442.8 MB, free: 5.289 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001878/0.151, allocations: 7.938 kB / 442.8 MB, free: 5.281 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 2.2e-05/0.1511, allocations: 3.938 kB / 442.8 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001678/0.1512, allocations: 19.97 kB / 442.8 MB, free: 5.258 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001711/0.1514, allocations: 35.86 kB / 442.9 MB, free: 5.223 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001756/0.1516, allocations: 31.89 kB / 442.9 MB, free: 5.191 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.276e-05/0.1517, allocations: 11.94 kB / 442.9 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.928e-05/0.1517, allocations: 15.92 kB / 442.9 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.228e-05/0.1518, allocations: 4 kB / 442.9 MB, free: 5.16 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.512e-05/0.1518, allocations: 4 kB / 442.9 MB, free: 5.156 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.158e-05/0.1518, allocations: 4 kB / 442.9 MB, free: 5.152 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.221e-05/0.1519, allocations: 23.8 kB / 443 MB, free: 5.129 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001432/0.152, allocations: 39.83 kB / 443 MB, free: 5.09 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.1521, allocations: 0 / 443 MB, free: 5.09 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.665e-06/0.1521, allocations: 0 / 443 MB, free: 5.09 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.478e-06/0.1521, allocations: 0 / 443 MB, free: 5.09 MB / 318.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.0006241/0.1527, allocations: 359.3 kB / 443.4 MB, free: 4.688 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.6e-05/0.1528, allocations: 15.89 kB / 443.4 MB, free: 4.672 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.329e-05/0.1528, allocations: 0.9375 kB / 443.4 MB, free: 4.672 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003215/0.1532, allocations: 188.2 kB / 443.6 MB, free: 4.449 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.556e-05/0.1532, allocations: 384 / 443.6 MB, free: 4.449 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.49e-05/0.1532, allocations: 8.359 kB / 443.6 MB, free: 4.441 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000172/0.1534, allocations: 50.25 kB / 443.6 MB, free: 4.387 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.1534, allocations: 192 / 443.6 MB, free: 4.387 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.338e-05/0.1534, allocations: 7.938 kB / 443.6 MB, free: 4.379 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.1535, allocations: 0 / 443.6 MB, free: 4.379 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.978e-05/0.1535, allocations: 15.94 kB / 443.6 MB, free: 4.363 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006296/0.1542, allocations: 292.7 kB / 443.9 MB, free: 4.027 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.454e-05/0.1542, allocations: 22.58 kB / 443.9 MB, free: 3.996 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.897e-05/0.1543, allocations: 15.16 kB / 444 MB, free: 3.98 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.869e-06/0.1543, allocations: 4 kB / 444 MB, free: 3.977 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.728e-05/0.1544, allocations: 47.41 kB / 444 MB, free: 3.918 MB / 318.1 MB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/0.1544, allocations: 0 / 444 MB, free: 3.918 MB / 318.1 MB Notification: Performance of matching and sorting (n=3): time 0.000198/0.1546, allocations: 53.59 kB / 444.1 MB, free: 3.859 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.664e-05/0.1547, allocations: 55.41 kB / 444.1 MB, free: 3.793 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001069/0.1548, allocations: 117.8 kB / 444.2 MB, free: 3.668 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.484e-05/0.1548, allocations: 33.7 kB / 444.3 MB, free: 3.629 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.21e-05/0.1549, allocations: 92.08 kB / 444.4 MB, free: 3.535 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.111e-05/0.1549, allocations: 7.906 kB / 444.4 MB, free: 3.527 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.468e-05/0.1549, allocations: 17.7 kB / 444.4 MB, free: 3.504 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.1551, allocations: 318.8 kB / 444.7 MB, free: 3.184 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.862e-05/0.1551, allocations: 8 kB / 444.7 MB, free: 3.176 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.003e-05/0.1551, allocations: 17.7 kB / 444.7 MB, free: 3.152 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.884e-05/0.1552, allocations: 30.38 kB / 444.7 MB, free: 3.117 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.1552, allocations: 0 / 444.7 MB, free: 3.117 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.123e-05/0.1553, allocations: 61.52 kB / 444.8 MB, free: 3.051 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.1553, allocations: 4 kB / 444.8 MB, free: 3.047 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.1553, allocations: 3.938 kB / 444.8 MB, free: 3.043 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.125e-05/0.1554, allocations: 4 kB / 444.8 MB, free: 3.039 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.618e-05/0.1554, allocations: 0 / 444.8 MB, free: 3.039 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.237e-06/0.1554, allocations: 4 kB / 444.8 MB, free: 3.035 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.005e-05/0.1554, allocations: 3.938 kB / 444.8 MB, free: 3.031 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.536e-06/0.1555, allocations: 7.938 kB / 444.8 MB, free: 3.023 MB / 318.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.0001027/0.1556, allocations: 121.8 kB / 445 MB, free: 2.895 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.367e-05/0.1556, allocations: 7.906 kB / 445 MB, free: 2.887 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.821e-05/0.1556, allocations: 11.89 kB / 445 MB, free: 2.871 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.1556, allocations: 0 / 445 MB, free: 2.871 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.16e-05/0.1557, allocations: 0 / 445 MB, free: 2.871 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.054e-06/0.1557, allocations: 4 kB / 445 MB, free: 2.867 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002821/0.156, allocations: 294.5 kB / 445.3 MB, free: 2.523 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.156, allocations: 0 / 445.3 MB, free: 2.523 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.192e-05/0.156, allocations: 11.94 kB / 445.3 MB, free: 2.512 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.156, allocations: 0 / 445.3 MB, free: 2.512 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.678e-06/0.1561, allocations: 0 / 445.3 MB, free: 2.512 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.1561, allocations: 7.938 kB / 445.3 MB, free: 2.504 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.1561, allocations: 0 / 445.3 MB, free: 2.504 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001669/0.1562, allocations: 147.5 kB / 445.4 MB, free: 2.344 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.698e-05/0.1563, allocations: 81.14 kB / 445.5 MB, free: 2.246 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.279e-05/0.1563, allocations: 3.984 kB / 445.5 MB, free: 2.242 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.377e-05/0.1564, allocations: 8 kB / 445.5 MB, free: 2.234 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.038e-05/0.1564, allocations: 8 kB / 445.5 MB, free: 2.227 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.601e-06/0.1564, allocations: 0 / 445.5 MB, free: 2.227 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.536e-05/0.1565, allocations: 91.27 kB / 445.6 MB, free: 2.137 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.1565, allocations: 3.938 kB / 445.6 MB, free: 2.133 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002504/0.1568, allocations: 8 kB / 445.6 MB, free: 2.125 MB / 318.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.0001096/0.1569, allocations: 95.19 kB / 445.7 MB, free: 2.02 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001057/0.157, allocations: 15.98 kB / 445.7 MB, free: 2.004 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.157, allocations: 8.062 kB / 445.7 MB, free: 1.996 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 1.678e-05/0.157, allocations: 8 kB / 445.8 MB, free: 1.988 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002769/0.1573, allocations: 8.266 kB / 445.8 MB, free: 1.98 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002978/0.1576, allocations: 150.2 kB / 445.9 MB, free: 1.809 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000162/0.1578, allocations: 0.6846 MB / 446.6 MB, free: 1.098 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.059e-05/0.1578, allocations: 3.984 kB / 446.6 MB, free: 1.094 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.203e-05/0.1579, allocations: 11.44 kB / 446.6 MB, free: 1.082 MB / 318.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1579, allocations: 0 / 446.6 MB, free: 1.082 MB / 318.1 MB Notification: Performance of Templates: time 0.002802/0.1607, allocations: 0.5173 MB / 447.1 MB, free: 0.5703 MB / 318.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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.SelfResettingIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches