Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.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.001175/0.001175, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001202/0.001202, allocations: 168.8 kB / 24.82 MB, free: 9.27 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 0.9162/0.9162, allocations: 177.1 MB / 205.3 MB, free: 5.523 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2414/0.2414, allocations: 32.81 MB / 294.6 MB, free: 1.238 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.014e-06/2.014e-06, allocations: 0 / 376.5 MB, free: 4.434 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.679e-05/2.88e-05, allocations: 6.25 kB / 376.5 MB, free: 4.426 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002125/0.002153, allocations: 0.8297 MB / 377.3 MB, free: 3.598 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002381/0.002391, allocations: 43.83 kB / 377.3 MB, free: 3.555 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.542e-05/0.002467, allocations: 0 / 377.3 MB, free: 3.555 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000122/0.002589, allocations: 11.92 kB / 377.3 MB, free: 3.543 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 2.073e-05/0.00261, allocations: 7.875 kB / 377.3 MB, free: 3.535 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001165/0.002726, allocations: 11.98 kB / 377.4 MB, free: 3.523 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001042/0.00283, allocations: 39.91 kB / 377.4 MB, free: 3.484 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001079/0.002938, allocations: 11.98 kB / 377.4 MB, free: 3.473 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.258e-05/0.002991, allocations: 19.98 kB / 377.4 MB, free: 3.453 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.487e-05/0.003036, allocations: 7.938 kB / 377.4 MB, free: 3.445 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.835e-05/0.003054, allocations: 7.984 kB / 377.4 MB, free: 3.438 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.357e-06/0.003063, allocations: 4 kB / 377.5 MB, free: 3.434 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 2.024e-05/0.003083, allocations: 7.984 kB / 377.5 MB, free: 3.426 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.648e-05/0.00311, allocations: 11.94 kB / 377.5 MB, free: 3.414 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001019/0.003212, allocations: 35.77 kB / 377.5 MB, free: 3.379 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.344e-06/0.003214, allocations: 0 / 377.5 MB, free: 3.379 MB / 346.7 MB Notification: Performance of FrontEnd: time 8.61e-07/0.003215, allocations: 0 / 377.5 MB, free: 3.379 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.957e-06/0.003219, allocations: 0 / 377.5 MB, free: 3.379 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004113/0.00363, allocations: 392.2 kB / 377.9 MB, free: 2.953 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.003671, allocations: 8.031 kB / 377.9 MB, free: 2.945 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.342e-05/0.003704, allocations: 8.938 kB / 377.9 MB, free: 2.938 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001384/0.003843, allocations: 128.5 kB / 378 MB, free: 2.785 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.398e-06/0.003852, allocations: 384 / 378 MB, free: 2.785 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.691e-05/0.003879, allocations: 4.375 kB / 378 MB, free: 2.781 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.162e-05/0.003971, allocations: 50.17 kB / 378.1 MB, free: 2.727 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.235e-06/0.003979, allocations: 192 / 378.1 MB, free: 2.727 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.595e-06/0.003986, allocations: 384 / 378.1 MB, free: 2.727 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.003993, allocations: 4.375 kB / 378.1 MB, free: 2.723 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.872e-05/0.004022, allocations: 15.92 kB / 378.1 MB, free: 2.707 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003787/0.004401, allocations: 256.3 kB / 378.4 MB, free: 2.43 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.816e-05/0.004449, allocations: 35.05 kB / 378.4 MB, free: 2.383 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.289e-05/0.004462, allocations: 11.69 kB / 378.4 MB, free: 2.367 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.834e-06/0.00447, allocations: 4 kB / 378.4 MB, free: 2.363 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.38e-05/0.004543, allocations: 57 kB / 378.5 MB, free: 2.293 MB / 346.7 MB Notification: Performance of pre-optimization done (n=3): time 1.573e-06/0.004545, allocations: 0 / 378.5 MB, free: 2.293 MB / 346.7 MB Notification: Performance of matching and sorting (n=3): time 0.000121/0.004666, allocations: 45.62 kB / 378.5 MB, free: 2.242 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.738e-05/0.004693, allocations: 51.41 kB / 378.6 MB, free: 2.18 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.752e-05/0.004781, allocations: 177.9 kB / 378.7 MB, free: 1.988 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.718e-05/0.004798, allocations: 25.7 kB / 378.8 MB, free: 1.957 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.255e-05/0.004851, allocations: 130.9 kB / 378.9 MB, free: 1.824 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.542e-05/0.004866, allocations: 11.95 kB / 378.9 MB, free: 1.812 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.374e-05/0.0049, allocations: 23.36 kB / 378.9 MB, free: 1.781 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.005047, allocations: 496.1 kB / 379.4 MB, free: 1.285 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.153e-05/0.005059, allocations: 4 kB / 379.4 MB, free: 1.281 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.445e-05/0.005083, allocations: 23.36 kB / 379.4 MB, free: 1.25 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.502e-05/0.005118, allocations: 27.31 kB / 379.5 MB, free: 1.215 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.005122, allocations: 7.938 kB / 379.5 MB, free: 1.207 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.426e-05/0.005196, allocations: 57.58 kB / 379.5 MB, free: 1.145 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.539e-05/0.005212, allocations: 6.188 kB / 379.5 MB, free: 1.141 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.005217, allocations: 0 / 379.5 MB, free: 1.141 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.00523, allocations: 3.938 kB / 379.5 MB, free: 1.137 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.652e-05/0.005266, allocations: 4 kB / 379.5 MB, free: 1.133 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.005271, allocations: 4 kB / 379.5 MB, free: 1.129 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.653e-05/0.005298, allocations: 4 kB / 379.5 MB, free: 1.125 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.286e-06/0.005301, allocations: 0 / 379.5 MB, free: 1.125 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.0001943/0.005495, allocations: 160.9 kB / 379.7 MB, free: 0.957 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.444e-05/0.00551, allocations: 11.92 kB / 379.7 MB, free: 0.9453 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.864e-05/0.005538, allocations: 15.98 kB / 379.7 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.005541, allocations: 3.984 kB / 379.7 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.462e-06/0.005543, allocations: 0 / 379.7 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.005546, allocations: 0 / 379.7 MB, free: 0.9258 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002763/0.005822, allocations: 281.9 kB / 380 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.005824, allocations: 0 / 380 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.253e-05/0.005857, allocations: 4 kB / 380 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.00586, allocations: 0 / 380 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.325e-06/0.005868, allocations: 0 / 380 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.00587, allocations: 0 / 380 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.005872, allocations: 7.984 kB / 380 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001356/0.006007, allocations: 199.8 kB / 380.2 MB, free: 400 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.667e-06/0.006016, allocations: 3.953 kB / 380.2 MB, free: 396 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.113e-05/0.006027, allocations: 4 kB / 380.2 MB, free: 392 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.331e-05/0.00608, allocations: 0 / 380.2 MB, free: 392 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.194e-05/0.006102, allocations: 3.984 kB / 380.2 MB, free: 388 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.318e-06/0.006107, allocations: 0 / 380.2 MB, free: 388 kB / 346.7 MB Notification: Performance of sorting global known variables: time 4.316e-05/0.00615, allocations: 131.5 kB / 380.3 MB, free: 256 kB / 346.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.00615, allocations: 0 / 380.3 MB, free: 256 kB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002151/0.006365, allocations: 4 kB / 380.4 MB, free: 252 kB / 346.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: 2 (greaterEqualThreshold.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 8.64e-05/0.006451, allocations: 99.28 kB / 380.5 MB, free: 140 kB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.128e-05/0.006523, allocations: 19.67 kB / 380.5 MB, free: 116 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.006525, allocations: 0 / 380.5 MB, free: 116 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 2.304e-05/0.006548, allocations: 19.61 kB / 380.5 MB, free: 92 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002727/0.00682, allocations: 11.94 kB / 380.5 MB, free: 80 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003645/0.007185, allocations: 153.9 kB / 380.7 MB, free: 15.9 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.615e-05/0.007221, allocations: 55.36 kB / 380.7 MB, free: 15.82 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.137e-05/0.007242, allocations: 8 kB / 380.7 MB, free: 15.82 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.014e-05/0.007293, allocations: 74.19 kB / 380.8 MB, free: 15.74 MB / 362.7 MB Notification: Performance of SimCode: time 7.11e-07/0.007293, allocations: 4.062 kB / 380.8 MB, free: 15.74 MB / 362.7 MB Notification: Performance of Templates: time 0.002657/0.00995, allocations: 0.5422 MB / 381.3 MB, free: 15.2 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.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.738594451919198]