Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.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.001339/0.001339, allocations: 123.4 kB / 17.79 MB, free: 5.246 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.001582/0.001582, allocations: 209.6 kB / 20.75 MB, free: 2.293 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.477/1.477, 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2119/0.2119, allocations: 44.9 MB / 355.1 MB, free: 12.3 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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_0_0_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001864/0.001864, allocations: 67.89 kB / 499.6 MB, free: 11.67 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1308/0.1326, allocations: 65.42 MB / 0.5517 GB, free: 10.12 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.003226/0.1359, allocations: 1.633 MB / 0.5533 GB, free: 8.473 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001092/0.137, allocations: 0.6016 MB / 0.5539 GB, free: 7.867 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.237e-05/0.137, allocations: 4 kB / 0.5539 GB, free: 7.863 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000123/0.1372, allocations: 11.86 kB / 0.5539 GB, free: 7.852 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.153e-05/0.1372, allocations: 11.88 kB / 0.554 GB, free: 7.84 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003517/0.1376, allocations: 91.75 kB / 0.554 GB, free: 7.75 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001879/0.1378, allocations: 107.8 kB / 0.5541 GB, free: 7.645 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001238/0.1379, allocations: 35.89 kB / 0.5542 GB, free: 7.609 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.865e-05/0.138, allocations: 47.84 kB / 0.5542 GB, free: 7.562 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.974e-05/0.1381, allocations: 47.7 kB / 0.5543 GB, free: 7.516 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.252e-05/0.1381, allocations: 12 kB / 0.5543 GB, free: 7.504 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.782e-05/0.1381, allocations: 8 kB / 0.5543 GB, free: 7.496 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 3.113e-05/0.1381, allocations: 19.92 kB / 0.5543 GB, free: 7.477 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 6.341e-05/0.1382, allocations: 47.72 kB / 0.5544 GB, free: 7.43 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001666/0.1384, allocations: 79.64 kB / 0.5544 GB, free: 7.352 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.1384, allocations: 0 / 0.5544 GB, free: 7.352 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1384, allocations: 3.938 kB / 0.5544 GB, free: 7.348 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.151e-06/0.1384, allocations: 0 / 0.5544 GB, free: 7.348 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.0007043/0.1391, allocations: 419 kB / 0.5548 GB, free: 6.891 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.1391, allocations: 12.03 kB / 0.5548 GB, free: 6.879 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.653e-05/0.1392, allocations: 38.73 kB / 0.5549 GB, free: 6.832 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.919e-05/0.1392, allocations: 12.89 kB / 0.5549 GB, free: 6.82 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003019/0.1395, allocations: 196.2 kB / 0.5551 GB, free: 6.59 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.109e-05/0.1395, allocations: 8.375 kB / 0.5551 GB, free: 6.582 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.464e-05/0.1396, allocations: 8.375 kB / 0.5551 GB, free: 6.574 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003014/0.1399, allocations: 117.7 kB / 0.5552 GB, free: 6.453 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.1399, allocations: 0 / 0.5552 GB, free: 6.453 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.392e-05/0.1399, allocations: 3.984 kB / 0.5552 GB, free: 6.449 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.1399, allocations: 4 kB / 0.5552 GB, free: 6.445 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001697/0.1401, allocations: 47.97 kB / 0.5553 GB, free: 6.398 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007193/0.1408, allocations: 388.5 kB / 0.5556 GB, free: 5.969 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003549/0.1411, allocations: 98.52 kB / 0.5557 GB, free: 5.863 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001185/0.1413, allocations: 36.92 kB / 0.5558 GB, free: 5.824 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.525e-05/0.1413, allocations: 0 / 0.5558 GB, free: 5.824 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002685/0.1415, allocations: 99.3 kB / 0.5559 GB, free: 5.715 MB / 414.1 MB Notification: Performance of pre-optimization done (n=7): time 1.192e-06/0.1415, allocations: 0 / 0.5559 GB, free: 5.715 MB / 414.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005165/0.1421, allocations: 149.5 kB / 0.556 GB, free: 5.562 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.46e-05/0.1421, allocations: 59.41 kB / 0.5561 GB, free: 5.492 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002147/0.1423, allocations: 149 kB / 0.5562 GB, free: 5.34 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.371e-05/0.1424, allocations: 25.7 kB / 0.5562 GB, free: 5.309 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.339e-05/0.1424, allocations: 104.1 kB / 0.5563 GB, free: 5.203 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.648e-05/0.1425, allocations: 23.94 kB / 0.5563 GB, free: 5.18 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.813e-05/0.1425, allocations: 29.64 kB / 0.5564 GB, free: 5.145 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.1426, allocations: 322.8 kB / 0.5567 GB, free: 4.82 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001287/0.1428, allocations: 39.92 kB / 0.5567 GB, free: 4.781 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001367/0.1429, allocations: 53.62 kB / 0.5568 GB, free: 4.723 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002303/0.1431, allocations: 77.67 kB / 0.5568 GB, free: 4.641 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.1431, allocations: 0 / 0.5568 GB, free: 4.641 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002984/0.1434, allocations: 121.5 kB / 0.557 GB, free: 4.516 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.1435, allocations: 7.938 kB / 0.557 GB, free: 4.508 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.1435, allocations: 4.031 kB / 0.557 GB, free: 4.504 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.1435, allocations: 4 kB / 0.557 GB, free: 4.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001044/0.1436, allocations: 11.98 kB / 0.557 GB, free: 4.488 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.942e-06/0.1436, allocations: 4 kB / 0.557 GB, free: 4.484 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.728e-05/0.1437, allocations: 19.97 kB / 0.557 GB, free: 4.465 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.007e-05/0.1437, allocations: 4 kB / 0.557 GB, free: 4.461 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: 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.0001099/0.1438, allocations: 125.9 kB / 0.5571 GB, free: 4.332 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.259e-05/0.1438, allocations: 15.84 kB / 0.5571 GB, free: 4.316 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.272e-05/0.1439, allocations: 16.7 kB / 0.5572 GB, free: 4.297 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.1439, allocations: 0 / 0.5572 GB, free: 4.297 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.1439, allocations: 0 / 0.5572 GB, free: 4.297 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.1439, allocations: 0 / 0.5572 GB, free: 4.297 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005711/0.1445, allocations: 398.3 kB / 0.5575 GB, free: 3.852 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.1445, allocations: 0 / 0.5575 GB, free: 3.852 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.838e-05/0.1445, allocations: 15.98 kB / 0.5576 GB, free: 3.836 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.1445, allocations: 4 kB / 0.5576 GB, free: 3.832 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.092e-05/0.1446, allocations: 0 / 0.5576 GB, free: 3.832 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.1446, allocations: 0 / 0.5576 GB, free: 3.832 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.1446, allocations: 0 / 0.5576 GB, free: 3.832 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004953/0.1451, allocations: 255.3 kB / 0.5578 GB, free: 3.566 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.803e-05/0.1451, allocations: 85.02 kB / 0.5579 GB, free: 3.465 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.145e-05/0.1451, allocations: 4.312 kB / 0.5579 GB, free: 3.461 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001427/0.1453, allocations: 20.03 kB / 0.5579 GB, free: 3.441 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.428e-05/0.1453, allocations: 15.98 kB / 0.5579 GB, free: 3.426 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.426e-06/0.1453, allocations: 11.88 kB / 0.5579 GB, free: 3.414 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.561e-05/0.1454, allocations: 114.1 kB / 0.558 GB, free: 3.305 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1454, allocations: 0 / 0.558 GB, free: 3.305 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000256/0.1457, allocations: 16 kB / 0.5581 GB, free: 3.289 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: 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.000798/0.1465, allocations: 0.7826 MB / 0.5588 GB, free: 2.48 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003059/0.1468, allocations: 83.94 kB / 0.5589 GB, free: 2.398 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1468, allocations: 4 kB / 0.5589 GB, free: 2.395 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001389/0.1469, allocations: 35.98 kB / 0.5589 GB, free: 2.359 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003258/0.1472, allocations: 18.05 kB / 0.559 GB, free: 2.344 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002762/0.15, allocations: 1.699 MB / 0.5606 GB, free: 0.5547 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003683/0.1504, allocations: 0.7002 MB / 0.5613 GB, free: 15.83 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 5.414e-05/0.1504, allocations: 12.55 kB / 0.5613 GB, free: 15.82 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.126e-05/0.1505, allocations: 27.44 kB / 0.5613 GB, free: 15.79 MB / 430.1 MB Notification: Performance of SimCode: time 4.3e-07/0.1505, allocations: 0 / 0.5613 GB, free: 15.79 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02513/0.1756, allocations: 2.613 MB / 0.5639 GB, free: 13.25 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.3/8.476, allocations: 11.98 kB / 0.5639 GB, free: 13.24 MB / 430.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.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_0_0_ModelicaTest_Blocks_LimResetIntegrator.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimResetIntegrator/LimResetIntegrator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.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.535700163803995]