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.001548/0.001548, allocations: 115.1 kB / 18.46 MB, free: 4.543 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.00172/0.00172, allocations: 215.2 kB / 21.42 MB, free: 1.582 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.525/1.525, allocations: 230.6 MB / 254.8 MB, free: 15.07 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.2622/0.2622, allocations: 46.92 MB / 357.8 MB, free: 10.3 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.002078/0.002078, allocations: 67.91 kB / 0.4921 GB, free: 7.457 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1352/0.1372, allocations: 65.99 MB / 0.5565 GB, free: 5.344 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.SelfResettingIntegrator): time 0.002135/0.1394, allocations: 0.8224 MB / 0.5573 GB, free: 4.52 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002084/0.1396, allocations: 51.83 kB / 0.5574 GB, free: 4.469 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.484e-05/0.1397, allocations: 4 kB / 0.5574 GB, free: 4.465 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000121/0.1398, allocations: 7.875 kB / 0.5574 GB, free: 4.457 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 1.491e-05/0.1398, allocations: 0 / 0.5574 GB, free: 4.457 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001232/0.1399, allocations: 23.91 kB / 0.5574 GB, free: 4.434 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001196/0.14, allocations: 35.92 kB / 0.5574 GB, free: 4.398 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001053/0.1401, allocations: 15.97 kB / 0.5574 GB, free: 4.383 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.918e-05/0.1402, allocations: 15.88 kB / 0.5575 GB, free: 4.367 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.341e-05/0.1402, allocations: 15.92 kB / 0.5575 GB, free: 4.352 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.625e-05/0.1402, allocations: 0 / 0.5575 GB, free: 4.352 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.088e-05/0.1402, allocations: 8 kB / 0.5575 GB, free: 4.344 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.966e-05/0.1403, allocations: 4 kB / 0.5575 GB, free: 4.34 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.023e-05/0.1403, allocations: 15.88 kB / 0.5575 GB, free: 4.324 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001221/0.1404, allocations: 47.75 kB / 0.5575 GB, free: 4.277 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.096e-06/0.1404, allocations: 0 / 0.5575 GB, free: 4.277 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1404, allocations: 0 / 0.5575 GB, free: 4.277 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.639e-06/0.1404, allocations: 0 / 0.5575 GB, free: 4.277 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.0004522/0.1409, allocations: 347.3 kB / 0.5579 GB, free: 3.887 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.1409, allocations: 12.03 kB / 0.5579 GB, free: 3.875 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.176e-05/0.1409, allocations: 8.938 kB / 0.5579 GB, free: 3.867 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002302/0.1412, allocations: 172.3 kB / 0.5581 GB, free: 3.66 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.628e-05/0.1412, allocations: 8.375 kB / 0.5581 GB, free: 3.652 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.235e-05/0.1412, allocations: 4.312 kB / 0.5581 GB, free: 3.648 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001228/0.1413, allocations: 54.23 kB / 0.5581 GB, free: 3.59 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.001e-05/0.1413, allocations: 4.172 kB / 0.5581 GB, free: 3.586 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.083e-05/0.1414, allocations: 3.938 kB / 0.5581 GB, free: 3.582 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.195e-06/0.1414, allocations: 4 kB / 0.5581 GB, free: 3.578 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.892e-05/0.1414, allocations: 12 kB / 0.5581 GB, free: 3.566 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005156/0.1419, allocations: 296.7 kB / 0.5584 GB, free: 3.227 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.413e-05/0.142, allocations: 22.58 kB / 0.5584 GB, free: 3.195 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.871e-05/0.142, allocations: 12.86 kB / 0.5585 GB, free: 3.18 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.2e-06/0.142, allocations: 0 / 0.5585 GB, free: 3.18 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.782e-05/0.1421, allocations: 59.39 kB / 0.5585 GB, free: 3.109 MB / 414.1 MB Notification: Performance of pre-optimization done (n=3): time 9.02e-07/0.1421, allocations: 0 / 0.5585 GB, free: 3.109 MB / 414.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001297/0.1422, allocations: 53.58 kB / 0.5586 GB, free: 3.051 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.548e-05/0.1423, allocations: 51.41 kB / 0.5586 GB, free: 2.988 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001056/0.1424, allocations: 121.8 kB / 0.5587 GB, free: 2.859 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.293e-05/0.1424, allocations: 25.7 kB / 0.5588 GB, free: 2.828 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.079e-05/0.1424, allocations: 92.03 kB / 0.5588 GB, free: 2.734 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.221e-05/0.1425, allocations: 11.95 kB / 0.5589 GB, free: 2.723 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.948e-05/0.1425, allocations: 13.72 kB / 0.5589 GB, free: 2.703 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.1426, allocations: 326.8 kB / 0.5592 GB, free: 2.375 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.526e-05/0.1426, allocations: 4 kB / 0.5592 GB, free: 2.371 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.2e-05/0.1427, allocations: 17.72 kB / 0.5592 GB, free: 2.348 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.613e-05/0.1427, allocations: 29.64 kB / 0.5592 GB, free: 2.312 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.1427, allocations: 0 / 0.5592 GB, free: 2.312 MB / 414.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.12e-05/0.1428, allocations: 53.64 kB / 0.5593 GB, free: 2.254 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.1428, allocations: 12.02 kB / 0.5593 GB, free: 2.242 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.1428, allocations: 0 / 0.5593 GB, free: 2.242 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.1428, allocations: 4 kB / 0.5593 GB, free: 2.238 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.141e-05/0.1429, allocations: 4 kB / 0.5593 GB, free: 2.234 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.518e-06/0.1429, allocations: 0 / 0.5593 GB, free: 2.234 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.76e-05/0.1429, allocations: 3.953 kB / 0.5593 GB, free: 2.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.534e-06/0.1429, allocations: 7.938 kB / 0.5593 GB, free: 2.223 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.631e-05/0.143, allocations: 112 kB / 0.5594 GB, free: 2.105 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.163e-05/0.143, allocations: 4 kB / 0.5594 GB, free: 2.102 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.895e-05/0.143, allocations: 15.89 kB / 0.5594 GB, free: 2.082 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.143, allocations: 0 / 0.5594 GB, free: 2.082 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.143, allocations: 0 / 0.5594 GB, free: 2.082 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.143, allocations: 4 kB / 0.5594 GB, free: 2.078 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003068/0.1433, allocations: 298.5 kB / 0.5597 GB, free: 1.73 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.1434, allocations: 0 / 0.5597 GB, free: 1.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.523e-05/0.1434, allocations: 12.36 kB / 0.5597 GB, free: 1.719 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.402e-06/0.1434, allocations: 0 / 0.5597 GB, free: 1.719 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.091e-06/0.1434, allocations: 0 / 0.5597 GB, free: 1.719 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.1434, allocations: 3.938 kB / 0.5597 GB, free: 1.715 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1434, allocations: 7.938 kB / 0.5597 GB, free: 1.707 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001515/0.1435, allocations: 147.9 kB / 0.5599 GB, free: 1.547 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.048e-05/0.1436, allocations: 85.14 kB / 0.56 GB, free: 1.445 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.667e-05/0.1436, allocations: 3.984 kB / 0.56 GB, free: 1.441 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.697e-05/0.1437, allocations: 7.922 kB / 0.56 GB, free: 1.434 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.639e-05/0.1437, allocations: 4 kB / 0.56 GB, free: 1.43 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.928e-06/0.1437, allocations: 0 / 0.56 GB, free: 1.43 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.699e-05/0.1438, allocations: 95.33 kB / 0.5601 GB, free: 1.336 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1438, allocations: 3.938 kB / 0.5601 GB, free: 1.332 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002117/0.144, allocations: 12 kB / 0.5601 GB, free: 1.32 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 9.761e-05/0.1441, allocations: 91.25 kB / 0.5602 GB, free: 1.223 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.248e-05/0.1442, allocations: 19.92 kB / 0.5602 GB, free: 1.203 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.1442, allocations: 0 / 0.5602 GB, free: 1.203 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.893e-05/0.1442, allocations: 8 kB / 0.5602 GB, free: 1.195 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002588/0.1444, allocations: 13.81 kB / 0.5602 GB, free: 1.184 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003406/0.1448, allocations: 163.2 kB / 0.5604 GB, free: 0.9922 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003538/0.1451, allocations: 0.6846 MB / 0.561 GB, free: 288 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.609e-05/0.1452, allocations: 11.44 kB / 0.5611 GB, free: 276 kB / 414.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1452, allocations: 0 / 0.5611 GB, free: 276 kB / 414.1 MB Notification: Performance of Templates: time 0.002485/0.1476, allocations: 0.7323 MB / 0.5618 GB, free: 15.54 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/SelfResettingIntegrator/SelfResettingIntegrator.csv","/var/lib/jenkins1/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: 7.512874890002422]