Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001557/0.001557, allocations: 112.9 kB / 19.17 MB, free: 3.871 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001701/0.001701, allocations: 210.5 kB / 22.13 MB, free: 0.918 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.451/1.451, allocations: 230.2 MB / 255.1 MB, free: 15.22 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2379/0.2379, allocations: 46.88 MB / 358.1 MB, free: 10.48 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002243/0.002243, allocations: 83.8 kB / 0.4924 GB, free: 7.887 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.132/0.1342, allocations: 65.99 MB / 0.5568 GB, free: 5.773 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003177/0.1374, allocations: 1.623 MB / 0.5584 GB, free: 4.133 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001014/0.1384, allocations: 0.5236 MB / 0.5589 GB, free: 3.605 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.283e-05/0.1385, allocations: 0 / 0.5589 GB, free: 3.605 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001231/0.1386, allocations: 15.86 kB / 0.5589 GB, free: 3.59 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.944e-05/0.1387, allocations: 19.86 kB / 0.5589 GB, free: 3.57 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001965/0.1389, allocations: 31.91 kB / 0.559 GB, free: 3.539 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001573/0.139, allocations: 75.77 kB / 0.559 GB, free: 3.465 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001329/0.1392, allocations: 28.2 kB / 0.5591 GB, free: 3.434 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.891e-05/0.1392, allocations: 31.86 kB / 0.5591 GB, free: 3.402 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.799e-05/0.1393, allocations: 35.78 kB / 0.5591 GB, free: 3.367 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.23e-05/0.1393, allocations: 4 kB / 0.5591 GB, free: 3.363 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.7e-05/0.1393, allocations: 8 kB / 0.5591 GB, free: 3.355 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 2.597e-05/0.1394, allocations: 11.94 kB / 0.5591 GB, free: 3.344 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 5.714e-05/0.1394, allocations: 35.8 kB / 0.5592 GB, free: 3.309 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000162/0.1396, allocations: 83.64 kB / 0.5593 GB, free: 3.227 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.1396, allocations: 0 / 0.5593 GB, free: 3.227 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1396, allocations: 0 / 0.5593 GB, free: 3.227 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.1396, allocations: 0 / 0.5593 GB, free: 3.227 MB / 414.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.0006369/0.1402, allocations: 395.1 kB / 0.5596 GB, free: 2.793 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.1403, allocations: 8.031 kB / 0.5596 GB, free: 2.785 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.099e-05/0.1403, allocations: 8.891 kB / 0.5596 GB, free: 2.777 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002923/0.1406, allocations: 200.1 kB / 0.5598 GB, free: 2.543 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.558e-05/0.1406, allocations: 12.38 kB / 0.5598 GB, free: 2.531 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.81e-05/0.1407, allocations: 4.375 kB / 0.5599 GB, free: 2.527 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001759/0.1408, allocations: 75.53 kB / 0.5599 GB, free: 2.449 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.218e-06/0.1408, allocations: 7.938 kB / 0.5599 GB, free: 2.441 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.405e-05/0.1409, allocations: 4 kB / 0.5599 GB, free: 2.438 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/0.1409, allocations: 3.984 kB / 0.5599 GB, free: 2.434 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.415e-05/0.141, allocations: 35.92 kB / 0.56 GB, free: 2.398 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005921/0.1415, allocations: 356.5 kB / 0.5603 GB, free: 2 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001131/0.1417, allocations: 42.56 kB / 0.5604 GB, free: 1.949 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.057e-05/0.1417, allocations: 16.92 kB / 0.5604 GB, free: 1.93 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.339e-05/0.1417, allocations: 0 / 0.5604 GB, free: 1.93 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001242/0.1418, allocations: 71.38 kB / 0.5604 GB, free: 1.848 MB / 414.1 MB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.1418, allocations: 4 kB / 0.5604 GB, free: 1.844 MB / 414.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002292/0.1421, allocations: 89.52 kB / 0.5605 GB, free: 1.75 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.547e-05/0.1421, allocations: 51.41 kB / 0.5606 GB, free: 1.688 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001235/0.1422, allocations: 137.8 kB / 0.5607 GB, free: 1.543 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.243e-05/0.1423, allocations: 29.69 kB / 0.5607 GB, free: 1.508 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.02e-05/0.1423, allocations: 96.09 kB / 0.5608 GB, free: 1.41 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.766e-05/0.1424, allocations: 23.88 kB / 0.5609 GB, free: 1.387 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.669e-05/0.1424, allocations: 21.72 kB / 0.5609 GB, free: 1.359 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.1425, allocations: 326.8 kB / 0.5612 GB, free: 1.031 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.135e-05/0.1426, allocations: 19.94 kB / 0.5612 GB, free: 1.012 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.125e-05/0.1427, allocations: 46.5 kB / 0.5612 GB, free: 0.957 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.421e-05/0.1427, allocations: 42.58 kB / 0.5613 GB, free: 0.9062 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.1427, allocations: 0 / 0.5613 GB, free: 0.9062 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001404/0.1429, allocations: 97.52 kB / 0.5614 GB, free: 0.8047 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.1429, allocations: 6.031 kB / 0.5614 GB, free: 0.8008 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.1429, allocations: 0 / 0.5614 GB, free: 0.8008 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.876e-05/0.1429, allocations: 7.938 kB / 0.5614 GB, free: 0.793 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.531e-05/0.143, allocations: 7.938 kB / 0.5614 GB, free: 0.7852 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.755e-06/0.143, allocations: 4 kB / 0.5614 GB, free: 0.7812 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.596e-05/0.143, allocations: 16.06 kB / 0.5614 GB, free: 0.7656 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.831e-06/0.1431, allocations: 0 / 0.5614 GB, free: 0.7656 MB / 414.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.0001001/0.1432, allocations: 117.8 kB / 0.5615 GB, free: 0.6406 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.602e-05/0.1432, allocations: 12.02 kB / 0.5615 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.596e-05/0.1432, allocations: 12.66 kB / 0.5616 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.1432, allocations: 0 / 0.5616 GB, free: 0.6133 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.974e-06/0.1432, allocations: 4 kB / 0.5616 GB, free: 0.6094 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.1432, allocations: 3.984 kB / 0.5616 GB, free: 0.6055 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003651/0.1436, allocations: 350.6 kB / 0.5619 GB, free: 212 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.1436, allocations: 3.984 kB / 0.5619 GB, free: 208 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.791e-05/0.1436, allocations: 7.938 kB / 0.5619 GB, free: 200 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.704e-06/0.1436, allocations: 0 / 0.5619 GB, free: 200 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.1436, allocations: 8 kB / 0.5619 GB, free: 192 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.1436, allocations: 480 / 0.5619 GB, free: 192 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1437, allocations: 0 / 0.5619 GB, free: 192 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002479/0.1439, allocations: 195.3 kB / 0.5621 GB, free: 15.98 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.364e-05/0.144, allocations: 85.09 kB / 0.5622 GB, free: 15.88 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.959e-05/0.144, allocations: 4 kB / 0.5622 GB, free: 15.88 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.765e-05/0.1441, allocations: 7.984 kB / 0.5622 GB, free: 15.87 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.147e-05/0.1441, allocations: 7.984 kB / 0.5622 GB, free: 15.86 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.806e-06/0.1441, allocations: 12.06 kB / 0.5622 GB, free: 15.85 MB / 430.1 MB Notification: Performance of sorting global known variables: time 7.723e-05/0.1442, allocations: 99.27 kB / 0.5623 GB, free: 15.75 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1442, allocations: 4 kB / 0.5623 GB, free: 15.75 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002227/0.1444, allocations: 15.88 kB / 0.5623 GB, free: 15.73 MB / 430.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.0001196/0.1445, allocations: 99.25 kB / 0.5624 GB, free: 15.62 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001571/0.1447, allocations: 43.91 kB / 0.5625 GB, free: 15.58 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.1447, allocations: 0 / 0.5625 GB, free: 15.58 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 5.603e-05/0.1448, allocations: 24.11 kB / 0.5625 GB, free: 15.56 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003065/0.1451, allocations: 33.67 kB / 0.5625 GB, free: 15.53 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005266/0.1456, allocations: 228.1 kB / 0.5627 GB, free: 15.27 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003167/0.1459, allocations: 0.6924 MB / 0.5634 GB, free: 14.55 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.559e-05/0.1459, allocations: 11.44 kB / 0.5634 GB, free: 14.55 MB / 430.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1459, allocations: 0 / 0.5634 GB, free: 14.55 MB / 430.1 MB Notification: Performance of Templates: time 0.003063/0.149, allocations: 1.156 MB / 0.5646 GB, free: 13.39 MB / 430.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.ResetHoldIntegrator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.341181314783171]