Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001321/0.001321, allocations: 117.6 kB / 18.5 MB, free: 4.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001526/0.001526, allocations: 190.9 kB / 21.44 MB, free: 1.645 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.528/1.528, allocations: 225.6 MB / 249.8 MB, free: 3.609 MB / 190.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.2258/0.2258, allocations: 44.92 MB / 349.6 MB, free: 1.73 MB / 270.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002858/0.002858, allocations: 64.33 kB / 491.7 MB, free: 29.97 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1203/0.1231, allocations: 64.25 MB / 0.543 GB, free: 4.148 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001536/0.1247, allocations: 497 kB / 0.5434 GB, free: 3.656 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002927/0.1276, allocations: 2.02 MB / 0.5454 GB, free: 1.617 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.443e-05/0.1276, allocations: 0 / 0.5454 GB, free: 1.617 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.088e-05/0.1276, allocations: 3.938 kB / 0.5454 GB, free: 1.613 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.449e-05/0.1276, allocations: 0 / 0.5454 GB, free: 1.613 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001045/0.1287, allocations: 398.3 kB / 0.5458 GB, free: 1.227 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 3.826e-05/0.1287, allocations: 0 / 0.5458 GB, free: 1.227 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.502e-05/0.1288, allocations: 7.984 kB / 0.5458 GB, free: 1.219 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.161e-05/0.1288, allocations: 0 / 0.5458 GB, free: 1.219 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02082/0.1496, allocations: 3.371 MB / 0.5491 GB, free: 14.48 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.406e-05/0.1496, allocations: 0 / 0.5491 GB, free: 14.48 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.291e-05/0.1497, allocations: 4 kB / 0.5491 GB, free: 14.47 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.618e-06/0.1497, allocations: 4 kB / 0.5491 GB, free: 14.47 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.346e-05/0.1497, allocations: 0 / 0.5491 GB, free: 14.47 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001227/0.1498, allocations: 15.92 kB / 0.5491 GB, free: 14.45 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1498, allocations: 0 / 0.5491 GB, free: 14.45 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.1498, allocations: 0 / 0.5491 GB, free: 14.45 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.032e-05/0.1499, allocations: 0 / 0.5491 GB, free: 14.45 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0003314/0.1502, allocations: 319.5 kB / 0.5494 GB, free: 14.09 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.1502, allocations: 16.03 kB / 0.5494 GB, free: 14.08 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.543e-05/0.1503, allocations: 106 kB / 0.5495 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002065/0.1505, allocations: 92.2 kB / 0.5496 GB, free: 13.88 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001771/0.1507, allocations: 235.7 kB / 0.5499 GB, free: 13.61 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.452e-05/0.1507, allocations: 150.9 kB / 0.55 GB, free: 13.46 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.054e-05/0.1508, allocations: 158.4 kB / 0.5502 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.845e-05/0.1509, allocations: 105 kB / 0.5503 GB, free: 13.19 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.592e-05/0.1509, allocations: 75.28 kB / 0.5503 GB, free: 13.12 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.623e-05/0.151, allocations: 150.6 kB / 0.5505 GB, free: 12.97 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.945e-05/0.1511, allocations: 158.5 kB / 0.5506 GB, free: 12.81 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.929e-05/0.1512, allocations: 154.6 kB / 0.5508 GB, free: 12.66 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003271/0.1515, allocations: 442 kB / 0.5512 GB, free: 12.18 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001116/0.1516, allocations: 173 kB / 0.5514 GB, free: 12 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.279e-05/0.1516, allocations: 80.14 kB / 0.5514 GB, free: 11.92 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.932e-05/0.1517, allocations: 79.28 kB / 0.5515 GB, free: 11.84 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.062e-05/0.1518, allocations: 117.8 kB / 0.5516 GB, free: 11.71 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 9.42e-07/0.1518, allocations: 0 / 0.5516 GB, free: 11.71 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 7.635e-05/0.1518, allocations: 29.64 kB / 0.5516 GB, free: 11.68 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/0.1519, allocations: 182.1 kB / 0.5518 GB, free: 11.48 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.438e-05/0.152, allocations: 93.86 kB / 0.5519 GB, free: 11.38 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.753e-05/0.152, allocations: 25.7 kB / 0.5519 GB, free: 11.34 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.771e-05/0.1521, allocations: 80.14 kB / 0.552 GB, free: 11.26 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.233e-06/0.1521, allocations: 0 / 0.552 GB, free: 11.26 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.12e-05/0.1521, allocations: 21.84 kB / 0.552 GB, free: 11.23 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001421/0.1523, allocations: 310.8 kB / 0.5523 GB, free: 10.92 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.607e-06/0.1523, allocations: 0 / 0.5523 GB, free: 10.92 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.119e-05/0.1523, allocations: 13.72 kB / 0.5523 GB, free: 10.9 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.019e-05/0.1523, allocations: 79.22 kB / 0.5524 GB, free: 10.82 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.799e-05/0.1524, allocations: 79.27 kB / 0.5525 GB, free: 10.75 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.325e-05/0.1524, allocations: 37.62 kB / 0.5525 GB, free: 10.7 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.655e-05/0.1525, allocations: 91.25 kB / 0.5526 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.274e-05/0.1525, allocations: 75.28 kB / 0.5527 GB, free: 10.54 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.784e-05/0.1526, allocations: 154.6 kB / 0.5528 GB, free: 10.39 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.528e-05/0.1527, allocations: 83.22 kB / 0.5529 GB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.132e-05/0.1527, allocations: 150.6 kB / 0.5531 GB, free: 10.16 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.753e-05/0.1528, allocations: 79.22 kB / 0.5531 GB, free: 10.08 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.268e-05/0.1528, allocations: 83.27 kB / 0.5532 GB, free: 9.996 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * 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.0001461/0.153, allocations: 264.3 kB / 0.5535 GB, free: 9.727 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.981e-05/0.1531, allocations: 105 kB / 0.5536 GB, free: 9.617 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.63e-05/0.1531, allocations: 112 kB / 0.5537 GB, free: 9.5 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.289e-05/0.1532, allocations: 180.3 kB / 0.5538 GB, free: 9.316 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.209e-05/0.1533, allocations: 188.2 kB / 0.554 GB, free: 9.125 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.347e-05/0.1534, allocations: 176.3 kB / 0.5542 GB, free: 8.945 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002794/0.1537, allocations: 405.2 kB / 0.5546 GB, free: 8.492 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.286e-05/0.1537, allocations: 104.9 kB / 0.5547 GB, free: 8.383 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.687e-05/0.1538, allocations: 105 kB / 0.5548 GB, free: 8.273 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.45e-05/0.1538, allocations: 180.2 kB / 0.5549 GB, free: 8.09 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.872e-05/0.1539, allocations: 188.3 kB / 0.5551 GB, free: 7.898 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.457e-05/0.154, allocations: 176.3 kB / 0.5553 GB, free: 7.719 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.537e-05/0.1541, allocations: 184.2 kB / 0.5555 GB, free: 7.531 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001682/0.1543, allocations: 308 kB / 0.5558 GB, free: 7.207 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.464e-05/0.1544, allocations: 186.1 kB / 0.5559 GB, free: 7 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.964e-05/0.1545, allocations: 184.3 kB / 0.5561 GB, free: 6.812 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.542e-05/0.1546, allocations: 108.9 kB / 0.5562 GB, free: 6.699 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.608e-05/0.1546, allocations: 180.3 kB / 0.5564 GB, free: 6.516 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.49e-05/0.1547, allocations: 104.9 kB / 0.5565 GB, free: 6.406 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.462e-05/0.1547, allocations: 79.28 kB / 0.5566 GB, free: 6.328 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1547, allocations: 0 / 0.5566 GB, free: 6.328 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002514/0.155, allocations: 4 kB / 0.5566 GB, free: 6.324 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * 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 0.0004694/0.1555, allocations: 0.8009 MB / 0.5574 GB, free: 5.492 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 5.087e-05/0.1555, allocations: 3.938 kB / 0.5574 GB, free: 5.488 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1555, allocations: 4.094 kB / 0.5574 GB, free: 5.484 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.332e-06/0.1555, allocations: 0 / 0.5574 GB, free: 5.484 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003917/0.1559, allocations: 463.6 kB / 0.5578 GB, free: 5.027 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003897/0.1563, allocations: 170 kB / 0.558 GB, free: 4.82 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003299/0.1566, allocations: 0.6805 MB / 0.5586 GB, free: 4.113 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.409e-05/0.1566, allocations: 7.938 kB / 0.5586 GB, free: 4.105 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.231e-05/0.1567, allocations: 7.438 kB / 0.5586 GB, free: 4.098 MB / 414.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1567, allocations: 0 / 0.5586 GB, free: 4.098 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02099/0.1776, allocations: 1.03 MB / 0.5597 GB, free: 3.156 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.162/8.339, allocations: 0 / 0.5597 GB, free: 3.156 MB / 414.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestExamplesCalculator_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestExamplesCalculator.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestExamplesCalculator/TestExamplesCalculator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.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.260182269848883]