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.001336/0.001336, 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.001406/0.001406, 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.5/1.5, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.242/0.242, allocations: 46.92 MB / 357.1 MB, free: 10.32 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: "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ResetHoldIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_ResetHoldIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001949/0.001949, allocations: 63.91 kB / 0.4909 GB, free: 7.988 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1367/0.1386, allocations: 65.99 MB / 0.5554 GB, free: 5.879 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ResetHoldIntegrator): time 0.003211/0.1418, allocations: 1.632 MB / 0.557 GB, free: 4.234 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001015/0.1429, allocations: 0.5236 MB / 0.5575 GB, free: 3.707 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.553e-05/0.143, allocations: 4 kB / 0.5575 GB, free: 3.703 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001232/0.1431, allocations: 7.875 kB / 0.5575 GB, free: 3.695 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.964e-05/0.1431, allocations: 15.86 kB / 0.5575 GB, free: 3.68 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001844/0.1433, allocations: 35.91 kB / 0.5575 GB, free: 3.645 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001613/0.1435, allocations: 75.77 kB / 0.5576 GB, free: 3.57 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001082/0.1436, allocations: 28.2 kB / 0.5576 GB, free: 3.539 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.582e-05/0.1437, allocations: 27.88 kB / 0.5577 GB, free: 3.512 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.006e-05/0.1437, allocations: 35.78 kB / 0.5577 GB, free: 3.477 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2e-05/0.1437, allocations: 4 kB / 0.5577 GB, free: 3.473 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.545e-05/0.1438, allocations: 8 kB / 0.5577 GB, free: 3.465 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 2.911e-05/0.1438, allocations: 19.92 kB / 0.5577 GB, free: 3.445 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 5.338e-05/0.1438, allocations: 39.78 kB / 0.5578 GB, free: 3.406 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000151/0.144, allocations: 71.66 kB / 0.5578 GB, free: 3.336 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.144, allocations: 4 kB / 0.5578 GB, free: 3.332 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.144, allocations: 0 / 0.5578 GB, free: 3.332 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.911e-06/0.144, allocations: 0 / 0.5578 GB, free: 3.332 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0006077/0.1446, allocations: 399 kB / 0.5582 GB, free: 2.895 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.772e-05/0.1446, allocations: 8.031 kB / 0.5582 GB, free: 2.887 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.922e-05/0.1447, allocations: 38.75 kB / 0.5583 GB, free: 2.84 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.46e-05/0.1447, allocations: 8.891 kB / 0.5583 GB, free: 2.832 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002709/0.145, allocations: 200.2 kB / 0.5585 GB, free: 2.598 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.916e-05/0.145, allocations: 8.375 kB / 0.5585 GB, free: 2.59 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.16e-05/0.145, allocations: 4.375 kB / 0.5585 GB, free: 2.586 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001563/0.1452, allocations: 77.73 kB / 0.5585 GB, free: 2.504 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.1452, allocations: 7.984 kB / 0.5585 GB, free: 2.496 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.216e-05/0.1452, allocations: 3.984 kB / 0.5585 GB, free: 2.492 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.1452, allocations: 3.938 kB / 0.5586 GB, free: 2.488 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.444e-05/0.1453, allocations: 35.98 kB / 0.5586 GB, free: 2.453 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005984/0.1459, allocations: 360.5 kB / 0.5589 GB, free: 2.051 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001099/0.146, allocations: 42.58 kB / 0.559 GB, free: 2 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.769e-05/0.1461, allocations: 16.92 kB / 0.559 GB, free: 1.98 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.318e-05/0.1461, allocations: 0 / 0.559 GB, free: 1.98 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001391/0.1462, allocations: 71.33 kB / 0.5591 GB, free: 1.898 MB / 414.1 MB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.1462, allocations: 4 kB / 0.5591 GB, free: 1.895 MB / 414.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002266/0.1464, allocations: 85.58 kB / 0.5591 GB, free: 1.805 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.804e-05/0.1465, allocations: 51.41 kB / 0.5592 GB, free: 1.742 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001366/0.1466, allocations: 143.8 kB / 0.5593 GB, free: 1.594 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.175e-05/0.1466, allocations: 25.7 kB / 0.5594 GB, free: 1.562 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.613e-05/0.1467, allocations: 100.1 kB / 0.5594 GB, free: 1.461 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.895e-05/0.1467, allocations: 23.97 kB / 0.5595 GB, free: 1.438 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.382e-05/0.1468, allocations: 21.72 kB / 0.5595 GB, free: 1.41 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.1469, allocations: 326.8 kB / 0.5598 GB, free: 1.082 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.129e-05/0.147, allocations: 20 kB / 0.5598 GB, free: 1.062 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.921e-05/0.147, allocations: 38.5 kB / 0.5599 GB, free: 1.016 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.236e-05/0.1471, allocations: 50.86 kB / 0.5599 GB, free: 0.957 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.1471, allocations: 0 / 0.5599 GB, free: 0.957 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001462/0.1473, allocations: 97.53 kB / 0.56 GB, free: 0.8555 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.1473, allocations: 4 kB / 0.56 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.1473, allocations: 3.938 kB / 0.56 GB, free: 0.8477 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/0.1473, allocations: 7.938 kB / 0.56 GB, free: 0.8398 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.674e-05/0.1474, allocations: 4 kB / 0.56 GB, free: 0.8359 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.36e-06/0.1474, allocations: 0 / 0.56 GB, free: 0.8359 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.042e-05/0.1475, allocations: 15.98 kB / 0.56 GB, free: 0.8203 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.412e-06/0.1475, allocations: 0 / 0.56 GB, free: 0.8203 MB / 414.1 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,fallingEdge.not_u,$PRE.fallingEdge.not_u,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,integrator.reset,$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.0001025/0.1476, allocations: 121.9 kB / 0.5601 GB, free: 0.6914 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.821e-05/0.1476, allocations: 7.953 kB / 0.5602 GB, free: 0.6836 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.802e-05/0.1476, allocations: 16.66 kB / 0.5602 GB, free: 0.6641 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.923e-06/0.1476, allocations: 0 / 0.5602 GB, free: 0.6641 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.1476, allocations: 0 / 0.5602 GB, free: 0.6641 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.1476, allocations: 7.984 kB / 0.5602 GB, free: 0.6562 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003797/0.148, allocations: 350.4 kB / 0.5605 GB, free: 264 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.148, allocations: 0 / 0.5605 GB, free: 264 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.806e-05/0.1481, allocations: 4.188 kB / 0.5605 GB, free: 260 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.1481, allocations: 0 / 0.5605 GB, free: 260 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.099e-05/0.1481, allocations: 11.94 kB / 0.5605 GB, free: 248 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.1481, allocations: 0 / 0.5605 GB, free: 248 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1481, allocations: 0 / 0.5605 GB, free: 248 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002498/0.1483, allocations: 195.3 kB / 0.5607 GB, free: 36 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.508e-05/0.1484, allocations: 85.09 kB / 0.5608 GB, free: 15.93 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.133e-05/0.1484, allocations: 4 kB / 0.5608 GB, free: 15.93 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.407e-05/0.1485, allocations: 7.984 kB / 0.5608 GB, free: 15.92 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.585e-05/0.1486, allocations: 12.05 kB / 0.5608 GB, free: 15.91 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.704e-06/0.1486, allocations: 4 kB / 0.5608 GB, free: 15.91 MB / 430.1 MB Notification: Performance of sorting global known variables: time 7.717e-05/0.1486, allocations: 101.3 kB / 0.5609 GB, free: 15.81 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1486, allocations: 3.938 kB / 0.5609 GB, free: 15.8 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002342/0.1489, allocations: 19.94 kB / 0.5609 GB, free: 15.79 MB / 430.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: 5 (integrator.reset,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,fallingEdge.not_u) * 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.0005429/0.1494, allocations: 0.728 MB / 0.5617 GB, free: 15.03 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001434/0.1496, allocations: 43.98 kB / 0.5617 GB, free: 14.99 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1496, allocations: 0 / 0.5617 GB, free: 14.99 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 5.342e-05/0.1496, allocations: 20.45 kB / 0.5617 GB, free: 14.97 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003229/0.1499, allocations: 19.97 kB / 0.5617 GB, free: 14.95 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001739/0.1517, allocations: 1.527 MB / 0.5632 GB, free: 13.33 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003406/0.152, allocations: 0.6963 MB / 0.5639 GB, free: 12.61 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 3.82e-05/0.1521, allocations: 4.438 kB / 0.5639 GB, free: 12.6 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.31e-05/0.1521, allocations: 27.42 kB / 0.5639 GB, free: 12.57 MB / 430.1 MB Notification: Performance of SimCode: time 6.22e-07/0.1521, allocations: 0 / 0.5639 GB, free: 12.57 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02598/0.1781, allocations: 2.217 MB / 0.5661 GB, free: 10.43 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.999/8.177, allocations: 9.812 kB / 0.5661 GB, free: 10.42 MB / 430.1 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000997805 ModelicaTest_4_1_0_ModelicaTest_Blocks_ResetHoldIntegrator.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.ResetHoldIntegrator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/ResetHoldIntegrator/ResetHoldIntegrator.csv","/var/lib/jenkins1/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: 11.27151710599719]