Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001517/0.001517, allocations: 76.31 kB / 22.21 MB, free: 2.281 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.001615/0.001615, allocations: 169.2 kB / 25.61 MB, free: 8.574 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.8702/0.8702, allocations: 177.1 MB / 206 MB, free: 4.512 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.1362/0.1362, allocations: 34.26 MB / 296.8 MB, free: 14 MB / 282.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.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator") translateModel(ModelicaTest.Blocks.SelfResettingIntegrator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|integrator.y",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.223e-06/1.223e-06, allocations: 0 / 379.3 MB, free: 23.42 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.619e-05/1.741e-05, allocations: 2.312 kB / 379.3 MB, free: 23.42 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.001639/0.001657, allocations: 0.8205 MB / 380.1 MB, free: 22.6 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001739/0.001831, allocations: 47.77 kB / 380.1 MB, free: 22.55 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.344e-05/0.001894, allocations: 4 kB / 380.1 MB, free: 22.55 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001071/0.002001, allocations: 7.922 kB / 380.2 MB, free: 22.54 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 1.846e-05/0.00202, allocations: 3.938 kB / 380.2 MB, free: 22.54 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 9.138e-05/0.002111, allocations: 15.98 kB / 380.2 MB, free: 22.52 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 8.287e-05/0.002194, allocations: 39.92 kB / 380.2 MB, free: 22.48 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.759e-05/0.002281, allocations: 15.97 kB / 380.2 MB, free: 22.46 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.075e-05/0.002322, allocations: 15.92 kB / 380.2 MB, free: 22.45 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.633e-05/0.002359, allocations: 11.98 kB / 380.3 MB, free: 22.44 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.484e-05/0.002373, allocations: 4 kB / 380.3 MB, free: 22.43 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.316e-06/0.002382, allocations: 0 / 380.3 MB, free: 22.43 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 1.836e-05/0.0024, allocations: 11.94 kB / 380.3 MB, free: 22.42 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.766e-05/0.002418, allocations: 7.984 kB / 380.3 MB, free: 22.41 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 8.176e-05/0.0025, allocations: 27.84 kB / 380.3 MB, free: 22.39 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.245e-06/0.002502, allocations: 4 kB / 380.3 MB, free: 22.38 MB / 314.7 MB Notification: Performance of FrontEnd: time 7.11e-07/0.002502, allocations: 0 / 380.3 MB, free: 22.38 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.677e-06/0.002506, allocations: 4 kB / 380.3 MB, free: 22.38 MB / 314.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.0002676/0.002774, allocations: 388.2 kB / 380.7 MB, free: 21.96 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.959e-05/0.002803, allocations: 8.031 kB / 380.7 MB, free: 21.95 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.779e-05/0.002831, allocations: 8.891 kB / 380.7 MB, free: 21.94 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001077/0.002939, allocations: 128.6 kB / 380.8 MB, free: 21.79 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.258e-06/0.002948, allocations: 384 / 380.8 MB, free: 21.79 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.471e-05/0.002963, allocations: 8.375 kB / 380.8 MB, free: 21.78 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.119e-05/0.003024, allocations: 46.23 kB / 380.9 MB, free: 21.73 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.312e-06/0.00303, allocations: 192 / 380.9 MB, free: 21.73 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.793e-06/0.003037, allocations: 4.375 kB / 380.9 MB, free: 21.73 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.003043, allocations: 4.359 kB / 380.9 MB, free: 21.72 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.125e-05/0.003064, allocations: 19.86 kB / 380.9 MB, free: 21.7 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002783/0.003342, allocations: 256.3 kB / 381.2 MB, free: 21.43 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.921e-05/0.003381, allocations: 39.05 kB / 381.2 MB, free: 21.38 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.135e-05/0.003393, allocations: 15.69 kB / 381.2 MB, free: 21.36 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.28e-06/0.003398, allocations: 0 / 381.2 MB, free: 21.36 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.264e-05/0.003451, allocations: 53 kB / 381.3 MB, free: 21.29 MB / 314.7 MB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.003452, allocations: 0 / 381.3 MB, free: 21.29 MB / 314.7 MB Notification: Performance of matching and sorting (n=3): time 8.939e-05/0.003541, allocations: 45.69 kB / 381.3 MB, free: 21.24 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.693e-05/0.003558, allocations: 55.41 kB / 381.4 MB, free: 21.17 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.503e-05/0.003603, allocations: 169.8 kB / 381.5 MB, free: 20.99 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.951e-06/0.003609, allocations: 29.7 kB / 381.6 MB, free: 20.95 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.56e-05/0.003635, allocations: 134.8 kB / 381.7 MB, free: 20.82 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.303e-05/0.003648, allocations: 11.94 kB / 381.7 MB, free: 20.8 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.932e-05/0.003677, allocations: 23.36 kB / 381.7 MB, free: 20.77 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 3.687e-05/0.003714, allocations: 0.4884 MB / 382.2 MB, free: 20.27 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.724e-06/0.003722, allocations: 4 kB / 382.2 MB, free: 20.27 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.485e-05/0.003736, allocations: 19.36 kB / 382.2 MB, free: 20.24 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.551e-05/0.003762, allocations: 27.38 kB / 382.3 MB, free: 20.21 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.003764, allocations: 0 / 382.3 MB, free: 20.21 MB / 314.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.713e-05/0.003821, allocations: 57.52 kB / 382.3 MB, free: 20.14 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.929e-06/0.003831, allocations: 8 kB / 382.3 MB, free: 20.14 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.003834, allocations: 0 / 382.3 MB, free: 20.14 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.696e-06/0.003843, allocations: 0 / 382.3 MB, free: 20.14 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.579e-05/0.003869, allocations: 4 kB / 382.3 MB, free: 20.13 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.204e-06/0.003871, allocations: 0 / 382.3 MB, free: 20.13 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.236e-05/0.003893, allocations: 4 kB / 382.3 MB, free: 20.13 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.347e-06/0.003897, allocations: 0 / 382.3 MB, free: 20.13 MB / 314.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 4.363e-05/0.00394, allocations: 164.5 kB / 382.5 MB, free: 19.96 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.007e-05/0.00395, allocations: 11.92 kB / 382.5 MB, free: 19.95 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.715e-05/0.003968, allocations: 4 kB / 382.5 MB, free: 19.94 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.542e-06/0.003969, allocations: 4 kB / 382.5 MB, free: 19.93 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.232e-06/0.00397, allocations: 0 / 382.5 MB, free: 19.93 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.003973, allocations: 0 / 382.5 MB, free: 19.93 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001605/0.004134, allocations: 282.3 kB / 382.8 MB, free: 19.62 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-06/0.004135, allocations: 0 / 382.8 MB, free: 19.62 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.731e-05/0.004152, allocations: 3.938 kB / 382.8 MB, free: 19.62 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.004154, allocations: 48 / 382.8 MB, free: 19.62 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.576e-06/0.004163, allocations: 7.984 kB / 382.8 MB, free: 19.61 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.004164, allocations: 11.92 kB / 382.8 MB, free: 19.6 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.004165, allocations: 0 / 382.8 MB, free: 19.6 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.38e-05/0.004239, allocations: 195.9 kB / 383 MB, free: 19.39 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.374e-06/0.004246, allocations: 3.953 kB / 383 MB, free: 19.39 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.658e-06/0.004256, allocations: 0 / 383 MB, free: 19.39 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.852e-05/0.004304, allocations: 4 kB / 383 MB, free: 19.38 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.087e-05/0.004325, allocations: 7.984 kB / 383 MB, free: 19.38 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.467e-06/0.004329, allocations: 0 / 383 MB, free: 19.38 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.776e-05/0.004347, allocations: 127.2 kB / 383.2 MB, free: 19.25 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.004347, allocations: 0 / 383.2 MB, free: 19.25 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002334/0.00458, allocations: 11.94 kB / 383.2 MB, free: 19.24 MB / 314.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 5.216e-05/0.004632, allocations: 99.2 kB / 383.3 MB, free: 19.13 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 5.832e-05/0.004691, allocations: 19.69 kB / 383.3 MB, free: 19.11 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.302e-06/0.004692, allocations: 0 / 383.3 MB, free: 19.11 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.488e-05/0.004707, allocations: 19.67 kB / 383.3 MB, free: 19.09 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002502/0.004957, allocations: 7.938 kB / 383.3 MB, free: 19.08 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001942/0.005151, allocations: 143.9 kB / 383.4 MB, free: 18.91 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.45e-05/0.005176, allocations: 59.22 kB / 383.5 MB, free: 18.83 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 1.682e-05/0.005192, allocations: 3.984 kB / 383.5 MB, free: 18.83 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.975e-05/0.005222, allocations: 78.27 kB / 383.6 MB, free: 18.75 MB / 314.7 MB Notification: Performance of SimCode: time 5.11e-07/0.005223, allocations: 0 / 383.6 MB, free: 18.75 MB / 314.7 MB Notification: Performance of Templates: time 0.002205/0.007428, allocations: 0.5692 MB / 384.2 MB, free: 18.19 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.sim & ./ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 240] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.7110452610068023]