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.001361/0.001361, allocations: 120.4 kB / 17.79 MB, free: 5.285 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.001469/0.001469, allocations: 199.3 kB / 20.74 MB, free: 2.344 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.743/1.743, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.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.2437/0.2437, allocations: 46.93 MB / 357.1 MB, free: 10.33 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.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 0.002076/0.002076, allocations: 71.89 kB / 0.4914 GB, free: 7.496 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1426/0.1447, allocations: 65.99 MB / 0.5558 GB, free: 5.383 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002229/0.1469, allocations: 0.824 MB / 0.5566 GB, free: 4.559 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.000226/0.1472, allocations: 51.81 kB / 0.5567 GB, free: 4.508 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.453e-05/0.1472, allocations: 4 kB / 0.5567 GB, free: 4.504 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001107/0.1473, allocations: 3.938 kB / 0.5567 GB, free: 4.5 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 1.976e-05/0.1474, allocations: 3.938 kB / 0.5567 GB, free: 4.496 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001162/0.1475, allocations: 15.98 kB / 0.5567 GB, free: 4.48 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001237/0.1476, allocations: 43.84 kB / 0.5568 GB, free: 4.438 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.309e-05/0.1477, allocations: 15.98 kB / 0.5568 GB, free: 4.422 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.784e-05/0.1477, allocations: 15.92 kB / 0.5568 GB, free: 4.406 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.123e-05/0.1478, allocations: 11.92 kB / 0.5568 GB, free: 4.395 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.901e-05/0.1478, allocations: 7.938 kB / 0.5568 GB, free: 4.387 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.083e-05/0.1478, allocations: 4 kB / 0.5568 GB, free: 4.383 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.75e-05/0.1478, allocations: 4 kB / 0.5568 GB, free: 4.379 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.803e-05/0.1479, allocations: 15.88 kB / 0.5568 GB, free: 4.363 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001109/0.148, allocations: 43.75 kB / 0.5569 GB, free: 4.32 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.148, allocations: 0 / 0.5569 GB, free: 4.32 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.326e-06/0.148, allocations: 8 kB / 0.5569 GB, free: 4.312 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.051e-05/0.148, allocations: 0 / 0.5569 GB, free: 4.312 MB / 414.1 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.0005032/0.1485, allocations: 347.3 kB / 0.5572 GB, free: 3.922 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.1485, allocations: 12.03 kB / 0.5572 GB, free: 3.91 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.551e-05/0.1485, allocations: 0.9375 kB / 0.5572 GB, free: 3.91 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002268/0.1488, allocations: 180.3 kB / 0.5574 GB, free: 3.695 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.238e-05/0.1488, allocations: 4.375 kB / 0.5574 GB, free: 3.691 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.463e-05/0.1488, allocations: 4.375 kB / 0.5574 GB, free: 3.688 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001135/0.1489, allocations: 54.25 kB / 0.5575 GB, free: 3.629 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.1489, allocations: 192 / 0.5575 GB, free: 3.629 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.077e-05/0.1489, allocations: 3.938 kB / 0.5575 GB, free: 3.625 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.1489, allocations: 0 / 0.5575 GB, free: 3.625 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.455e-05/0.149, allocations: 15.98 kB / 0.5575 GB, free: 3.609 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005179/0.1495, allocations: 300.6 kB / 0.5578 GB, free: 3.266 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.587e-05/0.1496, allocations: 18.58 kB / 0.5578 GB, free: 3.238 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.359e-05/0.1496, allocations: 16.92 kB / 0.5578 GB, free: 3.219 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.144e-06/0.1496, allocations: 0 / 0.5578 GB, free: 3.219 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.449e-05/0.1497, allocations: 51.34 kB / 0.5578 GB, free: 3.156 MB / 414.1 MB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.1497, allocations: 0 / 0.5578 GB, free: 3.156 MB / 414.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001466/0.1498, allocations: 53.64 kB / 0.5579 GB, free: 3.098 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.793e-05/0.1499, allocations: 51.41 kB / 0.5579 GB, free: 3.035 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001065/0.15, allocations: 113.8 kB / 0.5581 GB, free: 2.914 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.811e-05/0.15, allocations: 29.7 kB / 0.5581 GB, free: 2.879 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.864e-05/0.1501, allocations: 100 kB / 0.5582 GB, free: 2.777 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.814e-05/0.1501, allocations: 11.89 kB / 0.5582 GB, free: 2.766 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.106e-05/0.1501, allocations: 13.72 kB / 0.5582 GB, free: 2.746 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.1503, allocations: 327.1 kB / 0.5585 GB, free: 2.418 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.727e-05/0.1503, allocations: 4 kB / 0.5585 GB, free: 2.414 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.798e-05/0.1503, allocations: 17.72 kB / 0.5585 GB, free: 2.391 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.101e-05/0.1503, allocations: 26 kB / 0.5586 GB, free: 2.359 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-06/0.1503, allocations: 3.938 kB / 0.5586 GB, free: 2.355 MB / 414.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 9.316e-05/0.1504, allocations: 61.61 kB / 0.5586 GB, free: 2.289 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/0.1504, allocations: 4 kB / 0.5586 GB, free: 2.285 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-06/0.1505, allocations: 0 / 0.5586 GB, free: 2.285 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.779e-06/0.1505, allocations: 0 / 0.5586 GB, free: 2.285 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.1e-05/0.1505, allocations: 7.984 kB / 0.5586 GB, free: 2.277 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.1505, allocations: 4 kB / 0.5586 GB, free: 2.273 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3e-05/0.1505, allocations: 7.984 kB / 0.5586 GB, free: 2.266 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.41e-06/0.1505, allocations: 3.938 kB / 0.5586 GB, free: 2.262 MB / 414.1 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 8.804e-05/0.1506, allocations: 120 kB / 0.5588 GB, free: 2.137 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.195e-05/0.1506, allocations: 4 kB / 0.5588 GB, free: 2.133 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.311e-05/0.1507, allocations: 3.906 kB / 0.5588 GB, free: 2.125 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.1507, allocations: 0 / 0.5588 GB, free: 2.125 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.1507, allocations: 0 / 0.5588 GB, free: 2.125 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.335e-06/0.1507, allocations: 0 / 0.5588 GB, free: 2.125 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003354/0.151, allocations: 306.5 kB / 0.5591 GB, free: 1.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.151, allocations: 4 kB / 0.5591 GB, free: 1.766 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.2e-05/0.151, allocations: 4 kB / 0.5591 GB, free: 1.762 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.151, allocations: 0 / 0.5591 GB, free: 1.762 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.328e-06/0.151, allocations: 4 kB / 0.5591 GB, free: 1.758 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.641e-06/0.151, allocations: 7.875 kB / 0.5591 GB, free: 1.75 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.1511, allocations: 3.984 kB / 0.5591 GB, free: 1.746 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000155/0.1512, allocations: 143.5 kB / 0.5592 GB, free: 1.59 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.99e-05/0.1513, allocations: 85.09 kB / 0.5593 GB, free: 1.488 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.205e-05/0.1513, allocations: 4.062 kB / 0.5593 GB, free: 1.484 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.914e-05/0.1513, allocations: 3.938 kB / 0.5593 GB, free: 1.48 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.019e-05/0.1514, allocations: 3.984 kB / 0.5593 GB, free: 1.477 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.478e-06/0.1514, allocations: 4 kB / 0.5593 GB, free: 1.473 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.814e-05/0.1514, allocations: 87.28 kB / 0.5594 GB, free: 1.387 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1514, allocations: 0 / 0.5594 GB, free: 1.387 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00023/0.1517, allocations: 11.94 kB / 0.5594 GB, free: 1.375 MB / 414.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: 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 0.0001242/0.1518, allocations: 95.23 kB / 0.5595 GB, free: 1.273 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.531e-05/0.1519, allocations: 23.94 kB / 0.5595 GB, free: 1.25 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1519, allocations: 288 / 0.5595 GB, free: 1.25 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.469e-05/0.1519, allocations: 11.98 kB / 0.5595 GB, free: 1.238 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002776/0.1522, allocations: 15.88 kB / 0.5596 GB, free: 1.223 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003517/0.1525, allocations: 129.5 kB / 0.5597 GB, free: 1.07 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003351/0.1529, allocations: 0.6884 MB / 0.5604 GB, free: 364 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.896e-05/0.1529, allocations: 0 / 0.5604 GB, free: 364 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.611e-05/0.1529, allocations: 15.5 kB / 0.5604 GB, free: 348 kB / 414.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1529, allocations: 0 / 0.5604 GB, free: 348 kB / 414.1 MB Notification: Performance of Templates: time 0.003144/0.1561, allocations: 0.509 MB / 0.5609 GB, free: 15.83 MB / 430.1 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=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.SelfResettingIntegrator.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.406777516007423]