Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001698/0.001698, allocations: 99.66 kB / 21.18 MB, free: 0.5273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00181/0.00181, allocations: 213.2 kB / 24.48 MB, free: 3.84 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.462/1.462, allocations: 230.6 MB / 258.2 MB, free: 7.812 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2303/0.2303, allocations: 46.96 MB / 361.6 MB, free: 4.078 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+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator") translateModel(ModelicaTest.Blocks.ResetHoldIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00238/0.00238, allocations: 71.89 kB / 0.4973 GB, free: 7.266 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3173/0.3197, allocations: 66.04 MB / 0.5618 GB, free: 4.203 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003228/0.3229, allocations: 1.609 MB / 0.5634 GB, free: 2.582 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00118/0.3241, allocations: 491.8 kB / 0.5639 GB, free: 2.098 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.405e-05/0.3242, allocations: 3.938 kB / 0.5639 GB, free: 2.094 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001455/0.3243, allocations: 11.88 kB / 0.5639 GB, free: 2.082 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.338e-05/0.3244, allocations: 15.86 kB / 0.5639 GB, free: 2.066 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001972/0.3246, allocations: 31.91 kB / 0.5639 GB, free: 2.035 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001749/0.3248, allocations: 79.77 kB / 0.564 GB, free: 1.957 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001214/0.3249, allocations: 18.89 kB / 0.564 GB, free: 1.938 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.481e-05/0.3249, allocations: 31.86 kB / 0.564 GB, free: 1.906 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.975e-05/0.325, allocations: 31.84 kB / 0.5641 GB, free: 1.875 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.489e-05/0.325, allocations: 8 kB / 0.5641 GB, free: 1.867 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.509e-05/0.3251, allocations: 4 kB / 0.5641 GB, free: 1.863 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.196e-05/0.3251, allocations: 19.92 kB / 0.5641 GB, free: 1.844 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.133e-05/0.3251, allocations: 31.8 kB / 0.5641 GB, free: 1.812 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001582/0.3253, allocations: 71.38 kB / 0.5642 GB, free: 1.746 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.3253, allocations: 4 kB / 0.5642 GB, free: 1.742 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3253, allocations: 0 / 0.5642 GB, free: 1.742 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.691e-06/0.3253, allocations: 0 / 0.5642 GB, free: 1.742 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.0006394/0.3259, allocations: 334.8 kB / 0.5645 GB, free: 1.383 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/0.326, allocations: 8.031 kB / 0.5645 GB, free: 1.375 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.88e-05/0.326, allocations: 12.89 kB / 0.5645 GB, free: 1.363 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003052/0.3263, allocations: 138.2 kB / 0.5647 GB, free: 1.203 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.046e-05/0.3264, allocations: 8.375 kB / 0.5647 GB, free: 1.195 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.578e-05/0.3264, allocations: 8.375 kB / 0.5647 GB, free: 1.188 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001588/0.3265, allocations: 80.78 kB / 0.5648 GB, free: 1.105 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.767e-06/0.3266, allocations: 0 / 0.5648 GB, free: 1.105 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.084e-05/0.3266, allocations: 0 / 0.5648 GB, free: 1.105 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.203e-06/0.3266, allocations: 4 kB / 0.5648 GB, free: 1.102 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.212e-05/0.3267, allocations: 39.98 kB / 0.5648 GB, free: 1.062 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005426/0.3272, allocations: 276.3 kB / 0.5651 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001161/0.3273, allocations: 50.44 kB / 0.5651 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.349e-05/0.3274, allocations: 12.89 kB / 0.5651 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.266e-06/0.3274, allocations: 4 kB / 0.5651 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001643/0.3275, allocations: 71.42 kB / 0.5652 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.493e-06/0.3275, allocations: 0 / 0.5652 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002288/0.3278, allocations: 89.55 kB / 0.5653 GB, free: 0.5078 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.546e-05/0.3278, allocations: 59.34 kB / 0.5653 GB, free: 448 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001326/0.3279, allocations: 129.8 kB / 0.5655 GB, free: 308 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.383e-05/0.328, allocations: 29.7 kB / 0.5655 GB, free: 272 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.706e-05/0.328, allocations: 96.33 kB / 0.5656 GB, free: 172 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.624e-05/0.3281, allocations: 19.97 kB / 0.5656 GB, free: 152 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.046e-05/0.3281, allocations: 21.72 kB / 0.5656 GB, free: 124 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002191/0.3283, allocations: 326.8 kB / 0.5659 GB, free: 15.79 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.795e-05/0.3284, allocations: 12 kB / 0.5659 GB, free: 15.78 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.866e-05/0.3284, allocations: 42.55 kB / 0.566 GB, free: 15.73 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001481/0.3286, allocations: 58.5 kB / 0.566 GB, free: 15.66 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.3286, allocations: 0 / 0.566 GB, free: 15.66 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001445/0.3287, allocations: 89.56 kB / 0.5661 GB, free: 15.57 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.3287, allocations: 8 kB / 0.5661 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.3287, allocations: 3.938 kB / 0.5661 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.3288, allocations: 0 / 0.5661 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.597e-05/0.3288, allocations: 8 kB / 0.5661 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.534e-06/0.3288, allocations: 3.938 kB / 0.5662 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.927e-05/0.3289, allocations: 11.94 kB / 0.5662 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.025e-05/0.3289, allocations: 8.062 kB / 0.5662 GB, free: 15.53 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.0001911/0.3291, allocations: 125.8 kB / 0.5663 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.614e-05/0.3291, allocations: 7.953 kB / 0.5663 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.917e-05/0.3291, allocations: 12.38 kB / 0.5663 GB, free: 15.37 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.3292, allocations: 0 / 0.5663 GB, free: 15.37 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.3292, allocations: 3.938 kB / 0.5663 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-06/0.3292, allocations: 3.984 kB / 0.5663 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000344/0.3295, allocations: 278.2 kB / 0.5666 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.3295, allocations: 0 / 0.5666 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.77e-05/0.3296, allocations: 4 kB / 0.5666 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.3296, allocations: 0 / 0.5666 GB, free: 15.05 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.495e-05/0.3296, allocations: 11.94 kB / 0.5666 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.3296, allocations: 192 / 0.5666 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.3296, allocations: 0 / 0.5666 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002424/0.3298, allocations: 191.4 kB / 0.5668 GB, free: 14.83 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.887e-05/0.3298, allocations: 11.92 kB / 0.5668 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.908e-05/0.3299, allocations: 3.938 kB / 0.5668 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.394e-05/0.33, allocations: 11.98 kB / 0.5668 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.576e-05/0.33, allocations: 11.92 kB / 0.5668 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.807e-06/0.33, allocations: 4 kB / 0.5668 GB, free: 14.79 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.891e-05/0.3301, allocations: 95.64 kB / 0.5669 GB, free: 14.7 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3301, allocations: 4.062 kB / 0.5669 GB, free: 14.69 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002366/0.3303, allocations: 16 kB / 0.5669 GB, free: 14.68 MB / 414.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,fallingEdge.not_u,booleanPulse.pulseStart) * 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 9.867e-05/0.3304, allocations: 91.25 kB / 0.567 GB, free: 14.58 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001405/0.3306, allocations: 52.47 kB / 0.5671 GB, free: 14.53 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.3306, allocations: 3.938 kB / 0.5671 GB, free: 14.52 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.753e-05/0.3306, allocations: 19.98 kB / 0.5671 GB, free: 14.5 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003047/0.3309, allocations: 16.3 kB / 0.5671 GB, free: 14.49 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005166/0.3314, allocations: 236.3 kB / 0.5673 GB, free: 14.23 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.574e-05/0.3315, allocations: 83.17 kB / 0.5674 GB, free: 14.12 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.602e-05/0.3316, allocations: 11.44 kB / 0.5674 GB, free: 14.12 MB / 414.1 MB Notification: Performance of SimCode: time 4.3e-07/0.3316, allocations: 0 / 0.5674 GB, free: 14.12 MB / 414.1 MB Notification: Performance of Templates: time 0.003129/0.3347, allocations: 1.129 MB / 0.5685 GB, free: 12.99 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_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.454979730304331]