Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001049/0.001049, allocations: 183 kB / 16.63 MB, free: 5.137 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.294/1.294, allocations: 205.1 MB / 222.5 MB, free: 8.477 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.0009796/0.0009796, allocations: 94.28 kB / 269.9 MB, free: 8.445 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.3452/0.3452, allocations: 43.5 MB / 360.7 MB, free: 51.21 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00108/0.00108, allocations: 51.92 kB / 429.2 MB, free: 6.398 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1212, allocations: 57.76 MB / 487 MB, free: 12.56 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003095/0.1243, allocations: 1.665 MB / 488.7 MB, free: 10.88 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008732/0.1252, allocations: 0.519 MB / 489.2 MB, free: 10.36 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.592e-05/0.1253, allocations: 0 / 489.2 MB, free: 10.36 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 9.799e-05/0.1254, allocations: 7.922 kB / 489.2 MB, free: 10.35 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 5.328e-05/0.1255, allocations: 15.94 kB / 489.2 MB, free: 10.33 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001606/0.1257, allocations: 35.89 kB / 489.2 MB, free: 10.3 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001281/0.1258, allocations: 75.78 kB / 489.3 MB, free: 10.22 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001012/0.1259, allocations: 32.47 kB / 489.3 MB, free: 10.19 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.448e-05/0.126, allocations: 27.86 kB / 489.4 MB, free: 10.16 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.227e-05/0.1261, allocations: 35.72 kB / 489.4 MB, free: 10.13 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.864e-05/0.1261, allocations: 4 kB / 489.4 MB, free: 10.12 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.196e-05/0.1261, allocations: 8 kB / 489.4 MB, free: 10.12 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 2.297e-05/0.1261, allocations: 15.92 kB / 489.4 MB, free: 10.1 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.473e-05/0.1262, allocations: 35.8 kB / 489.5 MB, free: 10.07 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001067/0.1263, allocations: 67.72 kB / 489.5 MB, free: 10 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.716e-06/0.1263, allocations: 0 / 489.5 MB, free: 10 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1263, allocations: 0 / 489.5 MB, free: 10 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.707e-06/0.1263, allocations: 0 / 489.5 MB, free: 10 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.000549/0.1269, allocations: 394.8 kB / 489.9 MB, free: 9.57 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.37e-05/0.1269, allocations: 8.031 kB / 489.9 MB, free: 9.562 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.722e-05/0.127, allocations: 12.84 kB / 489.9 MB, free: 9.551 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001902/0.1272, allocations: 200.1 kB / 490.1 MB, free: 9.316 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.575e-05/0.1272, allocations: 4.375 kB / 490.1 MB, free: 9.312 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.415e-05/0.1272, allocations: 12.31 kB / 490.2 MB, free: 9.301 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001354/0.1274, allocations: 77.58 kB / 490.2 MB, free: 9.223 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.293e-06/0.1274, allocations: 0 / 490.2 MB, free: 9.223 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.256e-05/0.1274, allocations: 8 kB / 490.2 MB, free: 9.215 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.1274, allocations: 0 / 490.2 MB, free: 9.215 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.575e-05/0.1275, allocations: 31.98 kB / 490.3 MB, free: 9.184 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005254/0.128, allocations: 360.6 kB / 490.6 MB, free: 8.781 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.38e-05/0.1281, allocations: 46.5 kB / 490.7 MB, free: 8.727 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.569e-05/0.1282, allocations: 16.89 kB / 490.7 MB, free: 8.707 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.306e-05/0.1282, allocations: 4 kB / 490.7 MB, free: 8.703 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001791/0.1284, allocations: 71.42 kB / 490.8 MB, free: 8.621 MB / 378.7 MB Notification: Performance of pre-optimization done (n=7): time 1.463e-06/0.1284, allocations: 0 / 490.8 MB, free: 8.621 MB / 378.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002265/0.1286, allocations: 89.52 kB / 490.8 MB, free: 8.527 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.412e-05/0.1287, allocations: 59.34 kB / 490.9 MB, free: 8.457 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001236/0.1288, allocations: 137.7 kB / 491 MB, free: 8.312 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.879e-05/0.1288, allocations: 29.7 kB / 491.1 MB, free: 8.277 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.509e-05/0.1289, allocations: 100.1 kB / 491.2 MB, free: 8.176 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.063e-05/0.1289, allocations: 19.7 kB / 491.2 MB, free: 8.156 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.289e-05/0.129, allocations: 29.7 kB / 491.2 MB, free: 8.121 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.591e-05/0.1291, allocations: 318.8 kB / 491.5 MB, free: 7.801 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.676e-05/0.1291, allocations: 12 kB / 491.5 MB, free: 7.789 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.661e-05/0.1292, allocations: 38.56 kB / 491.6 MB, free: 7.742 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.335e-05/0.1292, allocations: 59 kB / 491.6 MB, free: 7.676 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.804e-06/0.1292, allocations: 0 / 491.6 MB, free: 7.676 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.00013/0.1294, allocations: 89.47 kB / 491.7 MB, free: 7.582 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/0.1294, allocations: 8 kB / 491.7 MB, free: 7.574 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.429e-06/0.1294, allocations: 0 / 491.7 MB, free: 7.574 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.393e-05/0.1294, allocations: 3.938 kB / 491.7 MB, free: 7.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.245e-05/0.1295, allocations: 11.98 kB / 491.7 MB, free: 7.559 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.039e-06/0.1295, allocations: 0 / 491.7 MB, free: 7.559 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.585e-05/0.1296, allocations: 16 kB / 491.8 MB, free: 7.543 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.234e-06/0.1296, allocations: 4 kB / 491.8 MB, free: 7.539 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,fallingEdge.not_u,$PRE.fallingEdge.not_u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$whenCondition2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001004/0.1297, allocations: 129.8 kB / 491.9 MB, free: 7.402 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.754e-05/0.1297, allocations: 7.906 kB / 491.9 MB, free: 7.395 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.363e-05/0.1298, allocations: 16.66 kB / 491.9 MB, free: 7.379 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.1298, allocations: 3.938 kB / 491.9 MB, free: 7.375 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.1298, allocations: 0 / 491.9 MB, free: 7.375 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.405e-06/0.1298, allocations: 0 / 491.9 MB, free: 7.375 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003535/0.1302, allocations: 358.3 kB / 492.3 MB, free: 6.969 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.1302, allocations: 0 / 492.3 MB, free: 6.969 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.682e-05/0.1302, allocations: 4 kB / 492.3 MB, free: 6.965 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.1302, allocations: 0 / 492.3 MB, free: 6.965 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/0.1302, allocations: 3.984 kB / 492.3 MB, free: 6.961 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.1303, allocations: 0 / 492.3 MB, free: 6.961 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1303, allocations: 4 kB / 492.3 MB, free: 6.957 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001171/0.1314, allocations: 1.144 MB / 493.4 MB, free: 5.668 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.494e-05/0.1315, allocations: 84.95 kB / 493.5 MB, free: 5.566 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.78e-05/0.1315, allocations: 4.031 kB / 493.5 MB, free: 5.562 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.674e-05/0.1316, allocations: 3.984 kB / 493.5 MB, free: 5.559 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.589e-05/0.1317, allocations: 11.98 kB / 493.5 MB, free: 5.547 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.724e-06/0.1317, allocations: 4.062 kB / 493.5 MB, free: 5.543 MB / 378.7 MB Notification: Performance of sorting global known variables: time 6.7e-05/0.1318, allocations: 110.9 kB / 493.6 MB, free: 5.438 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.1318, allocations: 0 / 493.6 MB, free: 5.438 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003005/0.1321, allocations: 19.94 kB / 493.7 MB, free: 5.418 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 (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.000105/0.1322, allocations: 103.2 kB / 493.8 MB, free: 5.309 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001206/0.1323, allocations: 43.92 kB / 493.8 MB, free: 5.266 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1323, allocations: 0 / 493.8 MB, free: 5.266 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.519e-05/0.1324, allocations: 27.98 kB / 493.8 MB, free: 5.238 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003042/0.1327, allocations: 24.11 kB / 493.8 MB, free: 5.215 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006339/0.1333, allocations: 355.6 kB / 494.2 MB, free: 4.828 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002755/0.1336, allocations: 0.7004 MB / 494.9 MB, free: 4.102 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.296e-05/0.1337, allocations: 4.438 kB / 494.9 MB, free: 4.098 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.241e-05/0.1337, allocations: 15.44 kB / 494.9 MB, free: 4.082 MB / 378.7 MB Notification: Performance of SimCode: time 8.92e-07/0.1337, allocations: 3.938 kB / 494.9 MB, free: 4.078 MB / 378.7 MB Notification: Performance of Templates: time 0.003286/0.137, allocations: 0.9415 MB / 495.9 MB, free: 3.137 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches