Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001126/0.001126, allocations: 103.7 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001324/0.001324, allocations: 208.6 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.407/1.407, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2151/0.2151, allocations: 46.1 MB / 344.1 MB, free: 11.63 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001431, allocations: 79.09 kB / 417.7 MB, free: 19.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1078, allocations: 62.44 MB / 480.1 MB, free: 5.215 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.00186/0.1097, allocations: 487.7 kB / 480.6 MB, free: 4.734 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003388/0.1131, allocations: 2.139 MB / 482.7 MB, free: 2.578 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.725e-05/0.1131, allocations: 0 / 482.7 MB, free: 2.578 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.612e-05/0.1132, allocations: 0 / 482.7 MB, free: 2.578 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.794e-05/0.1132, allocations: 0 / 482.7 MB, free: 2.578 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001273/0.1145, allocations: 398.7 kB / 483.1 MB, free: 2.188 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.863e-05/0.1145, allocations: 0 / 483.1 MB, free: 2.188 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.771e-05/0.1146, allocations: 8 kB / 483.1 MB, free: 2.18 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.726e-05/0.1146, allocations: 3.984 kB / 483.1 MB, free: 2.176 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0153/0.1299, allocations: 3.336 MB / 486.5 MB, free: 15.46 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.234e-05/0.1299, allocations: 0 / 486.5 MB, free: 15.46 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.239e-05/0.13, allocations: 11.98 kB / 486.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.877e-06/0.13, allocations: 4 kB / 486.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.185e-05/0.1301, allocations: 3.984 kB / 486.5 MB, free: 15.44 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001072/0.1302, allocations: 7.938 kB / 486.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1302, allocations: 4 kB / 486.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1302, allocations: 0 / 486.5 MB, free: 15.43 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.1302, allocations: 3.938 kB / 486.5 MB, free: 15.43 MB / 366.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.0002483/0.1305, allocations: 315.6 kB / 486.8 MB, free: 15.07 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.655e-05/0.1305, allocations: 8.031 kB / 486.8 MB, free: 15.06 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.449e-05/0.1306, allocations: 114 kB / 486.9 MB, free: 14.94 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001849/0.1308, allocations: 92.2 kB / 487 MB, free: 14.85 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001148/0.1309, allocations: 235.7 kB / 487.3 MB, free: 14.58 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.241e-05/0.1309, allocations: 150.9 kB / 487.4 MB, free: 14.43 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.236e-05/0.131, allocations: 154.5 kB / 487.6 MB, free: 14.28 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.412e-05/0.131, allocations: 109 kB / 487.7 MB, free: 14.17 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.372e-05/0.1311, allocations: 83.22 kB / 487.7 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.506e-05/0.1311, allocations: 150.6 kB / 487.9 MB, free: 13.94 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.26e-05/0.1312, allocations: 150.6 kB / 488 MB, free: 13.79 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.449e-05/0.1312, allocations: 154.5 kB / 488.2 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002392/0.1315, allocations: 445.9 kB / 488.6 MB, free: 13.15 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.833e-05/0.1315, allocations: 177.1 kB / 488.8 MB, free: 12.97 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.978e-05/0.1316, allocations: 80.14 kB / 488.9 MB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.091e-05/0.1316, allocations: 75.28 kB / 488.9 MB, free: 12.81 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.924e-05/0.1316, allocations: 105.8 kB / 489 MB, free: 12.7 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 2.224e-06/0.1317, allocations: 0 / 489 MB, free: 12.7 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 7.217e-05/0.1317, allocations: 37.64 kB / 489.1 MB, free: 12.66 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.202e-05/0.1318, allocations: 182.1 kB / 489.3 MB, free: 12.45 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.826e-05/0.1319, allocations: 93.84 kB / 489.4 MB, free: 12.35 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.159e-05/0.1319, allocations: 25.7 kB / 489.4 MB, free: 12.32 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.621e-05/0.1319, allocations: 84.14 kB / 489.5 MB, free: 12.23 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.513e-06/0.132, allocations: 0 / 489.5 MB, free: 12.23 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.447e-05/0.132, allocations: 9.719 kB / 489.5 MB, free: 12.22 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.694e-05/0.1321, allocations: 315 kB / 489.8 MB, free: 11.9 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.388e-06/0.1321, allocations: 0 / 489.8 MB, free: 11.9 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.326e-05/0.1321, allocations: 13.72 kB / 489.8 MB, free: 11.88 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.476e-05/0.1321, allocations: 79.28 kB / 489.9 MB, free: 11.8 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-05/0.1322, allocations: 75.28 kB / 489.9 MB, free: 11.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.975e-05/0.1322, allocations: 41.58 kB / 490 MB, free: 11.68 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.941e-05/0.1323, allocations: 79.28 kB / 490.1 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.544e-05/0.1323, allocations: 83.3 kB / 490.1 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.205e-05/0.1324, allocations: 158.5 kB / 490.3 MB, free: 11.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.096e-05/0.1324, allocations: 75.28 kB / 490.4 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.431e-05/0.1324, allocations: 158.6 kB / 490.5 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8e-05/0.1325, allocations: 83.22 kB / 490.6 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.494e-05/0.1326, allocations: 79.28 kB / 490.7 MB, free: 10.98 MB / 366.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 9.764e-05/0.1327, allocations: 264.3 kB / 490.9 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.453e-05/0.1327, allocations: 112.9 kB / 491.1 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.612e-05/0.1328, allocations: 104.1 kB / 491.2 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-05/0.1328, allocations: 180.2 kB / 491.3 MB, free: 10.3 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.181e-05/0.1329, allocations: 184.2 kB / 491.5 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.858e-05/0.1329, allocations: 184.3 kB / 491.7 MB, free: 9.926 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001874/0.1331, allocations: 409 kB / 492.1 MB, free: 9.469 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.763e-05/0.1331, allocations: 101 kB / 492.2 MB, free: 9.363 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.458e-05/0.1332, allocations: 108.9 kB / 492.3 MB, free: 9.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.342e-05/0.1332, allocations: 184.5 kB / 492.5 MB, free: 9.062 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.192e-05/0.1333, allocations: 176.3 kB / 492.6 MB, free: 8.883 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.027e-05/0.1334, allocations: 184.2 kB / 492.8 MB, free: 8.695 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.086e-05/0.1334, allocations: 184.3 kB / 493 MB, free: 8.508 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000115/0.1335, allocations: 311.7 kB / 493.3 MB, free: 8.18 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.723e-05/0.1336, allocations: 182.1 kB / 493.5 MB, free: 7.977 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.45e-05/0.1337, allocations: 184.2 kB / 493.7 MB, free: 7.789 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.35e-05/0.1338, allocations: 105 kB / 493.8 MB, free: 7.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.267e-05/0.1339, allocations: 184.2 kB / 493.9 MB, free: 7.492 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.395e-05/0.1339, allocations: 101 kB / 494 MB, free: 7.387 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.784e-05/0.1339, allocations: 79.28 kB / 494.1 MB, free: 7.309 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1339, allocations: 4 kB / 494.1 MB, free: 7.305 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002516/0.1342, allocations: 0 / 494.1 MB, free: 7.305 MB / 366.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.0004238/0.1346, allocations: 0.8049 MB / 494.9 MB, free: 6.469 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 5.45e-05/0.1347, allocations: 3.984 kB / 494.9 MB, free: 6.465 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1347, allocations: 0 / 494.9 MB, free: 6.465 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.333e-06/0.1347, allocations: 0 / 494.9 MB, free: 6.465 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003604/0.1351, allocations: 459.7 kB / 495.4 MB, free: 6.012 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003848/0.1355, allocations: 185.8 kB / 495.6 MB, free: 5.789 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002685/0.1358, allocations: 0.669 MB / 496.2 MB, free: 5.094 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.024e-05/0.1358, allocations: 3.984 kB / 496.2 MB, free: 5.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.451e-05/0.1358, allocations: 7.438 kB / 496.2 MB, free: 5.086 MB / 366.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1358, allocations: 3.938 kB / 496.3 MB, free: 5.082 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01718/0.153, allocations: 0.9912 MB / 497.2 MB, free: 4.152 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.774/7.927, allocations: 9 kB / 497.3 MB, free: 4.145 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_trunk_ModelicaTest_Utilities_TestExamplesCalculator.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestExamplesCalculator/TestExamplesCalculator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches