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.0009926/0.0009927, allocations: 96.94 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001268/0.001269, allocations: 178.2 kB / 16.91 MB, free: 6.648 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.391/1.391, allocations: 205.4 MB / 223.1 MB, free: 5.223 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.364/0.364, allocations: 43.57 MB / 315 MB, free: 9.215 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.0005084/0.0005084, allocations: 14.66 kB / 384.7 MB, free: 7.777 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1084, allocations: 58.87 MB / 443.5 MB, free: 12.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.0005352/0.109, allocations: 224.4 kB / 443.8 MB, free: 12.59 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002511/0.1115, allocations: 2.048 MB / 445.8 MB, free: 10.52 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.028e-05/0.1115, allocations: 0 / 445.8 MB, free: 10.52 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.241e-05/0.1116, allocations: 4 kB / 445.8 MB, free: 10.52 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 1.453e-05/0.1116, allocations: 0 / 445.8 MB, free: 10.52 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007435/0.1123, allocations: 287.3 kB / 446.1 MB, free: 10.24 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 3.24e-05/0.1124, allocations: 7.984 kB / 446.1 MB, free: 10.23 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.062e-05/0.1124, allocations: 0 / 446.1 MB, free: 10.23 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.303e-05/0.1124, allocations: 0 / 446.1 MB, free: 10.23 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0332/0.1456, allocations: 3.203 MB / 449.3 MB, free: 7.059 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 1.762e-05/0.1457, allocations: 0 / 449.3 MB, free: 7.059 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.317e-05/0.1458, allocations: 8 kB / 449.3 MB, free: 7.051 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.087e-05/0.1458, allocations: 4 kB / 449.3 MB, free: 7.047 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.522e-05/0.1458, allocations: 29.69 kB / 449.3 MB, free: 7.012 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 8.933e-05/0.1459, allocations: 7.984 kB / 449.3 MB, free: 7.004 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.1459, allocations: 0 / 449.3 MB, free: 7.004 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.1459, allocations: 0 / 449.3 MB, free: 7.004 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.1459, allocations: 0 / 449.3 MB, free: 7.004 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.0002828/0.1462, allocations: 331.5 kB / 449.7 MB, free: 6.633 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.1463, allocations: 8.031 kB / 449.7 MB, free: 6.625 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.01e-05/0.1463, allocations: 106 kB / 449.8 MB, free: 6.512 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00022/0.1466, allocations: 88.2 kB / 449.9 MB, free: 6.426 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001428/0.1467, allocations: 235.7 kB / 450.1 MB, free: 6.156 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.153e-05/0.1468, allocations: 150.9 kB / 450.2 MB, free: 6.008 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.945e-05/0.1468, allocations: 162.4 kB / 450.4 MB, free: 5.848 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.134e-05/0.1469, allocations: 113 kB / 450.5 MB, free: 5.73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.641e-05/0.147, allocations: 75.28 kB / 450.6 MB, free: 5.656 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.375e-05/0.147, allocations: 154.5 kB / 450.7 MB, free: 5.504 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.866e-05/0.1471, allocations: 150.6 kB / 450.9 MB, free: 5.355 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.327e-05/0.1471, allocations: 158.5 kB / 451 MB, free: 5.199 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002776/0.1474, allocations: 442 kB / 451.5 MB, free: 4.719 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.058e-05/0.1475, allocations: 173.1 kB / 451.6 MB, free: 4.539 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.713e-05/0.1476, allocations: 80.14 kB / 451.7 MB, free: 4.457 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.191e-05/0.1476, allocations: 75.28 kB / 451.8 MB, free: 4.383 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.027e-05/0.1477, allocations: 117.8 kB / 451.9 MB, free: 4.258 MB / 382.1 MB Notification: Performance of pre-optimization done (n=0): time 8.52e-07/0.1477, allocations: 0 / 451.9 MB, free: 4.258 MB / 382.1 MB Notification: Performance of matching and sorting (n=0): time 8.077e-05/0.1478, allocations: 29.7 kB / 451.9 MB, free: 4.223 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.691e-05/0.1479, allocations: 182.1 kB / 452.1 MB, free: 4.02 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000104/0.148, allocations: 89.86 kB / 452.2 MB, free: 3.922 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.71e-05/0.148, allocations: 25.7 kB / 452.2 MB, free: 3.891 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.431e-05/0.148, allocations: 84.27 kB / 452.3 MB, free: 3.805 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.034e-06/0.148, allocations: 4 kB / 452.3 MB, free: 3.801 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.682e-05/0.1481, allocations: 9.719 kB / 452.3 MB, free: 3.785 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.1482, allocations: 310.8 kB / 452.6 MB, free: 3.473 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.157e-06/0.1482, allocations: 0 / 452.6 MB, free: 3.473 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.084e-05/0.1482, allocations: 9.719 kB / 452.6 MB, free: 3.457 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.688e-05/0.1483, allocations: 87.2 kB / 452.7 MB, free: 3.371 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.872e-05/0.1483, allocations: 75.28 kB / 452.8 MB, free: 3.297 MB / 382.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.638e-05/0.1484, allocations: 33.67 kB / 452.8 MB, free: 3.258 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.104e-05/0.1484, allocations: 87.28 kB / 452.9 MB, free: 3.172 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.186e-05/0.1485, allocations: 75.28 kB / 453 MB, free: 3.098 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.714e-05/0.1485, allocations: 158.5 kB / 453.1 MB, free: 2.941 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.67e-05/0.1486, allocations: 75.28 kB / 453.2 MB, free: 2.867 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.87e-05/0.1486, allocations: 158.5 kB / 453.4 MB, free: 2.711 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.147e-05/0.1487, allocations: 83.27 kB / 453.5 MB, free: 2.629 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.029e-05/0.1488, allocations: 75.28 kB / 453.5 MB, free: 2.555 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.000112/0.1489, allocations: 268.3 kB / 453.8 MB, free: 2.281 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.883e-05/0.1489, allocations: 104.9 kB / 453.9 MB, free: 2.172 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.034e-05/0.149, allocations: 108.2 kB / 454 MB, free: 2.059 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.129e-05/0.1491, allocations: 188.2 kB / 454.2 MB, free: 1.867 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.316e-05/0.1491, allocations: 184.2 kB / 454.4 MB, free: 1.68 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.363e-05/0.1492, allocations: 176.3 kB / 454.5 MB, free: 1.5 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001981/0.1494, allocations: 409.1 kB / 454.9 MB, free: 1.043 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.083e-05/0.1494, allocations: 105 kB / 455 MB, free: 0.9336 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.323e-05/0.1495, allocations: 104.9 kB / 455.1 MB, free: 0.8242 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.114e-05/0.1495, allocations: 180.3 kB / 455.3 MB, free: 0.6406 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.036e-05/0.1496, allocations: 180.3 kB / 455.5 MB, free: 468 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.721e-05/0.1497, allocations: 188.2 kB / 455.7 MB, free: 272 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.591e-05/0.1497, allocations: 176.3 kB / 455.8 MB, free: 88 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1767/0.3264, allocations: 309.9 kB / 456.1 MB, free: 47.04 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.098e-05/0.3265, allocations: 187.1 kB / 456.3 MB, free: 46.84 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.168e-05/0.3265, allocations: 179.1 kB / 456.5 MB, free: 46.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.418e-05/0.3266, allocations: 108.7 kB / 456.6 MB, free: 46.55 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.473e-05/0.3267, allocations: 185 kB / 456.8 MB, free: 46.37 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.961e-05/0.3267, allocations: 107.4 kB / 456.9 MB, free: 46.27 MB / 382.1 MB Notification: Performance of sorting global known variables: time 3.995e-05/0.3267, allocations: 78.16 kB / 457 MB, free: 46.19 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3267, allocations: 0 / 457 MB, free: 46.19 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003149/0.3271, allocations: 2.875 kB / 457 MB, free: 46.19 MB / 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.0002195/0.3273, allocations: 0.8087 MB / 457.8 MB, free: 45.39 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 4.304e-05/0.3273, allocations: 0.6094 kB / 457.8 MB, free: 45.39 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.3273, allocations: 0 / 457.8 MB, free: 45.39 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.435e-06/0.3273, allocations: 2.844 kB / 457.8 MB, free: 45.39 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003177/0.3277, allocations: 0.524 MB / 458.3 MB, free: 44.87 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003333/0.328, allocations: 178 kB / 458.5 MB, free: 44.66 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.855e-05/0.3281, allocations: 0.6735 MB / 459.2 MB, free: 43.97 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 1.928e-05/0.3281, allocations: 2.297 kB / 459.2 MB, free: 43.97 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.207e-06/0.3282, allocations: 7.438 kB / 459.2 MB, free: 43.96 MB / 382.1 MB Notification: Performance of SimCode: time 3.9e-07/0.3282, allocations: 3.719 kB / 459.2 MB, free: 43.96 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009334/0.3375, allocations: 0.8227 MB / 460 MB, free: 43.8 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001411/0.3377, allocations: 198.6 kB / 460.2 MB, free: 43.55 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.7/3.038, allocations: 0 / 460.2 MB, free: 43.55 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