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.001464/0.001464, allocations: 80.8 kB / 21.49 MB, free: 2.992 MB / 18.57 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.001687/0.001687, allocations: 168.7 kB / 24.91 MB, free: 9.199 MB / 18.57 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.005/1.005, allocations: 177.1 MB / 205.3 MB, free: 5.492 MB / 186.7 MB " [Timeout remaining time 179] 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.2663/0.2663, allocations: 34.26 MB / 296.1 MB, free: 0.6406 MB / 266.7 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 1.883e-06/1.883e-06, allocations: 0 / 325.3 MB, free: 7.641 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.59e-05/2.778e-05, allocations: 4.703 kB / 325.3 MB, free: 7.637 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.00335/0.003377, allocations: 1.71 MB / 327 MB, free: 5.914 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001009/0.004386, allocations: 0.4947 MB / 327.5 MB, free: 5.414 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.914e-05/0.004485, allocations: 7.938 kB / 327.5 MB, free: 5.406 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001293/0.004615, allocations: 7.875 kB / 327.5 MB, free: 5.398 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.999e-05/0.004675, allocations: 23.84 kB / 327.5 MB, free: 5.375 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002063/0.004881, allocations: 35.84 kB / 327.6 MB, free: 5.34 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001501/0.005031, allocations: 80.33 kB / 327.6 MB, free: 5.262 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001089/0.00514, allocations: 16.22 kB / 327.6 MB, free: 5.242 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.037e-05/0.00523, allocations: 51.88 kB / 327.7 MB, free: 5.191 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.22e-05/0.005303, allocations: 19.92 kB / 327.7 MB, free: 5.172 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.164e-05/0.005324, allocations: 4 kB / 327.7 MB, free: 5.168 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.432e-05/0.005339, allocations: 8 kB / 327.7 MB, free: 5.16 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.363e-05/0.005362, allocations: 15.97 kB / 327.7 MB, free: 5.145 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.82e-05/0.0054, allocations: 23.92 kB / 327.8 MB, free: 5.121 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001399/0.00554, allocations: 67.61 kB / 327.8 MB, free: 5.055 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.005544, allocations: 0 / 327.8 MB, free: 5.055 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.005545, allocations: 0 / 327.8 MB, free: 5.055 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.00555, allocations: 0 / 327.8 MB, free: 5.055 MB / 298.7 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.0004513/0.006001, allocations: 290 kB / 328.1 MB, free: 4.75 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.006038, allocations: 8.031 kB / 328.1 MB, free: 4.742 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.096e-05/0.006079, allocations: 12.92 kB / 328.1 MB, free: 4.73 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001831/0.006263, allocations: 137.7 kB / 328.3 MB, free: 4.57 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.903e-05/0.006282, allocations: 8.375 kB / 328.3 MB, free: 4.562 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.171e-05/0.006303, allocations: 8.375 kB / 328.3 MB, free: 4.555 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001176/0.006421, allocations: 70.88 kB / 328.4 MB, free: 4.477 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.006429, allocations: 4.188 kB / 328.4 MB, free: 4.473 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.286e-05/0.006442, allocations: 8.359 kB / 328.4 MB, free: 4.465 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.00645, allocations: 3.938 kB / 328.4 MB, free: 4.461 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.585e-05/0.006495, allocations: 15.94 kB / 328.4 MB, free: 4.445 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000389/0.006884, allocations: 212.5 kB / 328.6 MB, free: 4.223 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.675e-05/0.006961, allocations: 34.56 kB / 328.6 MB, free: 4.18 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.862e-05/0.00698, allocations: 8.859 kB / 328.6 MB, free: 4.168 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.828e-06/0.00699, allocations: 4 kB / 328.6 MB, free: 4.164 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001056/0.007095, allocations: 67.31 kB / 328.7 MB, free: 4.086 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 1.583e-06/0.007097, allocations: 0 / 328.7 MB, free: 4.086 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001369/0.007234, allocations: 53.67 kB / 328.8 MB, free: 4.027 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.068e-05/0.007274, allocations: 55.41 kB / 328.8 MB, free: 3.961 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.565e-05/0.00736, allocations: 128.6 kB / 328.9 MB, free: 3.824 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.937e-05/0.007379, allocations: 29.7 kB / 329 MB, free: 3.789 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.138e-05/0.007431, allocations: 108.3 kB / 329.1 MB, free: 3.68 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.538e-05/0.007456, allocations: 23.88 kB / 329.1 MB, free: 3.656 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.256e-05/0.007499, allocations: 21.72 kB / 329.1 MB, free: 3.629 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.481e-05/0.007593, allocations: 322.8 kB / 329.4 MB, free: 3.305 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.158e-05/0.007615, allocations: 11.94 kB / 329.4 MB, free: 3.293 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.337e-05/0.007648, allocations: 30.55 kB / 329.5 MB, free: 3.254 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.751e-05/0.007706, allocations: 38.55 kB / 329.5 MB, free: 3.207 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.007708, allocations: 0 / 329.5 MB, free: 3.207 MB / 298.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001053/0.007813, allocations: 69.55 kB / 329.6 MB, free: 3.133 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.007827, allocations: 8.062 kB / 329.6 MB, free: 3.125 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.007832, allocations: 0 / 329.6 MB, free: 3.125 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.368e-05/0.007845, allocations: 4 kB / 329.6 MB, free: 3.121 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.291e-05/0.007908, allocations: 8 kB / 329.6 MB, free: 3.113 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.155e-06/0.007911, allocations: 0 / 329.6 MB, free: 3.113 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.533e-05/0.007957, allocations: 7.938 kB / 329.6 MB, free: 3.105 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.028e-05/0.007967, allocations: 12.38 kB / 329.6 MB, free: 3.094 MB / 298.7 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 7.593e-05/0.008043, allocations: 116.5 kB / 329.7 MB, free: 2.973 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.763e-05/0.00806, allocations: 7.938 kB / 329.7 MB, free: 2.965 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.909e-05/0.00809, allocations: 12.44 kB / 329.8 MB, free: 2.953 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.008093, allocations: 7.984 kB / 329.8 MB, free: 2.945 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.008096, allocations: 4 kB / 329.8 MB, free: 2.941 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.008101, allocations: 4 kB / 329.8 MB, free: 2.938 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002486/0.008349, allocations: 214.7 kB / 330 MB, free: 2.703 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.008352, allocations: 0 / 330 MB, free: 2.703 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.609e-05/0.008398, allocations: 7.984 kB / 330 MB, free: 2.695 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.953e-06/0.008405, allocations: 7.984 kB / 330 MB, free: 2.688 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.596e-06/0.008413, allocations: 3.938 kB / 330 MB, free: 2.684 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.008415, allocations: 0 / 330 MB, free: 2.684 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.008416, allocations: 0 / 330 MB, free: 2.684 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001492/0.008565, allocations: 167.5 kB / 330.2 MB, free: 2.504 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.181e-05/0.008577, allocations: 3.953 kB / 330.2 MB, free: 2.5 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.8e-05/0.008595, allocations: 15.92 kB / 330.2 MB, free: 2.484 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.903e-05/0.008664, allocations: 0 / 330.2 MB, free: 2.484 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.61e-05/0.0087, allocations: 7.984 kB / 330.2 MB, free: 2.477 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.971e-06/0.008706, allocations: 0 / 330.2 MB, free: 2.477 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.873e-05/0.008735, allocations: 18.81 kB / 330.2 MB, free: 2.457 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.008735, allocations: 0 / 330.2 MB, free: 2.457 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002259/0.008961, allocations: 16 kB / 330.2 MB, free: 2.441 MB / 298.7 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 9.222e-05/0.009053, allocations: 84.3 kB / 330.3 MB, free: 2.352 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.172e-05/0.009145, allocations: 44.86 kB / 330.4 MB, free: 2.305 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.009148, allocations: 0 / 330.4 MB, free: 2.305 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.959e-05/0.009188, allocations: 24.78 kB / 330.4 MB, free: 2.277 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002331/0.009421, allocations: 18.66 kB / 330.4 MB, free: 2.262 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000365/0.009786, allocations: 189.1 kB / 330.6 MB, free: 2.051 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.671e-05/0.009832, allocations: 63.34 kB / 330.6 MB, free: 1.969 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.658e-05/0.009869, allocations: 7.984 kB / 330.6 MB, free: 1.961 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.846e-05/0.009937, allocations: 59.38 kB / 330.7 MB, free: 1.902 MB / 298.7 MB Notification: Performance of SimCode: time 6.81e-07/0.009938, allocations: 4.125 kB / 330.7 MB, free: 1.898 MB / 298.7 MB Notification: Performance of Templates: time 0.003328/0.01327, allocations: 0.936 MB / 331.6 MB, free: 0.9766 MB / 298.7 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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.873989360872656]