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.001226/0.001226, allocations: 117.9 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00124/0.00124, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.253/1.253, allocations: 227.4 MB / 246.4 MB, free: 10.77 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2077/0.2077, allocations: 46.09 MB / 343.8 MB, free: 11.77 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001346/0.001346, allocations: 76.41 kB / 417.1 MB, free: 20 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1042/0.1056, allocations: 62.44 MB / 479.6 MB, free: 5.539 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001494/0.1071, allocations: 0.5371 MB / 480.1 MB, free: 4.996 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002522/0.1096, allocations: 2.135 MB / 482.3 MB, free: 2.844 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.145e-05/0.1097, allocations: 3.938 kB / 482.3 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.459e-05/0.1097, allocations: 0 / 482.3 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 1.357e-05/0.1097, allocations: 0 / 482.3 MB, free: 2.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009329/0.1107, allocations: 343.3 kB / 482.6 MB, free: 2.504 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.322e-05/0.1107, allocations: 8 kB / 482.6 MB, free: 2.496 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.049e-05/0.1107, allocations: 0 / 482.6 MB, free: 2.496 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.532e-05/0.1108, allocations: 4 kB / 482.6 MB, free: 2.492 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03078/0.1415, allocations: 3.373 MB / 486 MB, free: 15.74 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.203e-05/0.1416, allocations: 0 / 486 MB, free: 15.74 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.377e-05/0.1416, allocations: 12 kB / 486 MB, free: 15.73 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.524e-06/0.1417, allocations: 0 / 486 MB, free: 15.73 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.102e-05/0.1417, allocations: 7.984 kB / 486 MB, free: 15.72 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 7.582e-05/0.1418, allocations: 15.92 kB / 486 MB, free: 15.7 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.1418, allocations: 0 / 486 MB, free: 15.7 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1418, allocations: 0 / 486 MB, free: 15.7 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.348e-06/0.1418, allocations: 0 / 486 MB, free: 15.7 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.0002417/0.142, allocations: 315.6 kB / 486.3 MB, free: 15.35 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/0.1421, allocations: 12.03 kB / 486.3 MB, free: 15.34 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.715e-05/0.1421, allocations: 110 kB / 486.4 MB, free: 15.22 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000172/0.1423, allocations: 80.22 kB / 486.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001113/0.1424, allocations: 243.7 kB / 486.8 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.507e-05/0.1425, allocations: 154.9 kB / 486.9 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.974e-05/0.1425, allocations: 154.5 kB / 487.1 MB, free: 14.56 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.548e-05/0.1426, allocations: 104.9 kB / 487.2 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.219e-05/0.1426, allocations: 83.22 kB / 487.2 MB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.765e-05/0.1427, allocations: 150.6 kB / 487.4 MB, free: 14.22 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.855e-05/0.1427, allocations: 150.6 kB / 487.5 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.339e-05/0.1428, allocations: 150.6 kB / 487.7 MB, free: 13.92 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002237/0.143, allocations: 453.9 kB / 488.1 MB, free: 13.43 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.813e-05/0.1431, allocations: 173 kB / 488.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.43e-05/0.1431, allocations: 80.14 kB / 488.4 MB, free: 13.17 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.293e-05/0.1431, allocations: 75.28 kB / 488.4 MB, free: 13.09 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.481e-05/0.1432, allocations: 109.8 kB / 488.6 MB, free: 12.98 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 8.92e-07/0.1432, allocations: 0 / 488.6 MB, free: 12.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 6.375e-05/0.1433, allocations: 33.7 kB / 488.6 MB, free: 12.94 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.06e-05/0.1433, allocations: 178.1 kB / 488.8 MB, free: 12.74 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.047e-05/0.1434, allocations: 93.86 kB / 488.9 MB, free: 12.64 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.023e-05/0.1434, allocations: 25.7 kB / 488.9 MB, free: 12.61 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.857e-05/0.1435, allocations: 80.14 kB / 489 MB, free: 12.52 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.765e-06/0.1435, allocations: 0 / 489 MB, free: 12.52 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.355e-05/0.1435, allocations: 21.64 kB / 489 MB, free: 12.5 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.605e-05/0.1436, allocations: 319 kB / 489.3 MB, free: 12.18 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.748e-06/0.1436, allocations: 0 / 489.3 MB, free: 12.18 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.989e-05/0.1436, allocations: 13.66 kB / 489.3 MB, free: 12.16 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.156e-05/0.1436, allocations: 79.28 kB / 489.4 MB, free: 12.08 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.249e-05/0.1437, allocations: 75.28 kB / 489.5 MB, free: 12 MB / 366.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 4.731e-05/0.1437, allocations: 33.69 kB / 489.5 MB, free: 11.96 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.904e-05/0.1438, allocations: 83.28 kB / 489.6 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.591e-05/0.1438, allocations: 83.25 kB / 489.7 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.572e-05/0.1438, allocations: 154.5 kB / 489.8 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.282e-05/0.1439, allocations: 75.28 kB / 489.9 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.311e-05/0.1439, allocations: 162.5 kB / 490 MB, free: 11.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.213e-05/0.144, allocations: 79.28 kB / 490.1 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.165e-05/0.144, allocations: 79.22 kB / 490.2 MB, free: 11.26 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.723e-05/0.1441, allocations: 268.3 kB / 490.5 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.829e-05/0.1442, allocations: 101 kB / 490.5 MB, free: 10.88 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.048e-05/0.1442, allocations: 108.1 kB / 490.7 MB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.154e-05/0.1443, allocations: 188.2 kB / 490.8 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-05/0.1443, allocations: 176.3 kB / 491 MB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.172e-05/0.1444, allocations: 184.2 kB / 491.2 MB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001766/0.1446, allocations: 409.1 kB / 491.6 MB, free: 9.754 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.07e-05/0.1446, allocations: 105.2 kB / 491.7 MB, free: 9.645 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.706e-05/0.1446, allocations: 105 kB / 491.8 MB, free: 9.535 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.132e-05/0.1447, allocations: 176.3 kB / 492 MB, free: 9.355 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.452e-05/0.1447, allocations: 192.2 kB / 492.2 MB, free: 9.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.64e-05/0.1448, allocations: 184.3 kB / 492.3 MB, free: 8.973 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.72e-05/0.1449, allocations: 180.2 kB / 492.5 MB, free: 8.789 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001018/0.145, allocations: 303.8 kB / 492.8 MB, free: 8.469 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.632e-05/0.145, allocations: 186 kB / 493 MB, free: 8.262 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.582e-05/0.1451, allocations: 184.3 kB / 493.2 MB, free: 8.074 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.541e-05/0.1452, allocations: 104.9 kB / 493.3 MB, free: 7.965 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.84e-05/0.1452, allocations: 180.3 kB / 493.4 MB, free: 7.781 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.255e-05/0.1453, allocations: 105 kB / 493.6 MB, free: 7.672 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.624e-05/0.1453, allocations: 79.27 kB / 493.6 MB, free: 7.594 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1453, allocations: 0 / 493.6 MB, free: 7.594 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002381/0.1455, allocations: 96 / 493.6 MB, free: 7.594 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.0002961/0.1458, allocations: 0.8048 MB / 494.4 MB, free: 6.758 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 3.573e-05/0.1459, allocations: 4 kB / 494.4 MB, free: 6.754 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.1459, allocations: 0 / 494.4 MB, free: 6.754 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.072e-06/0.1459, allocations: 0 / 494.4 MB, free: 6.754 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002976/0.1462, allocations: 466 kB / 494.9 MB, free: 6.297 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002981/0.1465, allocations: 189.7 kB / 495.1 MB, free: 6.07 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001899/0.1467, allocations: 0.669 MB / 495.7 MB, free: 5.375 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.881e-05/0.1467, allocations: 3.984 kB / 495.7 MB, free: 5.371 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.528e-06/0.1468, allocations: 7.438 kB / 495.8 MB, free: 5.367 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1468, allocations: 4 kB / 495.8 MB, free: 5.363 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6012/0.7479, allocations: 0.9207 MB / 496.7 MB, free: 4.555 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003341/0.7483, allocations: 196.8 kB / 496.9 MB, free: 4.305 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.654/3.402, allocations: 4 kB / 496.9 MB, free: 4.301 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestExamplesCalculator_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestExamplesCalculator.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator_res.mat","/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