Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.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.00128/0.00128, allocations: 123.4 kB / 17.79 MB, free: 5.227 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.001348/0.001348, allocations: 208.3 kB / 20.75 MB, free: 2.273 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.471/1.471, allocations: 230.6 MB / 254.1 MB, free: 15.06 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.2358/0.2358, allocations: 46.92 MB / 357.1 MB, free: 10.37 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.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001902/0.001902, allocations: 63.91 kB / 0.4909 GB, free: 7.996 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1249/0.1268, allocations: 65.99 MB / 0.5554 GB, free: 5.875 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003394/0.1302, allocations: 1.638 MB / 0.557 GB, free: 4.223 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00115/0.1313, allocations: 0.6054 MB / 0.5576 GB, free: 3.613 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.629e-05/0.1314, allocations: 0 / 0.5576 GB, free: 3.613 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001274/0.1315, allocations: 7.875 kB / 0.5576 GB, free: 3.605 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.004e-05/0.1316, allocations: 19.86 kB / 0.5576 GB, free: 3.586 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003616/0.1319, allocations: 83.77 kB / 0.5577 GB, free: 3.504 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001874/0.1321, allocations: 115.7 kB / 0.5578 GB, free: 3.391 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001242/0.1322, allocations: 31.97 kB / 0.5578 GB, free: 3.359 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.99e-05/0.1323, allocations: 55.78 kB / 0.5579 GB, free: 3.305 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.872e-05/0.1324, allocations: 31.84 kB / 0.5579 GB, free: 3.273 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.527e-05/0.1324, allocations: 8 kB / 0.5579 GB, free: 3.266 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.495e-05/0.1324, allocations: 8 kB / 0.5579 GB, free: 3.258 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.254e-05/0.1325, allocations: 27.91 kB / 0.5579 GB, free: 3.23 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 5.641e-05/0.1325, allocations: 39.73 kB / 0.558 GB, free: 3.191 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001609/0.1327, allocations: 95.5 kB / 0.5581 GB, free: 3.098 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.1327, allocations: 0 / 0.5581 GB, free: 3.098 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1327, allocations: 0 / 0.5581 GB, free: 3.098 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.28e-06/0.1327, allocations: 0 / 0.5581 GB, free: 3.098 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0007387/0.1334, allocations: 411.1 kB / 0.5584 GB, free: 2.648 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.1335, allocations: 12.03 kB / 0.5585 GB, free: 2.637 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.091e-05/0.1335, allocations: 34.75 kB / 0.5585 GB, free: 2.594 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.614e-05/0.1336, allocations: 12.89 kB / 0.5585 GB, free: 2.582 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002872/0.1339, allocations: 214.1 kB / 0.5587 GB, free: 2.336 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.123e-05/0.1339, allocations: 8.375 kB / 0.5587 GB, free: 2.328 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.446e-05/0.1339, allocations: 8.375 kB / 0.5587 GB, free: 2.32 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002931/0.1342, allocations: 105.7 kB / 0.5588 GB, free: 2.211 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.1342, allocations: 0 / 0.5588 GB, free: 2.211 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.31e-05/0.1342, allocations: 0 / 0.5588 GB, free: 2.211 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.502e-06/0.1342, allocations: 4 kB / 0.5588 GB, free: 2.207 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001831/0.1344, allocations: 55.95 kB / 0.5589 GB, free: 2.152 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009046/0.1353, allocations: 384.5 kB / 0.5593 GB, free: 1.727 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003842/0.1357, allocations: 98.52 kB / 0.5593 GB, free: 1.621 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001261/0.1358, allocations: 36.91 kB / 0.5594 GB, free: 1.582 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.141e-05/0.1358, allocations: 0 / 0.5594 GB, free: 1.582 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003022/0.1361, allocations: 103.3 kB / 0.5595 GB, free: 1.469 MB / 414.1 MB Notification: Performance of pre-optimization done (n=7): time 1.283e-06/0.1361, allocations: 0 / 0.5595 GB, free: 1.469 MB / 414.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005535/0.1367, allocations: 145.5 kB / 0.5596 GB, free: 1.32 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.124e-05/0.1368, allocations: 59.34 kB / 0.5597 GB, free: 1.25 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001695/0.1369, allocations: 141.8 kB / 0.5598 GB, free: 1.102 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.871e-05/0.137, allocations: 29.69 kB / 0.5598 GB, free: 1.066 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.552e-05/0.1371, allocations: 100.1 kB / 0.5599 GB, free: 0.9648 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.577e-05/0.1371, allocations: 23.84 kB / 0.56 GB, free: 0.9414 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.5e-05/0.1372, allocations: 25.72 kB / 0.56 GB, free: 0.9102 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000186/0.1373, allocations: 330.8 kB / 0.5603 GB, free: 0.5781 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001337/0.1375, allocations: 35.91 kB / 0.5603 GB, free: 0.543 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002034/0.1377, allocations: 45.7 kB / 0.5604 GB, free: 0.4922 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002439/0.1379, allocations: 77.67 kB / 0.5604 GB, free: 420 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.1379, allocations: 0 / 0.5604 GB, free: 420 kB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000308/0.1382, allocations: 125.5 kB / 0.5606 GB, free: 288 kB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.291e-05/0.1383, allocations: 10.12 kB / 0.5606 GB, free: 280 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.244e-06/0.1383, allocations: 3.984 kB / 0.5606 GB, free: 276 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.883e-05/0.1383, allocations: 4 kB / 0.5606 GB, free: 272 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001257/0.1384, allocations: 11.98 kB / 0.5606 GB, free: 260 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.1384, allocations: 4.312 kB / 0.5606 GB, free: 256 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.895e-05/0.1385, allocations: 20.06 kB / 0.5606 GB, free: 236 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.749e-06/0.1385, allocations: 8 kB / 0.5606 GB, free: 228 kB / 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: 7 ($whenCondition1,change.u,$PRE.change.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.0001212/0.1386, allocations: 120 kB / 0.5607 GB, free: 100 kB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.548e-05/0.1387, allocations: 15.84 kB / 0.5608 GB, free: 84 kB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.717e-05/0.1387, allocations: 16.72 kB / 0.5608 GB, free: 64 kB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.1387, allocations: 0 / 0.5608 GB, free: 64 kB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/0.1387, allocations: 0 / 0.5608 GB, free: 64 kB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.1387, allocations: 7.938 kB / 0.5608 GB, free: 56 kB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006884/0.1394, allocations: 398.4 kB / 0.5612 GB, free: 15.61 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1394, allocations: 288 / 0.5612 GB, free: 15.61 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.357e-05/0.1395, allocations: 11.98 kB / 0.5612 GB, free: 15.6 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.1395, allocations: 4 kB / 0.5612 GB, free: 15.59 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.07e-05/0.1395, allocations: 3.938 kB / 0.5612 GB, free: 15.59 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.1395, allocations: 0 / 0.5612 GB, free: 15.59 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.1395, allocations: 3.938 kB / 0.5612 GB, free: 15.59 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000567/0.1401, allocations: 255.3 kB / 0.5614 GB, free: 15.32 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.699e-05/0.1402, allocations: 85.02 kB / 0.5615 GB, free: 15.22 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.418e-05/0.1402, allocations: 8.094 kB / 0.5615 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001424/0.1403, allocations: 19.97 kB / 0.5615 GB, free: 15.19 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.66e-05/0.1404, allocations: 11.98 kB / 0.5615 GB, free: 15.18 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.308e-05/0.1404, allocations: 8 kB / 0.5616 GB, free: 15.17 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001068/0.1405, allocations: 110.4 kB / 0.5617 GB, free: 15.07 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1405, allocations: 0 / 0.5617 GB, free: 15.07 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002421/0.1408, allocations: 20 kB / 0.5617 GB, free: 15.05 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,change.u) * Number of discrete states: 1 (change.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.0008228/0.1416, allocations: 0.7749 MB / 0.5624 GB, free: 14.25 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0003075/0.1419, allocations: 83.89 kB / 0.5625 GB, free: 14.16 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.1419, allocations: 0 / 0.5625 GB, free: 14.16 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000154/0.142, allocations: 39.97 kB / 0.5626 GB, free: 14.12 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003194/0.1424, allocations: 24.03 kB / 0.5626 GB, free: 14.1 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002893/0.1453, allocations: 1.699 MB / 0.5642 GB, free: 12.31 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004938/0.1457, allocations: 0.6924 MB / 0.5649 GB, free: 11.59 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 5.135e-05/0.1458, allocations: 12.55 kB / 0.5649 GB, free: 11.58 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.097e-05/0.1459, allocations: 31.42 kB / 0.565 GB, free: 11.55 MB / 430.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1459, allocations: 0 / 0.565 GB, free: 11.55 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0256/0.1715, allocations: 2.623 MB / 0.5675 GB, free: 9.008 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.071/8.243, allocations: 21.64 kB / 0.5675 GB, free: 8.988 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000995025 ModelicaTest_4_1_0_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.LimResetIntegrator.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.324688416003482]