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.001579/0.001579, allocations: 188.3 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.111/2.111, allocations: 205.4 MB / 222.5 MB, free: 13.85 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.001185/0.001185, allocations: 90.8 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3045/0.3045, allocations: 43.55 MB / 362.7 MB, free: 11.32 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005012/0.0005013, allocations: 12 kB / 431.4 MB, free: 20.28 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1305/0.1311, allocations: 58.85 MB / 490.2 MB, free: 9.352 MB / 330.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002463/0.1336, allocations: 1.296 MB / 491.5 MB, free: 8.039 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.001182/0.1348, allocations: 0.4961 MB / 492 MB, free: 7.535 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.956e-05/0.1349, allocations: 0 / 492 MB, free: 7.535 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 3.009e-05/0.135, allocations: 7.922 kB / 492 MB, free: 7.527 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000114/0.1351, allocations: 7.984 kB / 492 MB, free: 7.52 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002177/0.1353, allocations: 35.83 kB / 492.1 MB, free: 7.484 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001809/0.1355, allocations: 47.91 kB / 492.1 MB, free: 7.438 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001491/0.1357, allocations: 28.17 kB / 492.1 MB, free: 7.41 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.331e-05/0.1358, allocations: 19.94 kB / 492.1 MB, free: 7.391 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.352e-05/0.1359, allocations: 31.84 kB / 492.2 MB, free: 7.359 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.885e-05/0.1359, allocations: 0 / 492.2 MB, free: 7.359 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.598e-05/0.1359, allocations: 4 kB / 492.2 MB, free: 7.355 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 2.489e-05/0.1359, allocations: 11.92 kB / 492.2 MB, free: 7.344 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 5.941e-05/0.136, allocations: 37.64 kB / 492.2 MB, free: 7.301 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001208/0.1361, allocations: 52.12 kB / 492.3 MB, free: 7.25 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.1362, allocations: 0 / 492.3 MB, free: 7.25 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.1362, allocations: 0 / 492.3 MB, free: 7.25 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.1362, allocations: 0 / 492.3 MB, free: 7.25 MB / 330.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.0007249/0.1369, allocations: 375.1 kB / 492.6 MB, free: 6.836 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.909e-05/0.137, allocations: 8.031 kB / 492.7 MB, free: 6.828 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.203e-05/0.137, allocations: 15.86 kB / 492.7 MB, free: 6.812 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002693/0.1373, allocations: 194.8 kB / 492.9 MB, free: 6.582 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.62e-05/0.1374, allocations: 8 kB / 492.9 MB, free: 6.574 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.509e-05/0.1374, allocations: 11.91 kB / 492.9 MB, free: 6.562 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002038/0.1376, allocations: 68.77 kB / 492.9 MB, free: 6.492 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.1376, allocations: 4 kB / 493 MB, free: 6.488 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.453e-05/0.1377, allocations: 8 kB / 493 MB, free: 6.48 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.082e-06/0.1377, allocations: 0 / 493 MB, free: 6.48 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001247/0.1378, allocations: 35.97 kB / 493 MB, free: 6.445 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007778/0.1386, allocations: 360.5 kB / 493.3 MB, free: 6.043 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000158/0.1388, allocations: 50.45 kB / 493.4 MB, free: 5.984 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.421e-05/0.1388, allocations: 0 / 493.4 MB, free: 5.984 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002057/0.139, allocations: 71.5 kB / 493.5 MB, free: 5.902 MB / 330.7 MB Notification: Performance of pre-optimization done (n=7): time 2.114e-06/0.1391, allocations: 0 / 493.5 MB, free: 5.902 MB / 330.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002863/0.1394, allocations: 85.56 kB / 493.6 MB, free: 5.812 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.503e-05/0.1394, allocations: 59.41 kB / 493.6 MB, free: 5.742 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001556/0.1396, allocations: 140.6 kB / 493.7 MB, free: 5.598 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.357e-05/0.1396, allocations: 29.7 kB / 493.8 MB, free: 5.562 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.934e-05/0.1397, allocations: 162.5 kB / 493.9 MB, free: 5.402 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.904e-05/0.1398, allocations: 23.88 kB / 494 MB, free: 5.379 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.362e-06/0.1398, allocations: 0 / 494 MB, free: 5.379 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.14, allocations: 314.8 kB / 494.3 MB, free: 5.062 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.239e-05/0.14, allocations: 19.98 kB / 494.3 MB, free: 5.043 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.936e-05/0.1401, allocations: 30.58 kB / 494.3 MB, free: 5.004 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.726e-05/0.1402, allocations: 23.98 kB / 494.3 MB, free: 4.98 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.1402, allocations: 0 / 494.3 MB, free: 4.98 MB / 330.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002373/0.1405, allocations: 85.88 kB / 494.4 MB, free: 4.891 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.1405, allocations: 8 kB / 494.4 MB, free: 4.883 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.533e-06/0.1405, allocations: 0 / 494.4 MB, free: 4.883 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.1405, allocations: 0 / 494.4 MB, free: 4.883 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001013/0.1406, allocations: 16 kB / 494.4 MB, free: 4.867 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.453e-05/0.1407, allocations: 4.062 kB / 494.4 MB, free: 4.863 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001168/0.1408, allocations: 15.89 kB / 494.5 MB, free: 4.848 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.536e-05/0.1408, allocations: 4 kB / 494.5 MB, free: 4.844 MB / 330.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.0001248/0.141, allocations: 121.8 kB / 494.6 MB, free: 4.715 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.076e-05/0.141, allocations: 15.86 kB / 494.6 MB, free: 4.699 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.418e-05/0.141, allocations: 8.719 kB / 494.6 MB, free: 4.688 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.077e-06/0.1411, allocations: 4 kB / 494.6 MB, free: 4.684 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.694e-06/0.1411, allocations: 7.984 kB / 494.6 MB, free: 4.676 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/0.1411, allocations: 3.984 kB / 494.6 MB, free: 4.672 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005172/0.1416, allocations: 346.4 kB / 495 MB, free: 4.277 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-06/0.1416, allocations: 4 kB / 495 MB, free: 4.273 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.571e-05/0.1417, allocations: 4 kB / 495 MB, free: 4.27 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.166e-06/0.1417, allocations: 4 kB / 495 MB, free: 4.266 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.35e-05/0.1418, allocations: 0 / 495 MB, free: 4.266 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.711e-06/0.1418, allocations: 4.188 kB / 495 MB, free: 4.262 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.1418, allocations: 0 / 495 MB, free: 4.262 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003183/0.1421, allocations: 199.3 kB / 495.2 MB, free: 4.051 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.693e-05/0.1422, allocations: 85.02 kB / 495.3 MB, free: 3.949 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.531e-05/0.1422, allocations: 0 / 495.3 MB, free: 3.949 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000152/0.1424, allocations: 11.98 kB / 495.3 MB, free: 3.938 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.499e-05/0.1425, allocations: 11.98 kB / 495.3 MB, free: 3.926 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.958e-06/0.1425, allocations: 0 / 495.3 MB, free: 3.926 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001048/0.1426, allocations: 110.3 kB / 495.4 MB, free: 3.82 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.1426, allocations: 0 / 495.4 MB, free: 3.82 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000337/0.143, allocations: 19.89 kB / 495.4 MB, free: 3.801 MB / 330.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.0001373/0.1431, allocations: 95.25 kB / 495.5 MB, free: 3.699 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001963/0.1433, allocations: 43.92 kB / 495.5 MB, free: 3.656 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.1433, allocations: 0 / 495.5 MB, free: 3.656 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.44e-05/0.1434, allocations: 27.98 kB / 495.6 MB, free: 3.629 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003386/0.1438, allocations: 12.11 kB / 495.6 MB, free: 3.617 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008055/0.1446, allocations: 278.8 kB / 495.9 MB, free: 3.316 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000336/0.145, allocations: 0.7004 MB / 496.6 MB, free: 2.59 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.953e-05/0.145, allocations: 19.44 kB / 496.6 MB, free: 2.57 MB / 330.7 MB Notification: Performance of SimCode: time 1.302e-06/0.1451, allocations: 0 / 496.6 MB, free: 2.57 MB / 330.7 MB Notification: Performance of Templates: time 0.003748/0.1488, allocations: 1.102 MB / 497.7 MB, free: 1.469 MB / 330.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/jenkins1/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