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.002612/0.002612, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.003225/0.003225, allocations: 165.6 kB / 24.27 MB, free: 156 kB / 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.893/1.893, allocations: 177.1 MB / 204.6 MB, free: 5.617 MB / 186.7 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.3543/0.3543, allocations: 34.26 MB / 295.3 MB, free: 0.6875 MB / 266.7 MB " [Timeout remaining time 179] 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.654e-06/1.654e-06, allocations: 0 / 377.3 MB, free: 2.996 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.814e-05/2.98e-05, allocations: 5.266 kB / 377.3 MB, free: 2.992 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003252/0.003282, allocations: 1.619 MB / 378.9 MB, free: 1.359 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.001084/0.004365, allocations: 0.4986 MB / 379.4 MB, free: 0.8555 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.404e-05/0.00445, allocations: 4 kB / 379.4 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001289/0.004578, allocations: 15.8 kB / 379.4 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 4.965e-05/0.004628, allocations: 3.938 kB / 379.4 MB, free: 0.832 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002034/0.004831, allocations: 43.77 kB / 379.5 MB, free: 0.7891 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001616/0.004993, allocations: 79.77 kB / 379.5 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001328/0.005126, allocations: 28.2 kB / 379.6 MB, free: 0.6797 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.982e-05/0.005216, allocations: 39.91 kB / 379.6 MB, free: 0.6406 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.953e-05/0.005285, allocations: 27.89 kB / 379.6 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.482e-05/0.00531, allocations: 8 kB / 379.6 MB, free: 0.6055 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.472e-05/0.005325, allocations: 4 kB / 379.6 MB, free: 0.6016 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 3.167e-05/0.005356, allocations: 15.92 kB / 379.7 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 4.81e-05/0.005404, allocations: 23.92 kB / 379.7 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001611/0.005565, allocations: 75.7 kB / 379.8 MB, free: 500 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.005569, allocations: 0 / 379.8 MB, free: 500 kB / 346.7 MB Notification: Performance of FrontEnd: time 7.02e-07/0.00557, allocations: 0 / 379.8 MB, free: 500 kB / 346.7 MB Notification: Performance of Transformations before backend: time 4.348e-06/0.005574, allocations: 0 / 379.8 MB, free: 500 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0006586/0.006233, allocations: 435.6 kB / 380.2 MB, free: 24 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.006271, allocations: 12.03 kB / 380.2 MB, free: 12 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.635e-05/0.006347, allocations: 16.94 kB / 380.2 MB, free: 15.99 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004785/0.006826, allocations: 140.4 kB / 380.3 MB, free: 15.83 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.695e-05/0.006843, allocations: 4.375 kB / 380.3 MB, free: 15.83 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.63e-05/0.006869, allocations: 8.375 kB / 380.4 MB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001748/0.007044, allocations: 70.23 kB / 380.4 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.007054, allocations: 192 / 380.4 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.651e-05/0.00707, allocations: 8.359 kB / 380.4 MB, free: 15.74 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.138e-06/0.00708, allocations: 11.94 kB / 380.4 MB, free: 15.73 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.923e-05/0.007179, allocations: 31.98 kB / 380.5 MB, free: 15.7 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006296/0.007808, allocations: 339.5 kB / 380.8 MB, free: 15.33 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001497/0.007958, allocations: 62.97 kB / 380.9 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.039e-05/0.008019, allocations: 23.69 kB / 380.9 MB, free: 15.23 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.123e-05/0.00804, allocations: 4 kB / 380.9 MB, free: 15.22 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001615/0.008201, allocations: 73.05 kB / 381 MB, free: 15.14 MB / 362.7 MB Notification: Performance of pre-optimization done (n=7): time 1.183e-06/0.008202, allocations: 0 / 381 MB, free: 15.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=7): time 0.00027/0.008472, allocations: 93.84 kB / 381.1 MB, free: 15.04 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.381e-05/0.008526, allocations: 55.34 kB / 381.1 MB, free: 14.97 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001811/0.008707, allocations: 193.9 kB / 381.3 MB, free: 14.77 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.487e-05/0.008732, allocations: 25.7 kB / 381.3 MB, free: 14.73 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001201/0.008852, allocations: 155.1 kB / 381.5 MB, free: 14.58 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.254e-05/0.008885, allocations: 19.84 kB / 381.5 MB, free: 14.56 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.319e-05/0.008958, allocations: 35.36 kB / 381.5 MB, free: 14.52 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002766/0.009235, allocations: 0.4922 MB / 382 MB, free: 14.01 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.734e-05/0.009282, allocations: 15.98 kB / 382 MB, free: 14 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.522e-05/0.009357, allocations: 51.05 kB / 382.1 MB, free: 13.93 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001049/0.009462, allocations: 63 kB / 382.2 MB, free: 13.86 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.009464, allocations: 0 / 382.2 MB, free: 13.86 MB / 362.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001672/0.009631, allocations: 93.56 kB / 382.2 MB, free: 13.76 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.009646, allocations: 4 kB / 382.2 MB, free: 13.76 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.009651, allocations: 0 / 382.2 MB, free: 13.76 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.684e-05/0.009667, allocations: 4 kB / 382.3 MB, free: 13.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.732e-05/0.009755, allocations: 15.98 kB / 382.3 MB, free: 13.74 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.00976, allocations: 0 / 382.3 MB, free: 13.74 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.96e-05/0.00981, allocations: 4 kB / 382.3 MB, free: 13.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.214e-05/0.009822, allocations: 8 kB / 382.3 MB, free: 13.73 MB / 362.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,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.0001445/0.009967, allocations: 172.5 kB / 382.4 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.895e-05/0.009986, allocations: 7.953 kB / 382.5 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.889e-05/0.01002, allocations: 12.42 kB / 382.5 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.01003, allocations: 4 kB / 382.5 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.01003, allocations: 0 / 382.5 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.01004, allocations: 0 / 382.5 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004158/0.01045, allocations: 353.2 kB / 382.8 MB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.01045, allocations: 3.938 kB / 382.8 MB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.563e-05/0.0105, allocations: 4 kB / 382.8 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.0105, allocations: 4 kB / 382.8 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.12e-05/0.01051, allocations: 4 kB / 382.8 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.01051, allocations: 0 / 382.8 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/0.01052, allocations: 3.938 kB / 382.8 MB, free: 13.11 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002967/0.01081, allocations: 243.9 kB / 383.1 MB, free: 12.86 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.333e-05/0.01083, allocations: 4 kB / 383.1 MB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.908e-05/0.01085, allocations: 3.984 kB / 383.1 MB, free: 12.85 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.645e-05/0.01092, allocations: 4 kB / 383.1 MB, free: 12.84 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.15e-05/0.01098, allocations: 19.86 kB / 383.1 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.001e-06/0.01099, allocations: 0 / 383.1 MB, free: 12.82 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.983e-05/0.01109, allocations: 139.6 kB / 383.2 MB, free: 12.69 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.01109, allocations: 4.031 kB / 383.2 MB, free: 12.68 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002325/0.01132, allocations: 19.95 kB / 383.3 MB, free: 12.66 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,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.0001092/0.01143, allocations: 91.58 kB / 383.4 MB, free: 12.57 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001691/0.0116, allocations: 59.59 kB / 383.4 MB, free: 12.5 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.01161, allocations: 4 kB / 383.4 MB, free: 12.5 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.344e-05/0.01167, allocations: 23.69 kB / 383.4 MB, free: 12.47 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003146/0.01198, allocations: 20.55 kB / 383.5 MB, free: 12.45 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005063/0.01249, allocations: 218.3 kB / 383.7 MB, free: 12.21 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.063e-05/0.01258, allocations: 79.31 kB / 383.7 MB, free: 12.11 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 3.664e-05/0.01262, allocations: 7.984 kB / 383.8 MB, free: 12.11 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.649e-05/0.01265, allocations: 12.5 kB / 383.8 MB, free: 12.09 MB / 362.7 MB Notification: Performance of SimCode: time 4.71e-07/0.01265, allocations: 0 / 383.8 MB, free: 12.09 MB / 362.7 MB Notification: Performance of Templates: time 0.004292/0.01695, allocations: 0.9293 MB / 384.7 MB, free: 11.18 MB / 362.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 -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","/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.3445059090154245]