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.001508/0.001508, allocations: 114.5 kB / 21.18 MB, free: 0.7422 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.001624/0.001624, allocations: 212.1 kB / 24.48 MB, free: 4.191 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.404/1.404, allocations: 230.2 MB / 257.8 MB, free: 8.488 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.2224/0.2224, allocations: 46.9 MB / 361.1 MB, free: 4.625 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.00325/0.00325, allocations: 75.88 kB / 0.4967 GB, free: 7.828 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2918/0.2951, allocations: 66 MB / 0.5612 GB, free: 5.008 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.002926/0.298, allocations: 1.64 MB / 0.5628 GB, free: 3.359 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008977/0.2989, allocations: 0.5152 MB / 0.5633 GB, free: 2.84 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.944e-05/0.299, allocations: 7.938 kB / 0.5633 GB, free: 2.832 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001113/0.2991, allocations: 11.86 kB / 0.5633 GB, free: 2.82 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.571e-05/0.2991, allocations: 7.922 kB / 0.5633 GB, free: 2.812 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001776/0.2993, allocations: 39.91 kB / 0.5634 GB, free: 2.773 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001485/0.2995, allocations: 83.7 kB / 0.5635 GB, free: 2.691 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001125/0.2996, allocations: 26.88 kB / 0.5635 GB, free: 2.664 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.812e-05/0.2996, allocations: 23.92 kB / 0.5635 GB, free: 2.641 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.967e-05/0.2997, allocations: 35.78 kB / 0.5635 GB, free: 2.605 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.895e-05/0.2997, allocations: 8 kB / 0.5635 GB, free: 2.598 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.186e-05/0.2997, allocations: 4 kB / 0.5635 GB, free: 2.594 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 2.685e-05/0.2997, allocations: 19.92 kB / 0.5636 GB, free: 2.574 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.718e-05/0.2998, allocations: 31.81 kB / 0.5636 GB, free: 2.543 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001433/0.2999, allocations: 79.58 kB / 0.5637 GB, free: 2.465 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.2999, allocations: 4 kB / 0.5637 GB, free: 2.461 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.2999, allocations: 4 kB / 0.5637 GB, free: 2.457 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.2999, allocations: 0 / 0.5637 GB, free: 2.457 MB / 398.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.0005851/0.3005, allocations: 403.9 kB / 0.5641 GB, free: 2.012 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.3006, allocations: 8.031 kB / 0.5641 GB, free: 2.004 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.427e-05/0.3006, allocations: 12.89 kB / 0.5641 GB, free: 1.992 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002379/0.3008, allocations: 196.2 kB / 0.5643 GB, free: 1.762 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.721e-05/0.3009, allocations: 4.375 kB / 0.5643 GB, free: 1.758 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.909e-05/0.3009, allocations: 16.31 kB / 0.5643 GB, free: 1.742 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001483/0.301, allocations: 73.98 kB / 0.5644 GB, free: 1.664 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.301, allocations: 0 / 0.5644 GB, free: 1.664 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.023e-05/0.3011, allocations: 4 kB / 0.5644 GB, free: 1.66 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.3011, allocations: 0 / 0.5644 GB, free: 1.66 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.294e-05/0.3011, allocations: 31.98 kB / 0.5644 GB, free: 1.629 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006042/0.3017, allocations: 356.5 kB / 0.5647 GB, free: 1.23 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001051/0.3019, allocations: 46.56 kB / 0.5648 GB, free: 1.176 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.427e-05/0.3019, allocations: 12.89 kB / 0.5648 GB, free: 1.16 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.624e-06/0.3019, allocations: 0 / 0.5648 GB, free: 1.16 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001374/0.302, allocations: 75.36 kB / 0.5649 GB, free: 1.074 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.132e-06/0.302, allocations: 0 / 0.5649 GB, free: 1.074 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002366/0.3023, allocations: 89.56 kB / 0.565 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.855e-05/0.3023, allocations: 59.41 kB / 0.565 GB, free: 0.9102 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001338/0.3024, allocations: 137.8 kB / 0.5651 GB, free: 0.7656 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.14e-05/0.3025, allocations: 29.7 kB / 0.5652 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.669e-05/0.3025, allocations: 100.1 kB / 0.5653 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.188e-05/0.3026, allocations: 15.89 kB / 0.5653 GB, free: 0.6133 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.748e-05/0.3026, allocations: 33.64 kB / 0.5653 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.3028, allocations: 318.8 kB / 0.5656 GB, free: 260 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.501e-05/0.3028, allocations: 23.98 kB / 0.5656 GB, free: 236 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.666e-05/0.3029, allocations: 38.56 kB / 0.5657 GB, free: 188 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.042e-05/0.3029, allocations: 50.52 kB / 0.5657 GB, free: 128 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.3029, allocations: 0 / 0.5657 GB, free: 128 kB / 398.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001507/0.3031, allocations: 93.84 kB / 0.5658 GB, free: 28 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/0.3031, allocations: 4.062 kB / 0.5658 GB, free: 24 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.3031, allocations: 4 kB / 0.5658 GB, free: 20 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.799e-05/0.3031, allocations: 3.938 kB / 0.5658 GB, free: 16 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.381e-05/0.3032, allocations: 11.98 kB / 0.5658 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.619e-06/0.3032, allocations: 80 / 0.5658 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.478e-05/0.3033, allocations: 12.23 kB / 0.5658 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.225e-06/0.3033, allocations: 3.984 kB / 0.5658 GB, free: 15.98 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,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,fallingEdge.not_u,$PRE.fallingEdge.not_u,$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.000106/0.3034, allocations: 121.8 kB / 0.566 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.788e-05/0.3034, allocations: 11.95 kB / 0.566 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.663e-05/0.3035, allocations: 16.7 kB / 0.566 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.3035, allocations: 3.938 kB / 0.566 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.3035, allocations: 0 / 0.566 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.567e-05/0.3035, allocations: 89.05 kB / 0.5661 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.818e-05/0.3035, allocations: 0 / 0.5661 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.148e-05/0.3036, allocations: 7.984 kB / 0.5661 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.419e-05/0.3036, allocations: 11.98 kB / 0.5661 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002402/0.3039, allocations: 152.9 kB / 0.5662 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002754/0.3042, allocations: 282.6 kB / 0.5665 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 4.773e-05/0.3042, allocations: 20.02 kB / 0.5665 GB, free: 15.23 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.243e-05/0.3043, allocations: 105.6 kB / 0.5666 GB, free: 15.12 MB / 414.1 MB Notification: Performance of Backend: time 2.31e-07/0.3043, allocations: 0 / 0.5666 GB, free: 15.12 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003651/0.3046, allocations: 98.39 kB / 0.5667 GB, free: 15.02 MB / 414.1 MB Notification: Performance of SimCode: time 0.0006867/0.3053, allocations: 0.6602 MB / 0.5674 GB, free: 14.31 MB / 414.1 MB Notification: Performance of Templates: time 0.003658/0.309, allocations: 0.9864 MB / 0.5683 GB, free: 13.33 MB / 414.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: 4.672121773008257]