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.001492/0.001492, allocations: 104.8 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001865/0.001865, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 227.4 MB / 246.3 MB, free: 9.059 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.221/0.221, allocations: 46.09 MB / 343.6 MB, free: 11.61 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002277/0.002277, allocations: 74.84 kB / 416.9 MB, free: 20.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1423/0.1446, allocations: 62.45 MB / 479.4 MB, free: 5.645 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.002646/0.1473, allocations: 0.5371 MB / 479.9 MB, free: 5.102 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003874/0.1512, allocations: 2.186 MB / 482.1 MB, free: 2.898 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.647e-05/0.1512, allocations: 4 kB / 482.1 MB, free: 2.895 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.114e-05/0.1513, allocations: 7.938 kB / 482.1 MB, free: 2.887 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.253e-05/0.1513, allocations: 0 / 482.1 MB, free: 2.887 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001476/0.1528, allocations: 299.3 kB / 482.4 MB, free: 2.594 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.216e-05/0.1529, allocations: 8 kB / 482.4 MB, free: 2.586 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.392e-05/0.153, allocations: 0 / 482.4 MB, free: 2.586 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.281e-05/0.153, allocations: 4 kB / 482.4 MB, free: 2.582 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03467/0.1877, allocations: 3.19 MB / 485.6 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.894e-05/0.1877, allocations: 4 kB / 485.6 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.726e-05/0.1878, allocations: 8 kB / 485.6 MB, free: 15.88 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.173e-05/0.1878, allocations: 0 / 485.6 MB, free: 15.88 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.621e-05/0.1878, allocations: 3.984 kB / 485.6 MB, free: 15.88 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001019/0.1879, allocations: 7.938 kB / 485.6 MB, free: 15.87 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.188, allocations: 0 / 485.6 MB, free: 15.87 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.31e-07/0.188, allocations: 0 / 485.6 MB, free: 15.87 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.188, allocations: 0 / 485.6 MB, free: 15.87 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.0003131/0.1883, allocations: 327.5 kB / 485.9 MB, free: 15.5 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.283e-05/0.1883, allocations: 8.875 kB / 486 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.396e-05/0.1884, allocations: 106 kB / 486.1 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002235/0.1886, allocations: 84.22 kB / 486.1 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001342/0.1888, allocations: 239.7 kB / 486.4 MB, free: 15.02 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.445e-05/0.1889, allocations: 150.9 kB / 486.5 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.181e-05/0.1889, allocations: 162.5 kB / 486.7 MB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.059e-05/0.189, allocations: 101 kB / 486.8 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.588e-05/0.189, allocations: 83.16 kB / 486.9 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.648e-05/0.1891, allocations: 150.6 kB / 487 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.379e-05/0.1891, allocations: 158.5 kB / 487.2 MB, free: 14.22 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.418e-05/0.1892, allocations: 158.5 kB / 487.3 MB, free: 14.07 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002706/0.1895, allocations: 445.9 kB / 487.8 MB, free: 13.58 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.543e-05/0.1896, allocations: 169.1 kB / 487.9 MB, free: 13.41 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.743e-05/0.1896, allocations: 80.14 kB / 488 MB, free: 13.32 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.598e-05/0.1896, allocations: 75.28 kB / 488.1 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.721e-05/0.1897, allocations: 117.8 kB / 488.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 1.192e-06/0.1897, allocations: 0 / 488.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 8.081e-05/0.1898, allocations: 25.7 kB / 488.2 MB, free: 13.09 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.291e-05/0.1899, allocations: 182.1 kB / 488.4 MB, free: 12.89 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001089/0.19, allocations: 93.86 kB / 488.5 MB, free: 12.79 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.461e-05/0.19, allocations: 25.7 kB / 488.5 MB, free: 12.76 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.262e-05/0.1901, allocations: 88.25 kB / 488.6 MB, free: 12.67 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.024e-06/0.1901, allocations: 0 / 488.6 MB, free: 12.67 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.568e-05/0.1901, allocations: 17.7 kB / 488.6 MB, free: 12.64 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.1902, allocations: 310.9 kB / 488.9 MB, free: 12.33 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.141e-06/0.1903, allocations: 4 kB / 488.9 MB, free: 12.33 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.036e-05/0.1903, allocations: 21.66 kB / 488.9 MB, free: 12.3 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.712e-05/0.1903, allocations: 79.28 kB / 489 MB, free: 12.22 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.698e-05/0.1904, allocations: 79.31 kB / 489.1 MB, free: 12.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.641e-05/0.1904, allocations: 29.64 kB / 489.1 MB, free: 12.11 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.898e-05/0.1905, allocations: 83.28 kB / 489.2 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.649e-05/0.1905, allocations: 75.28 kB / 489.3 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.967e-05/0.1906, allocations: 158.5 kB / 489.4 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.154e-05/0.1906, allocations: 75.28 kB / 489.5 MB, free: 11.72 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.378e-05/0.1907, allocations: 162.4 kB / 489.7 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.01e-05/0.1908, allocations: 83.28 kB / 489.7 MB, free: 11.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.468e-05/0.1908, allocations: 75.28 kB / 489.8 MB, free: 11.41 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 0.0001243/0.191, allocations: 264.3 kB / 490.1 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.078e-05/0.191, allocations: 104.9 kB / 490.2 MB, free: 11.03 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.304e-05/0.1911, allocations: 112.1 kB / 490.3 MB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.042e-05/0.1911, allocations: 184.2 kB / 490.5 MB, free: 10.73 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.747e-05/0.1912, allocations: 180.3 kB / 490.6 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.819e-05/0.1913, allocations: 176.3 kB / 490.8 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002187/0.1915, allocations: 413 kB / 491.2 MB, free: 9.906 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.614e-05/0.1915, allocations: 101 kB / 491.3 MB, free: 9.801 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.815e-05/0.1916, allocations: 104.9 kB / 491.4 MB, free: 9.691 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.91e-05/0.1916, allocations: 188.3 kB / 491.6 MB, free: 9.5 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.767e-05/0.1917, allocations: 184.2 kB / 491.8 MB, free: 9.312 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.008e-05/0.1918, allocations: 180.2 kB / 492 MB, free: 9.129 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.32e-05/0.1918, allocations: 180.5 kB / 492.1 MB, free: 8.945 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001314/0.192, allocations: 311.7 kB / 492.4 MB, free: 8.617 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.002e-05/0.1921, allocations: 190.1 kB / 492.6 MB, free: 8.406 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.023e-05/0.1921, allocations: 180.3 kB / 492.8 MB, free: 8.223 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.18e-05/0.1922, allocations: 101 kB / 492.9 MB, free: 8.117 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.462e-05/0.1923, allocations: 184.2 kB / 493.1 MB, free: 7.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.628e-05/0.1923, allocations: 105 kB / 493.2 MB, free: 7.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.241e-05/0.1924, allocations: 83.27 kB / 493.3 MB, free: 7.738 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1924, allocations: 0 / 493.3 MB, free: 7.738 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002842/0.1927, allocations: 4 kB / 493.3 MB, free: 7.734 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.0003615/0.1931, allocations: 0.797 MB / 494.1 MB, free: 6.906 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 4.701e-05/0.1931, allocations: 8 kB / 494.1 MB, free: 6.898 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.1931, allocations: 0 / 494.1 MB, free: 6.898 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.102e-06/0.1931, allocations: 0 / 494.1 MB, free: 6.898 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000359/0.1935, allocations: 0.5224 MB / 494.6 MB, free: 6.371 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003636/0.1939, allocations: 187.7 kB / 494.8 MB, free: 6.145 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002427/0.1941, allocations: 0.6692 MB / 495.4 MB, free: 5.449 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.218e-05/0.1941, allocations: 0 / 495.4 MB, free: 5.449 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.302e-05/0.1942, allocations: 11.44 kB / 495.5 MB, free: 5.441 MB / 366.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1942, allocations: 0 / 495.5 MB, free: 5.441 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01101/0.2052, allocations: 0.8772 MB / 496.3 MB, free: 4.652 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001913/0.2054, allocations: 204.9 kB / 496.5 MB, free: 4.395 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.733/1.938, allocations: 0 / 496.5 MB, free: 4.395 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