Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00121/0.00121, allocations: 179.2 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.724/1.724, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001025/0.001025, allocations: 99.88 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.4169/0.4169, allocations: 43.56 MB / 362.7 MB, free: 52.06 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003778/0.000378, allocations: 8 kB / 431.4 MB, free: 6.16 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1318, allocations: 58.85 MB / 490.2 MB, free: 11.23 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002045/0.1339, allocations: 1.303 MB / 491.5 MB, free: 9.922 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009005/0.1349, allocations: 0.4959 MB / 492 MB, free: 9.418 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001039/0.135, allocations: 4 kB / 492 MB, free: 9.414 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001124/0.1351, allocations: 3.938 kB / 492 MB, free: 9.41 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 4.864e-05/0.1352, allocations: 7.922 kB / 492 MB, free: 9.402 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002034/0.1354, allocations: 31.92 kB / 492.1 MB, free: 9.371 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001325/0.1355, allocations: 75.75 kB / 492.1 MB, free: 9.297 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001346/0.1357, allocations: 32.2 kB / 492.2 MB, free: 9.266 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.154e-05/0.1357, allocations: 11.94 kB / 492.2 MB, free: 9.254 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.221e-05/0.1358, allocations: 31.78 kB / 492.2 MB, free: 9.223 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.685e-05/0.1358, allocations: 4 kB / 492.2 MB, free: 9.219 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.344e-05/0.1358, allocations: 4 kB / 492.2 MB, free: 9.215 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 1.471e-05/0.1359, allocations: 3.984 kB / 492.2 MB, free: 9.211 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.401e-05/0.1359, allocations: 41.64 kB / 492.3 MB, free: 9.164 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 9.834e-05/0.136, allocations: 52.12 kB / 492.3 MB, free: 9.113 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.136, allocations: 0 / 492.3 MB, free: 9.113 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.136, allocations: 0 / 492.3 MB, free: 9.113 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.637e-06/0.1361, allocations: 0 / 492.3 MB, free: 9.113 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005783/0.1366, allocations: 375 kB / 492.7 MB, free: 8.699 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.1367, allocations: 8.031 kB / 492.7 MB, free: 8.691 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.677e-05/0.1367, allocations: 15.84 kB / 492.7 MB, free: 8.676 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002107/0.137, allocations: 190.9 kB / 492.9 MB, free: 8.449 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.925e-05/0.137, allocations: 4 kB / 492.9 MB, free: 8.445 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.368e-05/0.137, allocations: 19.92 kB / 492.9 MB, free: 8.426 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001567/0.1372, allocations: 73.31 kB / 493 MB, free: 8.352 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.684e-06/0.1372, allocations: 4 kB / 493 MB, free: 8.348 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.36e-05/0.1372, allocations: 4 kB / 493 MB, free: 8.344 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.1372, allocations: 4 kB / 493 MB, free: 8.34 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.571e-05/0.1373, allocations: 39.88 kB / 493 MB, free: 8.301 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006045/0.138, allocations: 360.5 kB / 493.4 MB, free: 7.898 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001001/0.1381, allocations: 42.52 kB / 493.4 MB, free: 7.848 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.377e-05/0.1381, allocations: 24.86 kB / 493.5 MB, free: 7.82 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.167e-06/0.1381, allocations: 0 / 493.5 MB, free: 7.82 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001587/0.1383, allocations: 67.38 kB / 493.5 MB, free: 7.742 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 1.353e-06/0.1383, allocations: 4 kB / 493.5 MB, free: 7.738 MB / 378.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002161/0.1385, allocations: 89.52 kB / 493.6 MB, free: 7.645 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.406e-05/0.1386, allocations: 59.39 kB / 493.7 MB, free: 7.574 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000108/0.1387, allocations: 137.9 kB / 493.8 MB, free: 7.43 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.826e-05/0.1387, allocations: 29.7 kB / 493.8 MB, free: 7.395 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.417e-05/0.1388, allocations: 92.14 kB / 493.9 MB, free: 7.301 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.82e-05/0.1388, allocations: 23.78 kB / 494 MB, free: 7.277 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.161e-06/0.1388, allocations: 4 kB / 494 MB, free: 7.273 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.139, allocations: 326.8 kB / 494.3 MB, free: 6.945 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.782e-05/0.139, allocations: 16 kB / 494.3 MB, free: 6.93 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.128e-05/0.1391, allocations: 38.56 kB / 494.3 MB, free: 6.883 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.987e-05/0.1391, allocations: 15.94 kB / 494.3 MB, free: 6.867 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.1391, allocations: 0 / 494.3 MB, free: 6.867 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001323/0.1392, allocations: 89.52 kB / 494.4 MB, free: 6.773 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.232e-05/0.1393, allocations: 8 kB / 494.4 MB, free: 6.766 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.1393, allocations: 4.062 kB / 494.4 MB, free: 6.762 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.043e-05/0.1393, allocations: 0 / 494.4 MB, free: 6.762 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.29e-05/0.1394, allocations: 8 kB / 494.5 MB, free: 6.754 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.425e-06/0.1394, allocations: 3.984 kB / 494.5 MB, free: 6.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.993e-05/0.1395, allocations: 8 kB / 494.5 MB, free: 6.742 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.404e-06/0.1395, allocations: 4 kB / 494.5 MB, free: 6.738 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,integrator.reset,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.fallingEdge.not_u,fallingEdge.not_u) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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 0.0001048/0.1396, allocations: 125.8 kB / 494.6 MB, free: 6.605 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.588e-05/0.1396, allocations: 7.906 kB / 494.6 MB, free: 6.598 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.629e-05/0.1396, allocations: 20.7 kB / 494.6 MB, free: 6.578 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.1397, allocations: 11.88 kB / 494.6 MB, free: 6.566 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.1397, allocations: 0 / 494.6 MB, free: 6.566 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.1397, allocations: 0 / 494.6 MB, free: 6.566 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003323/0.14, allocations: 346.4 kB / 495 MB, free: 6.172 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.694e-06/0.14, allocations: 0 / 495 MB, free: 6.172 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.897e-05/0.1401, allocations: 4 kB / 495 MB, free: 6.168 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.1401, allocations: 0 / 495 MB, free: 6.168 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.878e-06/0.1401, allocations: 4 kB / 495 MB, free: 6.164 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.008e-06/0.1401, allocations: 7.938 kB / 495 MB, free: 6.156 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.1401, allocations: 4.172 kB / 495 MB, free: 6.152 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000214/0.1403, allocations: 187.4 kB / 495.2 MB, free: 5.953 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.749e-05/0.1404, allocations: 92.97 kB / 495.3 MB, free: 5.844 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.847e-05/0.1404, allocations: 3.984 kB / 495.3 MB, free: 5.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.395e-05/0.1405, allocations: 12 kB / 495.3 MB, free: 5.828 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.378e-05/0.1406, allocations: 3.984 kB / 495.3 MB, free: 5.824 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.304e-06/0.1406, allocations: 12.05 kB / 495.3 MB, free: 5.812 MB / 378.7 MB Notification: Performance of sorting global known variables: time 7.197e-05/0.1407, allocations: 106.9 kB / 495.4 MB, free: 5.711 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1407, allocations: 0 / 495.4 MB, free: 5.711 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002197/0.1409, allocations: 16 kB / 495.4 MB, free: 5.695 MB / 378.7 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: 5 (integrator.reset,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,fallingEdge.not_u) * Number of discrete states: 1 (fallingEdge.not_u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 0.0001398/0.1411, allocations: 91.25 kB / 495.5 MB, free: 5.594 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001251/0.1412, allocations: 48.47 kB / 495.6 MB, free: 5.547 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.1412, allocations: 0 / 495.6 MB, free: 5.547 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.337e-05/0.1413, allocations: 23.92 kB / 495.6 MB, free: 5.523 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000301/0.1416, allocations: 24.06 kB / 495.6 MB, free: 5.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005593/0.1421, allocations: 270.9 kB / 495.9 MB, free: 5.203 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002734/0.1424, allocations: 0.6965 MB / 496.6 MB, free: 4.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.954e-05/0.1425, allocations: 15.42 kB / 496.6 MB, free: 4.469 MB / 378.7 MB Notification: Performance of SimCode: time 2.01e-07/0.1425, allocations: 0 / 496.6 MB, free: 4.469 MB / 378.7 MB Notification: Performance of Templates: time 0.00309/0.1456, allocations: 1.133 MB / 497.7 MB, free: 3.336 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches