Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001482/0.001482, allocations: 96.25 kB / 20.96 MB, free: 3.465 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00163/0.00163, allocations: 156.9 kB / 24.26 MB, free: 168 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.484/1.484, allocations: 177 MB / 204.5 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.372/0.372, allocations: 34.24 MB / 295.2 MB, free: 0.668 MB / 266.7 MB " [Timeout remaining time 179] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator") translateModel(ModelicaTest.Blocks.LimResetIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5025,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 5.6e-06/5.6e-06, allocations: 3.984 kB / 377.2 MB, free: 2.934 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.773e-05/5.333e-05, allocations: 3.859 kB / 377.2 MB, free: 2.93 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003455/0.003509, allocations: 1.626 MB / 378.8 MB, free: 1.289 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00124/0.004749, allocations: 0.5608 MB / 379.4 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.256e-05/0.004842, allocations: 0 / 379.4 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001387/0.00498, allocations: 15.81 kB / 379.4 MB, free: 0.707 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.185e-05/0.005042, allocations: 19.8 kB / 379.4 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003948/0.005437, allocations: 83.75 kB / 379.5 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001972/0.005634, allocations: 115.7 kB / 379.6 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001174/0.005751, allocations: 27.97 kB / 379.6 MB, free: 476 kB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001221/0.005874, allocations: 55.89 kB / 379.7 MB, free: 420 kB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.704e-05/0.005951, allocations: 39.81 kB / 379.7 MB, free: 380 kB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.496e-05/0.005976, allocations: 8 kB / 379.7 MB, free: 372 kB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.723e-05/0.005993, allocations: 8 kB / 379.8 MB, free: 364 kB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 3.175e-05/0.006025, allocations: 19.92 kB / 379.8 MB, free: 344 kB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 7.081e-05/0.006095, allocations: 27.91 kB / 379.8 MB, free: 316 kB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001824/0.006278, allocations: 91.69 kB / 379.9 MB, free: 224 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.006282, allocations: 0 / 379.9 MB, free: 224 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.006283, allocations: 0 / 379.9 MB, free: 224 kB / 346.7 MB Notification: Performance of Transformations before backend: time 4.959e-06/0.006288, allocations: 0 / 379.9 MB, free: 224 kB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0007299/0.007018, allocations: 350.8 kB / 380.2 MB, free: 15.84 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.007055, allocations: 8.031 kB / 380.2 MB, free: 15.84 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.811e-05/0.007123, allocations: 20.84 kB / 380.3 MB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002937/0.007417, allocations: 144.1 kB / 380.4 MB, free: 15.65 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.25e-05/0.007439, allocations: 8.375 kB / 380.4 MB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.09e-05/0.00747, allocations: 12.38 kB / 380.4 MB, free: 15.63 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002945/0.007765, allocations: 102.2 kB / 380.5 MB, free: 15.53 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.815e-06/0.007772, allocations: 192 / 380.5 MB, free: 15.53 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.293e-05/0.007785, allocations: 4.375 kB / 380.5 MB, free: 15.52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.057e-06/0.007794, allocations: 7.922 kB / 380.5 MB, free: 15.52 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001924/0.007987, allocations: 55.91 kB / 380.6 MB, free: 15.46 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007064/0.008693, allocations: 312.2 kB / 380.9 MB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004018/0.009095, allocations: 114.5 kB / 381 MB, free: 15 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001209/0.009216, allocations: 28.89 kB / 381 MB, free: 14.97 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.616e-05/0.009232, allocations: 0 / 381 MB, free: 14.97 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002709/0.009503, allocations: 99.36 kB / 381.1 MB, free: 14.86 MB / 362.7 MB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/0.009504, allocations: 0 / 381.1 MB, free: 14.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=7): time 0.0005202/0.01002, allocations: 141.5 kB / 381.3 MB, free: 14.72 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.194e-05/0.01008, allocations: 55.41 kB / 381.3 MB, free: 14.65 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001396/0.01022, allocations: 132.5 kB / 381.5 MB, free: 14.51 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.544e-05/0.01024, allocations: 25.7 kB / 381.5 MB, free: 14.48 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.32e-05/0.01033, allocations: 120.3 kB / 381.6 MB, free: 14.36 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.115e-05/0.01036, allocations: 11.91 kB / 381.6 MB, free: 14.34 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.708e-05/0.01041, allocations: 29.7 kB / 381.6 MB, free: 14.31 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001834/0.0106, allocations: 326.8 kB / 382 MB, free: 13.98 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00013/0.01073, allocations: 31.98 kB / 382 MB, free: 13.95 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001522/0.01088, allocations: 49.69 kB / 382 MB, free: 13.89 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002489/0.01113, allocations: 81.61 kB / 382.1 MB, free: 13.81 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.01113, allocations: 0 / 382.1 MB, free: 13.81 MB / 362.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003166/0.01145, allocations: 117.5 kB / 382.2 MB, free: 13.69 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.501e-05/0.01146, allocations: 12.03 kB / 382.2 MB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.01147, allocations: 0 / 382.2 MB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.795e-05/0.01148, allocations: 0 / 382.2 MB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001153/0.0116, allocations: 19.92 kB / 382.3 MB, free: 13.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.294e-06/0.01161, allocations: 0 / 382.3 MB, free: 13.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.738e-05/0.0117, allocations: 19.94 kB / 382.3 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.642e-06/0.01171, allocations: 0 / 382.3 MB, free: 13.64 MB / 362.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: 7 ($whenCondition1,integrator.reset,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,change.u,$PRE.change.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.000128/0.01184, allocations: 125.8 kB / 382.4 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.775e-05/0.01187, allocations: 15.94 kB / 382.4 MB, free: 13.49 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.96e-05/0.01191, allocations: 12.78 kB / 382.4 MB, free: 13.47 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.01191, allocations: 0 / 382.4 MB, free: 13.47 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.01191, allocations: 0 / 382.4 MB, free: 13.47 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.766e-06/0.01191, allocations: 0 / 382.4 MB, free: 13.47 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005646/0.01248, allocations: 342.2 kB / 382.8 MB, free: 13.1 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.01248, allocations: 0 / 382.8 MB, free: 13.1 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.666e-05/0.01257, allocations: 15.98 kB / 382.8 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.01257, allocations: 0 / 382.8 MB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.241e-05/0.01258, allocations: 4 kB / 382.8 MB, free: 13.08 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.01258, allocations: 0 / 382.8 MB, free: 13.08 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.01258, allocations: 4 kB / 382.8 MB, free: 13.08 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005551/0.01314, allocations: 251.3 kB / 383 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.532e-05/0.01316, allocations: 3.953 kB / 383 MB, free: 12.81 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.985e-05/0.01318, allocations: 4.031 kB / 383 MB, free: 12.81 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001403/0.01332, allocations: 15.97 kB / 383.1 MB, free: 12.79 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.36e-05/0.01338, allocations: 23.91 kB / 383.1 MB, free: 12.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.148e-06/0.01339, allocations: 4 kB / 383.1 MB, free: 12.77 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.347e-05/0.01347, allocations: 103.3 kB / 383.2 MB, free: 12.66 MB / 362.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01347, allocations: 4.062 kB / 383.2 MB, free: 12.66 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000251/0.01372, allocations: 15.95 kB / 383.2 MB, free: 12.64 MB / 362.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,change.u,booleanPulse.pulseStart) * Number of discrete states: 1 (change.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.0001154/0.01384, allocations: 95.25 kB / 383.3 MB, free: 12.54 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002981/0.01414, allocations: 79.88 kB / 383.4 MB, free: 12.46 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.01414, allocations: 4 kB / 383.4 MB, free: 12.46 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001379/0.01428, allocations: 40.05 kB / 383.4 MB, free: 12.42 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000331/0.01461, allocations: 22.8 kB / 383.4 MB, free: 12.4 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001006/0.01562, allocations: 287.9 kB / 383.7 MB, free: 12.1 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001099/0.01573, allocations: 81.45 kB / 383.8 MB, free: 12 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.1e-05/0.01578, allocations: 12.7 kB / 383.8 MB, free: 11.98 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.336e-05/0.01583, allocations: 24.5 kB / 383.8 MB, free: 11.96 MB / 362.7 MB Notification: Performance of SimCode: time 4e-07/0.01583, allocations: 0 / 383.8 MB, free: 11.96 MB / 362.7 MB Notification: Performance of Templates: time 0.004711/0.02054, allocations: 1.241 MB / 385.1 MB, free: 10.73 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.LimResetIntegrator.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.8538360599195585]