Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.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.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001159/0.001159, allocations: 110 kB / 18.3 MB, free: 4.84 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.001332/0.001332, allocations: 199.4 kB / 19.23 MB, free: 3.914 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.425/1.425, allocations: 222.9 MB / 242.9 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2151/0.2151, allocations: 44.19 MB / 337.3 MB, free: 2.73 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 60.3 kB / 409.1 MB, free: 27.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1307/0.1319, allocations: 60.83 MB / 469.9 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.00368/0.1357, allocations: 1.601 MB / 471.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001072/0.1368, allocations: 490.7 kB / 472 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001348/0.1369, allocations: 0 / 472 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001482/0.1371, allocations: 15.88 kB / 472 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.673e-05/0.1372, allocations: 11.86 kB / 472 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002662/0.1375, allocations: 43.89 kB / 472.1 MB, free: 12.19 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001986/0.1377, allocations: 75.78 kB / 472.1 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001491/0.1378, allocations: 32.2 kB / 472.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.367e-05/0.1379, allocations: 31.8 kB / 472.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.129e-05/0.138, allocations: 31.84 kB / 472.2 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.327e-05/0.138, allocations: 8 kB / 472.2 MB, free: 12.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.787e-05/0.138, allocations: 4 kB / 472.3 MB, free: 12.01 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.281e-05/0.1381, allocations: 23.92 kB / 472.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.58e-05/0.1382, allocations: 31.8 kB / 472.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001494/0.1383, allocations: 75.94 kB / 472.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.1383, allocations: 4 kB / 472.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1383, allocations: 0 / 472.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.668e-06/0.1383, allocations: 0 / 472.4 MB, free: 11.88 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0006716/0.139, allocations: 387.2 kB / 472.8 MB, free: 11.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.1391, allocations: 12.03 kB / 472.8 MB, free: 11.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.225e-05/0.1391, allocations: 8.844 kB / 472.8 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002273/0.1394, allocations: 196.1 kB / 473 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.949e-05/0.1394, allocations: 8.375 kB / 473 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.769e-05/0.1394, allocations: 4.375 kB / 473 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001616/0.1396, allocations: 81.22 kB / 473.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.1396, allocations: 0 / 473.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.374e-05/0.1396, allocations: 0 / 473.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.488e-06/0.1397, allocations: 4 kB / 473.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.135e-05/0.1398, allocations: 39.91 kB / 473.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006388/0.1404, allocations: 352.5 kB / 473.5 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001194/0.1405, allocations: 54.5 kB / 473.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.507e-05/0.1406, allocations: 16.83 kB / 473.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.648e-05/0.1406, allocations: 4 kB / 473.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002269/0.1408, allocations: 71.42 kB / 473.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.613e-06/0.1409, allocations: 0 / 473.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.000245/0.1411, allocations: 93.69 kB / 473.7 MB, free: 10.41 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.955e-05/0.1412, allocations: 51.41 kB / 473.7 MB, free: 10.34 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001277/0.1413, allocations: 141.7 kB / 473.9 MB, free: 10.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.824e-05/0.1413, allocations: 25.7 kB / 473.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.688e-05/0.1414, allocations: 108.1 kB / 474 MB, free: 10.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.44e-05/0.1414, allocations: 15.81 kB / 474 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.445e-05/0.1415, allocations: 29.7 kB / 474.1 MB, free: 10 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000184/0.1417, allocations: 322.8 kB / 474.4 MB, free: 9.68 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.374e-05/0.1417, allocations: 19.94 kB / 474.4 MB, free: 9.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.126e-05/0.1418, allocations: 34.56 kB / 474.4 MB, free: 9.617 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.988e-05/0.1419, allocations: 54.52 kB / 474.5 MB, free: 9.555 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.1419, allocations: 0 / 474.5 MB, free: 9.555 MB / 350.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001449/0.142, allocations: 85.53 kB / 474.6 MB, free: 9.465 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.646e-05/0.1421, allocations: 10.48 kB / 474.6 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.1421, allocations: 0 / 474.6 MB, free: 9.457 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/0.1421, allocations: 7.938 kB / 474.6 MB, free: 9.449 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.091e-05/0.1422, allocations: 4 kB / 474.6 MB, free: 9.445 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.1422, allocations: 7.938 kB / 474.6 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.363e-05/0.1423, allocations: 15.89 kB / 474.6 MB, free: 9.422 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.937e-06/0.1423, allocations: 8.062 kB / 474.6 MB, free: 9.414 MB / 350.1 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.0001026/0.1424, allocations: 117.8 kB / 474.7 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.894e-05/0.1424, allocations: 7.906 kB / 474.7 MB, free: 9.281 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.772e-05/0.1425, allocations: 12.66 kB / 474.7 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.1425, allocations: 4 kB / 474.7 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.1425, allocations: 3.984 kB / 474.8 MB, free: 9.262 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.1425, allocations: 0 / 474.8 MB, free: 9.262 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003862/0.1429, allocations: 350.4 kB / 475.1 MB, free: 8.863 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.1429, allocations: 4 kB / 475.1 MB, free: 8.859 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.277e-05/0.143, allocations: 7.984 kB / 475.1 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.322e-06/0.143, allocations: 4 kB / 475.1 MB, free: 8.848 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.347e-06/0.143, allocations: 0 / 475.1 MB, free: 8.848 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.143, allocations: 0 / 475.1 MB, free: 8.848 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.123e-06/0.143, allocations: 192 / 475.1 MB, free: 8.848 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002285/0.1432, allocations: 195.4 kB / 475.3 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.608e-05/0.1433, allocations: 88.89 kB / 475.4 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.325e-05/0.1433, allocations: 12.09 kB / 475.4 MB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.071e-05/0.1434, allocations: 3.984 kB / 475.4 MB, free: 8.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.161e-05/0.1435, allocations: 7.984 kB / 475.4 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.213e-06/0.1435, allocations: 4 kB / 475.4 MB, free: 8.508 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.298e-05/0.1436, allocations: 107.3 kB / 475.5 MB, free: 8.402 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1436, allocations: 0 / 475.5 MB, free: 8.402 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002457/0.1438, allocations: 15.91 kB / 475.5 MB, free: 8.387 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: 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.0001158/0.144, allocations: 95.25 kB / 475.6 MB, free: 8.285 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001725/0.1441, allocations: 51.92 kB / 475.7 MB, free: 8.234 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1442, allocations: 3.938 kB / 475.7 MB, free: 8.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.414e-05/0.1442, allocations: 23.98 kB / 475.7 MB, free: 8.207 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003533/0.1446, allocations: 23.92 kB / 475.7 MB, free: 8.184 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005885/0.1452, allocations: 241.8 kB / 476 MB, free: 7.914 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002921/0.1455, allocations: 0.6924 MB / 476.7 MB, free: 7.195 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.972e-05/0.1455, allocations: 15.42 kB / 476.7 MB, free: 7.18 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1455, allocations: 0 / 476.7 MB, free: 7.18 MB / 350.1 MB Notification: Performance of Templates: time 0.00349/0.149, allocations: 1.158 MB / 477.8 MB, free: 6.023 MB / 350.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches