Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005787/0.005787, allocations: 100.2 kB / 15.87 MB, free: 6.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00124/0.00124, allocations: 195.8 kB / 16.79 MB, free: 6.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.261/1.261, allocations: 205.1 MB / 222.6 MB, free: 4.727 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2844/0.2844, allocations: 43.51 MB / 313.5 MB, free: 8.562 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 70.56 kB / 382.1 MB, free: 8.621 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1031, allocations: 57.78 MB / 439.9 MB, free: 14.74 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001536/0.1047, allocations: 0.5464 MB / 440.5 MB, free: 14.19 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002813/0.1075, allocations: 2.094 MB / 442.6 MB, free: 12.08 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.007e-05/0.1075, allocations: 3.938 kB / 442.6 MB, free: 12.07 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.247e-05/0.1075, allocations: 4 kB / 442.6 MB, free: 12.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 1.578e-05/0.1076, allocations: 0 / 442.6 MB, free: 12.07 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007534/0.1083, allocations: 283.3 kB / 442.8 MB, free: 11.79 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 3.429e-05/0.1084, allocations: 8 kB / 442.8 MB, free: 11.79 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.57e-05/0.1084, allocations: 0 / 442.8 MB, free: 11.79 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.717e-05/0.1084, allocations: 7.984 kB / 442.9 MB, free: 11.78 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03155/0.14, allocations: 3.21 MB / 446.1 MB, free: 8.602 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.417e-05/0.14, allocations: 0 / 446.1 MB, free: 8.602 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.488e-05/0.1401, allocations: 8 kB / 446.1 MB, free: 8.594 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.568e-06/0.1401, allocations: 0 / 446.1 MB, free: 8.594 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.327e-05/0.1402, allocations: 0 / 446.1 MB, free: 8.594 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 7.803e-05/0.1402, allocations: 11.92 kB / 446.1 MB, free: 8.582 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.565e-06/0.1403, allocations: 3.984 kB / 446.1 MB, free: 8.578 MB / 382.1 MB Notification: Performance of FrontEnd: time 9.01e-07/0.1403, allocations: 0 / 446.1 MB, free: 8.578 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.1403, allocations: 0 / 446.1 MB, free: 8.578 MB / 382.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.0002693/0.1405, allocations: 327.5 kB / 446.4 MB, free: 8.211 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.1406, allocations: 8.031 kB / 446.4 MB, free: 8.203 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.777e-05/0.1407, allocations: 106 kB / 446.5 MB, free: 8.09 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001867/0.1408, allocations: 88.2 kB / 446.6 MB, free: 8.004 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001323/0.141, allocations: 239.7 kB / 446.8 MB, free: 7.73 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.236e-05/0.141, allocations: 150.9 kB / 447 MB, free: 7.582 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.99e-05/0.1411, allocations: 158.5 kB / 447.1 MB, free: 7.426 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.143e-05/0.1411, allocations: 108.9 kB / 447.2 MB, free: 7.312 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.748e-05/0.1412, allocations: 75.28 kB / 447.3 MB, free: 7.238 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.77e-05/0.1412, allocations: 158.5 kB / 447.5 MB, free: 7.082 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.663e-05/0.1413, allocations: 150.6 kB / 447.6 MB, free: 6.934 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.23e-05/0.1413, allocations: 154.6 kB / 447.8 MB, free: 6.781 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002453/0.1416, allocations: 442 kB / 448.2 MB, free: 6.301 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.635e-05/0.1417, allocations: 173 kB / 448.4 MB, free: 6.121 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.605e-05/0.1417, allocations: 84.14 kB / 448.5 MB, free: 6.035 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.184e-05/0.1417, allocations: 75.28 kB / 448.5 MB, free: 5.961 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.774e-05/0.1418, allocations: 109.8 kB / 448.6 MB, free: 5.844 MB / 382.1 MB Notification: Performance of pre-optimization done (n=0): time 9.11e-07/0.1418, allocations: 0 / 448.6 MB, free: 5.844 MB / 382.1 MB Notification: Performance of matching and sorting (n=0): time 7.986e-05/0.1419, allocations: 29.69 kB / 448.7 MB, free: 5.809 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.672e-05/0.1419, allocations: 182.1 kB / 448.8 MB, free: 5.605 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.804e-05/0.142, allocations: 93.86 kB / 448.9 MB, free: 5.504 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.186e-05/0.1421, allocations: 25.7 kB / 449 MB, free: 5.473 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.814e-05/0.1421, allocations: 88.2 kB / 449 MB, free: 5.383 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.343e-06/0.1421, allocations: 0 / 449 MB, free: 5.383 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.003e-05/0.1421, allocations: 13.72 kB / 449.1 MB, free: 5.363 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.318e-05/0.1422, allocations: 314.8 kB / 449.4 MB, free: 5.047 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.212e-06/0.1422, allocations: 0 / 449.4 MB, free: 5.047 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.266e-05/0.1423, allocations: 17.66 kB / 449.4 MB, free: 5.023 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.351e-05/0.1423, allocations: 75.28 kB / 449.5 MB, free: 4.949 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-05/0.1423, allocations: 87.3 kB / 449.5 MB, free: 4.863 MB / 382.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.131e-05/0.1424, allocations: 33.64 kB / 449.6 MB, free: 4.824 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.001e-05/0.1424, allocations: 79.28 kB / 449.6 MB, free: 4.746 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.447e-05/0.1425, allocations: 79.22 kB / 449.7 MB, free: 4.668 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.414e-05/0.1425, allocations: 150.6 kB / 449.9 MB, free: 4.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.11e-05/0.1425, allocations: 79.28 kB / 450 MB, free: 4.441 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.967e-05/0.1426, allocations: 154.5 kB / 450.1 MB, free: 4.289 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.979e-05/0.1427, allocations: 79.28 kB / 450.2 MB, free: 4.211 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.325e-05/0.1427, allocations: 87.2 kB / 450.3 MB, free: 4.125 MB / 382.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.0001021/0.1428, allocations: 264.3 kB / 450.5 MB, free: 3.855 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.274e-05/0.1429, allocations: 105 kB / 450.6 MB, free: 3.746 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.481e-05/0.143, allocations: 112 kB / 450.7 MB, free: 3.629 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.973e-05/0.143, allocations: 180.3 kB / 450.9 MB, free: 3.445 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.008e-05/0.1431, allocations: 180.2 kB / 451.1 MB, free: 3.262 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-05/0.1431, allocations: 188.2 kB / 451.3 MB, free: 3.07 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000196/0.1433, allocations: 401.2 kB / 451.7 MB, free: 2.621 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.203e-05/0.1434, allocations: 108.9 kB / 451.8 MB, free: 2.508 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.423e-05/0.1434, allocations: 101 kB / 451.9 MB, free: 2.402 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.907e-05/0.1435, allocations: 184.3 kB / 452 MB, free: 2.215 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.492e-05/0.1435, allocations: 184.2 kB / 452.2 MB, free: 2.027 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.7e-05/0.1436, allocations: 176.3 kB / 452.4 MB, free: 1.848 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.931e-05/0.1437, allocations: 180.2 kB / 452.6 MB, free: 1.664 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001197/0.1438, allocations: 311.8 kB / 452.9 MB, free: 1.336 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.41e-05/0.1439, allocations: 186 kB / 453.1 MB, free: 1.129 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.822e-05/0.1439, allocations: 176.3 kB / 453.2 MB, free: 0.9492 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.407e-05/0.144, allocations: 109.3 kB / 453.3 MB, free: 0.8359 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.92e-05/0.1441, allocations: 184.3 kB / 453.5 MB, free: 0.6484 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.942e-05/0.1441, allocations: 101 kB / 453.6 MB, free: 0.543 MB / 382.1 MB Notification: Performance of sorting global known variables: time 4.22e-05/0.1442, allocations: 83.28 kB / 453.7 MB, free: 472 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1442, allocations: 3.938 kB / 453.7 MB, free: 468 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002374/0.1444, allocations: 4 kB / 453.7 MB, free: 464 kB / 382.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.1495/0.294, allocations: 0.8076 MB / 454.5 MB, free: 50.3 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 4.478e-05/0.294, allocations: 1.594 kB / 454.5 MB, free: 50.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.294, allocations: 0.5 kB / 454.5 MB, free: 50.3 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.465e-06/0.2941, allocations: 5.25 kB / 454.5 MB, free: 50.3 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002757/0.2943, allocations: 0.524 MB / 455 MB, free: 49.79 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003107/0.2947, allocations: 178.3 kB / 455.2 MB, free: 49.58 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.754e-05/0.2947, allocations: 0.6703 MB / 455.9 MB, free: 48.89 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.786e-05/0.2948, allocations: 1.219 kB / 455.9 MB, free: 48.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.118e-06/0.2948, allocations: 8.75 kB / 455.9 MB, free: 48.88 MB / 382.1 MB Notification: Performance of SimCode: time 3.7e-07/0.2948, allocations: 2.906 kB / 455.9 MB, free: 48.88 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01523/0.31, allocations: 0.8856 MB / 456.8 MB, free: 48.64 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001305/0.3102, allocations: 193.3 kB / 457 MB, free: 48.39 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.605/1.915, allocations: 0 / 457 MB, free: 48.39 MB / 382.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Utilities_TestExamplesCalculator_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Utilities_TestExamplesCalculator.fmu > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestExamplesCalculator/TestExamplesCalculator.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches