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.001213/0.001213, allocations: 82.03 kB / 20.68 MB, free: 1.035 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.001605/0.001605, allocations: 163.5 kB / 23.96 MB, free: 4.164 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.492/1.492, allocations: 177.2 MB / 204.3 MB, free: 9.199 MB / 190.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.2064/0.2064, allocations: 34.27 MB / 295 MB, free: 14.59 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 1.542e-06/1.542e-06, allocations: 3.938 kB / 442.7 MB, free: 5.449 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.931e-05/3.085e-05, allocations: 2.281 kB / 442.7 MB, free: 5.445 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.00294/0.002971, allocations: 1.611 MB / 444.3 MB, free: 3.824 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00102/0.003992, allocations: 0.4947 MB / 444.8 MB, free: 3.324 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.768e-05/0.004089, allocations: 0 / 444.8 MB, free: 3.324 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001281/0.004217, allocations: 11.86 kB / 444.8 MB, free: 3.312 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 5.957e-05/0.004277, allocations: 19.86 kB / 444.8 MB, free: 3.293 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002095/0.004486, allocations: 39.84 kB / 444.8 MB, free: 3.254 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001624/0.004649, allocations: 79.75 kB / 444.9 MB, free: 3.176 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001367/0.004785, allocations: 16.22 kB / 444.9 MB, free: 3.156 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001105/0.004896, allocations: 47.89 kB / 445 MB, free: 3.109 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.512e-05/0.004971, allocations: 23.91 kB / 445 MB, free: 3.086 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.257e-05/0.004994, allocations: 4 kB / 445 MB, free: 3.082 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.656e-05/0.00501, allocations: 11.94 kB / 445 MB, free: 3.07 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 2.712e-05/0.005037, allocations: 11.92 kB / 445 MB, free: 3.059 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.757e-05/0.005085, allocations: 27.92 kB / 445.1 MB, free: 3.031 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001477/0.005233, allocations: 75.75 kB / 445.1 MB, free: 2.957 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.005238, allocations: 0 / 445.1 MB, free: 2.957 MB / 366.1 MB Notification: Performance of FrontEnd: time 8.51e-07/0.005238, allocations: 0 / 445.1 MB, free: 2.957 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.551e-06/0.005244, allocations: 0 / 445.1 MB, free: 2.957 MB / 366.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.0006056/0.00585, allocations: 333.4 kB / 445.5 MB, free: 2.602 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.341e-05/0.005883, allocations: 8.031 kB / 445.5 MB, free: 2.594 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.167e-05/0.005925, allocations: 8.891 kB / 445.5 MB, free: 2.586 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002162/0.006141, allocations: 145.5 kB / 445.6 MB, free: 2.418 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.47e-05/0.006156, allocations: 8.375 kB / 445.6 MB, free: 2.41 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.686e-05/0.006182, allocations: 12.36 kB / 445.6 MB, free: 2.398 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001596/0.006342, allocations: 74.23 kB / 445.7 MB, free: 2.32 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.006352, allocations: 192 / 445.7 MB, free: 2.32 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.127e-05/0.006363, allocations: 384 / 445.7 MB, free: 2.32 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.814e-06/0.006371, allocations: 3.938 kB / 445.7 MB, free: 2.316 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.875e-05/0.006459, allocations: 31.98 kB / 445.7 MB, free: 2.285 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005717/0.007031, allocations: 280.2 kB / 446 MB, free: 1.98 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001244/0.007155, allocations: 54.53 kB / 446.1 MB, free: 1.918 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.668e-05/0.007192, allocations: 16.86 kB / 446.1 MB, free: 1.898 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.356e-05/0.007206, allocations: 0 / 446.1 MB, free: 1.898 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001352/0.007341, allocations: 67.44 kB / 446.2 MB, free: 1.82 MB / 366.1 MB Notification: Performance of pre-optimization done (n=7): time 1.312e-06/0.007342, allocations: 3.938 kB / 446.2 MB, free: 1.816 MB / 366.1 MB Notification: Performance of matching and sorting (n=7): time 0.000228/0.00757, allocations: 85.56 kB / 446.2 MB, free: 1.727 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.146e-05/0.007622, allocations: 55.41 kB / 446.3 MB, free: 1.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001061/0.007728, allocations: 121.8 kB / 446.4 MB, free: 1.531 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.606e-05/0.007754, allocations: 29.7 kB / 446.4 MB, free: 1.496 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.033e-05/0.007824, allocations: 100.3 kB / 446.5 MB, free: 1.395 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.756e-05/0.007852, allocations: 23.97 kB / 446.6 MB, free: 1.371 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5e-05/0.007902, allocations: 29.72 kB / 446.6 MB, free: 1.336 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001554/0.008057, allocations: 326.8 kB / 446.9 MB, free: 1.008 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.387e-05/0.008101, allocations: 12 kB / 446.9 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.051e-05/0.008161, allocations: 38.56 kB / 447 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.944e-05/0.008251, allocations: 54.5 kB / 447 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.008253, allocations: 0 / 447 MB, free: 0.8867 MB / 366.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001562/0.008409, allocations: 81.89 kB / 447.1 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.302e-05/0.008422, allocations: 4 kB / 447.1 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.008427, allocations: 4.062 kB / 447.1 MB, free: 0.793 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.699e-05/0.008444, allocations: 11.92 kB / 447.1 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.37e-05/0.008507, allocations: 4 kB / 447.1 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.008514, allocations: 8.062 kB / 447.1 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.071e-05/0.008585, allocations: 15.94 kB / 447.1 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.999e-06/0.008595, allocations: 7.938 kB / 447.1 MB, free: 0.7461 MB / 366.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.0001095/0.008704, allocations: 118.4 kB / 447.3 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.533e-05/0.00872, allocations: 4 kB / 447.3 MB, free: 0.6172 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.726e-05/0.008757, allocations: 8.438 kB / 447.3 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.008759, allocations: 0 / 447.3 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.066e-05/0.008769, allocations: 11.98 kB / 447.3 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.008773, allocations: 4 kB / 447.3 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003449/0.009117, allocations: 290.1 kB / 447.6 MB, free: 280 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-06/0.009119, allocations: 0 / 447.6 MB, free: 280 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.091e-05/0.00917, allocations: 4 kB / 447.6 MB, free: 276 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.009171, allocations: 0 / 447.6 MB, free: 276 kB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.294e-05/0.009184, allocations: 4 kB / 447.6 MB, free: 272 kB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.009186, allocations: 0 / 447.6 MB, free: 272 kB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.009188, allocations: 3.938 kB / 447.6 MB, free: 268 kB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002383/0.009427, allocations: 187.5 kB / 447.8 MB, free: 64 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.652e-05/0.009443, allocations: 7.984 kB / 447.8 MB, free: 56 kB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.155e-05/0.009465, allocations: 8.25 kB / 447.8 MB, free: 48 kB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.658e-05/0.009561, allocations: 7.984 kB / 447.8 MB, free: 40 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.166e-05/0.009613, allocations: 19.8 kB / 447.8 MB, free: 20 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.032e-06/0.009619, allocations: 0 / 447.8 MB, free: 20 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.2206/0.2302, allocations: 94.2 kB / 447.9 MB, free: 19.09 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.62e-07/0.2302, allocations: 0 / 447.9 MB, free: 19.09 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004083/0.2306, allocations: 18.17 kB / 447.9 MB, free: 19.09 MB / 366.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.0001496/0.2308, allocations: 94.97 kB / 448 MB, free: 19 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002107/0.231, allocations: 40.23 kB / 448.1 MB, free: 19 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.908e-06/0.231, allocations: 2.469 kB / 448.1 MB, free: 19 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.101e-05/0.2311, allocations: 21.14 kB / 448.1 MB, free: 19 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003795/0.2315, allocations: 22.25 kB / 448.1 MB, free: 19 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000552/0.232, allocations: 200.4 kB / 448.3 MB, free: 18.87 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.105e-05/0.2321, allocations: 85.33 kB / 448.4 MB, free: 18.8 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.901e-05/0.2321, allocations: 6.219 kB / 448.4 MB, free: 18.8 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.424e-05/0.2321, allocations: 12.81 kB / 448.4 MB, free: 18.79 MB / 366.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2321, allocations: 0 / 448.4 MB, free: 18.79 MB / 366.1 MB Notification: Performance of Templates: time 0.004203/0.2364, allocations: 0.9022 MB / 449.3 MB, free: 18.74 MB / 366.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: 4.893919307738543]