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.00173/0.00173, allocations: 121 kB / 18.5 MB, free: 4.562 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.001593/0.001593, allocations: 213.5 kB / 21.45 MB, free: 1.617 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.542/1.542, allocations: 230.6 MB / 254.8 MB, free: 15.1 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.2285/0.2285, allocations: 44.9 MB / 355.8 MB, free: 12.34 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.LimResetIntegrator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator",fmuType="cs",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.001987/0.001987, allocations: 67.89 kB / 0.4885 GB, free: 11.71 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1208, allocations: 65.42 MB / 0.5524 GB, free: 10.17 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimResetIntegrator): time 0.00329/0.1241, allocations: 1.645 MB / 0.554 GB, free: 8.512 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001251/0.1253, allocations: 0.5977 MB / 0.5546 GB, free: 7.91 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001328/0.1255, allocations: 4 kB / 0.5546 GB, free: 7.906 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001591/0.1256, allocations: 11.86 kB / 0.5546 GB, free: 7.895 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.62e-05/0.1257, allocations: 7.875 kB / 0.5546 GB, free: 7.887 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000521/0.1262, allocations: 91.75 kB / 0.5547 GB, free: 7.797 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002342/0.1265, allocations: 115.7 kB / 0.5548 GB, free: 7.684 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001583/0.1266, allocations: 31.91 kB / 0.5549 GB, free: 7.652 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001292/0.1267, allocations: 51.78 kB / 0.5549 GB, free: 7.602 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001005/0.1268, allocations: 39.83 kB / 0.555 GB, free: 7.562 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.877e-05/0.1269, allocations: 8 kB / 0.555 GB, free: 7.555 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.988e-05/0.1269, allocations: 8 kB / 0.555 GB, free: 7.547 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 4.39e-05/0.1269, allocations: 23.91 kB / 0.555 GB, free: 7.523 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 6.998e-05/0.127, allocations: 43.73 kB / 0.555 GB, free: 7.48 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002345/0.1272, allocations: 79.64 kB / 0.5551 GB, free: 7.402 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.736e-06/0.1273, allocations: 7.938 kB / 0.5551 GB, free: 7.395 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.1273, allocations: 0 / 0.5551 GB, free: 7.395 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.306e-06/0.1273, allocations: 4 kB / 0.5551 GB, free: 7.391 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.0007793/0.128, allocations: 415 kB / 0.5555 GB, free: 6.938 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/0.1281, allocations: 8.031 kB / 0.5555 GB, free: 6.93 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.277e-05/0.1281, allocations: 8.188 kB / 0.5555 GB, free: 6.922 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.094e-05/0.1282, allocations: 38.73 kB / 0.5556 GB, free: 6.875 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.242e-05/0.1282, allocations: 16.89 kB / 0.5556 GB, free: 6.859 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003433/0.1285, allocations: 208.2 kB / 0.5558 GB, free: 6.617 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.572e-05/0.1286, allocations: 4.375 kB / 0.5558 GB, free: 6.613 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.125e-05/0.1286, allocations: 8.375 kB / 0.5558 GB, free: 6.605 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003237/0.1289, allocations: 111.6 kB / 0.5559 GB, free: 6.492 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.1289, allocations: 0 / 0.5559 GB, free: 6.492 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.375e-05/0.1289, allocations: 0 / 0.5559 GB, free: 6.492 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.945e-06/0.129, allocations: 4 kB / 0.5559 GB, free: 6.488 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001807/0.1291, allocations: 55.91 kB / 0.556 GB, free: 6.434 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007423/0.1299, allocations: 384.5 kB / 0.5563 GB, free: 6.008 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003766/0.1303, allocations: 102.5 kB / 0.5564 GB, free: 5.898 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001269/0.1304, allocations: 36.92 kB / 0.5565 GB, free: 5.859 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.193e-05/0.1304, allocations: 0 / 0.5565 GB, free: 5.859 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002801/0.1307, allocations: 99.3 kB / 0.5566 GB, free: 5.75 MB / 414.1 MB Notification: Performance of pre-optimization done (n=7): time 1.203e-06/0.1307, allocations: 0 / 0.5566 GB, free: 5.75 MB / 414.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005052/0.1312, allocations: 145.5 kB / 0.5567 GB, free: 5.602 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.623e-05/0.1312, allocations: 55.41 kB / 0.5567 GB, free: 5.535 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001475/0.1314, allocations: 147.7 kB / 0.5569 GB, free: 5.383 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.1e-05/0.1314, allocations: 25.7 kB / 0.5569 GB, free: 5.352 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.272e-05/0.1315, allocations: 108 kB / 0.557 GB, free: 5.242 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.03e-05/0.1315, allocations: 27.94 kB / 0.557 GB, free: 5.215 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.103e-05/0.1316, allocations: 25.7 kB / 0.5571 GB, free: 5.184 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.1317, allocations: 322.8 kB / 0.5574 GB, free: 4.859 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001302/0.1319, allocations: 35.92 kB / 0.5574 GB, free: 4.824 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001513/0.132, allocations: 53.69 kB / 0.5575 GB, free: 4.766 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002321/0.1322, allocations: 73.67 kB / 0.5575 GB, free: 4.688 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.1322, allocations: 0 / 0.5575 GB, free: 4.688 MB / 414.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0003416/0.1326, allocations: 129.4 kB / 0.5576 GB, free: 4.555 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.1326, allocations: 4 kB / 0.5577 GB, free: 4.551 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.1326, allocations: 288 / 0.5577 GB, free: 4.551 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/0.1326, allocations: 0 / 0.5577 GB, free: 4.551 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001203/0.1327, allocations: 15.98 kB / 0.5577 GB, free: 4.535 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.516e-06/0.1328, allocations: 7.938 kB / 0.5577 GB, free: 4.527 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001026/0.1329, allocations: 20.02 kB / 0.5577 GB, free: 4.508 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.558e-06/0.1329, allocations: 4 kB / 0.5577 GB, free: 4.504 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.0001073/0.133, allocations: 118.2 kB / 0.5578 GB, free: 4.383 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.622e-05/0.133, allocations: 15.84 kB / 0.5578 GB, free: 4.367 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.445e-05/0.1331, allocations: 16.7 kB / 0.5578 GB, free: 4.348 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/0.1331, allocations: 3.984 kB / 0.5578 GB, free: 4.344 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.1331, allocations: 0 / 0.5578 GB, free: 4.344 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.1331, allocations: 3.938 kB / 0.5579 GB, free: 4.34 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006016/0.1337, allocations: 398.4 kB / 0.5582 GB, free: 3.895 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.1337, allocations: 0 / 0.5582 GB, free: 3.895 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.714e-05/0.1338, allocations: 11.98 kB / 0.5582 GB, free: 3.883 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.19e-06/0.1338, allocations: 4 kB / 0.5582 GB, free: 3.879 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.013e-05/0.1338, allocations: 0 / 0.5582 GB, free: 3.879 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.901e-06/0.1338, allocations: 8 kB / 0.5583 GB, free: 3.871 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.1338, allocations: 3.938 kB / 0.5583 GB, free: 3.867 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000498/0.1343, allocations: 255.7 kB / 0.5585 GB, free: 3.602 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.275e-05/0.1344, allocations: 85.02 kB / 0.5586 GB, free: 3.5 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.288e-05/0.1344, allocations: 4.031 kB / 0.5586 GB, free: 3.496 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001444/0.1345, allocations: 23.91 kB / 0.5586 GB, free: 3.473 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.488e-05/0.1346, allocations: 11.98 kB / 0.5586 GB, free: 3.461 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.763e-06/0.1346, allocations: 0 / 0.5586 GB, free: 3.461 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.914e-05/0.1347, allocations: 118.4 kB / 0.5587 GB, free: 3.348 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1347, allocations: 0 / 0.5587 GB, free: 3.348 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00024/0.1349, allocations: 16 kB / 0.5587 GB, free: 3.332 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.0008144/0.1357, allocations: 0.7828 MB / 0.5595 GB, free: 2.523 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0003185/0.1361, allocations: 79.88 kB / 0.5596 GB, free: 2.445 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.1361, allocations: 4 kB / 0.5596 GB, free: 2.441 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001426/0.1362, allocations: 40.11 kB / 0.5596 GB, free: 2.402 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003247/0.1365, allocations: 18.05 kB / 0.5596 GB, free: 2.387 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002644/0.1392, allocations: 1.702 MB / 0.5613 GB, free: 0.5938 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003463/0.1395, allocations: 0.7002 MB / 0.562 GB, free: 15.87 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 4.583e-05/0.1396, allocations: 8.547 kB / 0.562 GB, free: 15.86 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.495e-05/0.1396, allocations: 27.44 kB / 0.562 GB, free: 15.83 MB / 430.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1396, allocations: 4 kB / 0.562 GB, free: 15.83 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01914/0.1588, allocations: 2.659 MB / 0.5646 GB, free: 13.26 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.432/8.591, allocations: 11.47 kB / 0.5646 GB, free: 13.25 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.LimResetIntegrator_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_LimResetIntegrator_fmu --startTime=0 --stopTime=5 --stepSize=0.000995025 --timeout=50 --tolerance=1e-06 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.mat","/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.704772641009185]