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.002062/0.002062, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002627/0.002627, allocations: 214.3 kB / 23.73 MB, free: 4.16 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.625/1.625, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.2515/0.2515, allocations: 46.96 MB / 360.9 MB, free: 4.043 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.002075/0.002075, allocations: 75.88 kB / 0.4966 GB, free: 7.238 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3957/0.3978, allocations: 66.04 MB / 0.5611 GB, free: 4.176 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003125/0.4009, allocations: 1.605 MB / 0.5626 GB, free: 2.559 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009692/0.4019, allocations: 483.8 kB / 0.5631 GB, free: 2.082 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.94e-05/0.402, allocations: 3.938 kB / 0.5631 GB, free: 2.078 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001161/0.4021, allocations: 15.88 kB / 0.5631 GB, free: 2.062 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.384e-05/0.4021, allocations: 15.84 kB / 0.5631 GB, free: 2.047 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001848/0.4023, allocations: 35.91 kB / 0.5632 GB, free: 2.012 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001526/0.4025, allocations: 75.78 kB / 0.5632 GB, free: 1.938 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001255/0.4026, allocations: 23.86 kB / 0.5633 GB, free: 1.914 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.46e-05/0.4027, allocations: 31.86 kB / 0.5633 GB, free: 1.883 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.73e-05/0.4027, allocations: 31.84 kB / 0.5633 GB, free: 1.852 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.306e-05/0.4028, allocations: 4 kB / 0.5633 GB, free: 1.848 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.601e-05/0.4028, allocations: 8 kB / 0.5633 GB, free: 1.84 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.006e-05/0.4028, allocations: 19.92 kB / 0.5634 GB, free: 1.82 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.624e-05/0.4029, allocations: 27.81 kB / 0.5634 GB, free: 1.793 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001526/0.403, allocations: 70.38 kB / 0.5635 GB, free: 1.727 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.403, allocations: 4 kB / 0.5635 GB, free: 1.723 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.403, allocations: 4 kB / 0.5635 GB, free: 1.719 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.738e-06/0.403, allocations: 0 / 0.5635 GB, free: 1.719 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.0006396/0.4037, allocations: 330.8 kB / 0.5638 GB, free: 1.363 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.612e-05/0.4037, allocations: 8.031 kB / 0.5638 GB, free: 1.355 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.483e-05/0.4038, allocations: 12.89 kB / 0.5638 GB, free: 1.344 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002925/0.404, allocations: 138.2 kB / 0.5639 GB, free: 1.184 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.019e-05/0.4041, allocations: 8.375 kB / 0.5639 GB, free: 1.176 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.096e-05/0.4041, allocations: 8.375 kB / 0.5639 GB, free: 1.168 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001703/0.4043, allocations: 81.97 kB / 0.564 GB, free: 1.082 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.4043, allocations: 3.984 kB / 0.564 GB, free: 1.078 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.813e-05/0.4043, allocations: 8 kB / 0.564 GB, free: 1.07 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.133e-05/0.4043, allocations: 4 kB / 0.564 GB, free: 1.066 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.674e-05/0.4044, allocations: 27.98 kB / 0.5641 GB, free: 1.039 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000564/0.405, allocations: 280.3 kB / 0.5643 GB, free: 0.7344 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001329/0.4051, allocations: 50.44 kB / 0.5644 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.696e-05/0.4051, allocations: 12.89 kB / 0.5644 GB, free: 0.6602 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.779e-05/0.4051, allocations: 4 kB / 0.5644 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001368/0.4053, allocations: 67.44 kB / 0.5645 GB, free: 0.5781 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.452e-06/0.4053, allocations: 4 kB / 0.5645 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002493/0.4055, allocations: 89.56 kB / 0.5646 GB, free: 492 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.742e-05/0.4056, allocations: 55.34 kB / 0.5646 GB, free: 424 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001146/0.4057, allocations: 129.7 kB / 0.5647 GB, free: 284 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.515e-05/0.4057, allocations: 33.7 kB / 0.5648 GB, free: 244 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.453e-05/0.4058, allocations: 96.31 kB / 0.5649 GB, free: 144 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.695e-05/0.4058, allocations: 19.97 kB / 0.5649 GB, free: 124 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.781e-05/0.4059, allocations: 25.72 kB / 0.5649 GB, free: 92 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002011/0.4061, allocations: 326.8 kB / 0.5652 GB, free: 15.76 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.92e-05/0.4061, allocations: 16 kB / 0.5652 GB, free: 15.75 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.93e-05/0.4062, allocations: 38.56 kB / 0.5653 GB, free: 15.7 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.057e-05/0.4063, allocations: 58.8 kB / 0.5653 GB, free: 15.63 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.4063, allocations: 0 / 0.5653 GB, free: 15.63 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001425/0.4064, allocations: 81.58 kB / 0.5654 GB, free: 15.55 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.4064, allocations: 8 kB / 0.5654 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.471e-06/0.4064, allocations: 3.938 kB / 0.5654 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.657e-05/0.4064, allocations: 0 / 0.5654 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.86e-05/0.4065, allocations: 12.06 kB / 0.5654 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.308e-06/0.4065, allocations: 3.938 kB / 0.5654 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.511e-05/0.4066, allocations: 15.94 kB / 0.5654 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.601e-05/0.4066, allocations: 4 kB / 0.5654 GB, free: 15.5 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.0001106/0.4067, allocations: 117.8 kB / 0.5656 GB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.646e-05/0.4067, allocations: 7.953 kB / 0.5656 GB, free: 15.37 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.269e-05/0.4068, allocations: 8.375 kB / 0.5656 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.4068, allocations: 4 kB / 0.5656 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.45e-05/0.4068, allocations: 3.938 kB / 0.5656 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.4068, allocations: 3.984 kB / 0.5656 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00036/0.4072, allocations: 286.2 kB / 0.5659 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.283e-06/0.4072, allocations: 0 / 0.5659 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.741e-05/0.4072, allocations: 4 kB / 0.5659 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.4072, allocations: 0 / 0.5659 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.393e-05/0.4073, allocations: 3.938 kB / 0.5659 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.4073, allocations: 4.188 kB / 0.5659 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.4073, allocations: 0 / 0.5659 GB, free: 15.01 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002482/0.4075, allocations: 191.4 kB / 0.566 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.78e-05/0.4075, allocations: 11.92 kB / 0.5661 GB, free: 14.8 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.483e-05/0.4075, allocations: 11.94 kB / 0.5661 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.125e-05/0.4076, allocations: 12.05 kB / 0.5661 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.787e-05/0.4077, allocations: 11.92 kB / 0.5661 GB, free: 14.76 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.433e-06/0.4077, allocations: 4 kB / 0.5661 GB, free: 14.76 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.33e-05/0.4078, allocations: 95.27 kB / 0.5662 GB, free: 14.66 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4078, allocations: 0 / 0.5662 GB, free: 14.66 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000237/0.408, allocations: 12 kB / 0.5662 GB, free: 14.65 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 0.0001118/0.4081, allocations: 99.23 kB / 0.5663 GB, free: 14.55 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00016/0.4083, allocations: 47.92 kB / 0.5663 GB, free: 14.5 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.4083, allocations: 3.938 kB / 0.5663 GB, free: 14.5 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000109/0.4084, allocations: 24.11 kB / 0.5664 GB, free: 14.47 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003182/0.4087, allocations: 15.98 kB / 0.5664 GB, free: 14.46 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005601/0.4093, allocations: 198.5 kB / 0.5666 GB, free: 14.24 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.887e-05/0.4094, allocations: 87.17 kB / 0.5667 GB, free: 14.13 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.54e-05/0.4094, allocations: 4 kB / 0.5667 GB, free: 14.13 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.304e-05/0.4094, allocations: 11.44 kB / 0.5667 GB, free: 14.12 MB / 414.1 MB Notification: Performance of SimCode: time 3.31e-07/0.4094, allocations: 4 kB / 0.5667 GB, free: 14.12 MB / 414.1 MB Notification: Performance of Templates: time 0.004208/0.4136, allocations: 0.9477 MB / 0.5676 GB, free: 13.19 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins/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: 5.4622359033674]