Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008872/0.0008872, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001023/0.001023, allocations: 174 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8693/0.8693, allocations: 177.1 MB / 204.2 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.24/0.24, allocations: 32.78 MB / 293.5 MB, free: 1.242 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 439.5 MB, free: 4.301 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.923e-05/2.086e-05, allocations: 2.281 kB / 439.5 MB, free: 4.297 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.00108/0.0011, allocations: 495.1 kB / 440 MB, free: 3.816 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.002564/0.003664, allocations: 2.07 MB / 442.1 MB, free: 1.727 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.126e-05/0.003686, allocations: 0 / 442.1 MB, free: 1.727 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 1.852e-05/0.003704, allocations: 0 / 442.1 MB, free: 1.727 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 2.43e-05/0.003728, allocations: 0 / 442.1 MB, free: 1.727 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001312/0.00504, allocations: 403.5 kB / 442.5 MB, free: 1.332 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 6.144e-05/0.005102, allocations: 4 kB / 442.5 MB, free: 1.328 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.024e-05/0.005152, allocations: 0 / 442.5 MB, free: 1.328 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.675e-05/0.005189, allocations: 7.984 kB / 442.5 MB, free: 1.32 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1846/0.1897, allocations: 3.39 MB / 445.9 MB, free: 44.27 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.273e-05/0.1898, allocations: 0 / 445.9 MB, free: 44.27 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.22e-05/0.1898, allocations: 5.875 kB / 445.9 MB, free: 44.27 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 9.929e-06/0.1899, allocations: 8 kB / 445.9 MB, free: 44.27 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 2.031e-05/0.1899, allocations: 0.5625 kB / 445.9 MB, free: 44.27 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001298/0.19, allocations: 7.219 kB / 445.9 MB, free: 44.27 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.19, allocations: 0 / 445.9 MB, free: 44.27 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.19, allocations: 0 / 445.9 MB, free: 44.27 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.641e-06/0.19, allocations: 0 / 445.9 MB, free: 44.27 MB / 410.7 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.0001927/0.1902, allocations: 247 kB / 446.2 MB, free: 44.02 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.1903, allocations: 8.125 kB / 446.2 MB, free: 44.02 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.061e-05/0.1903, allocations: 109.6 kB / 446.3 MB, free: 43.9 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001797/0.1905, allocations: 87.52 kB / 446.4 MB, free: 43.83 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.617e-05/0.1905, allocations: 180.2 kB / 446.5 MB, free: 43.63 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.651e-05/0.1905, allocations: 157.1 kB / 446.7 MB, free: 43.48 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.252e-05/0.1906, allocations: 150.9 kB / 446.8 MB, free: 43.33 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 3.593e-05/0.1906, allocations: 105.8 kB / 446.9 MB, free: 43.23 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.1906, allocations: 75.28 kB / 447 MB, free: 43.15 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.814e-05/0.1906, allocations: 157.8 kB / 447.2 MB, free: 43 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.211e-05/0.1906, allocations: 150.6 kB / 447.3 MB, free: 42.85 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.89e-05/0.1907, allocations: 164.2 kB / 447.5 MB, free: 42.7 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000134/0.1908, allocations: 411.7 kB / 447.9 MB, free: 42.26 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.978e-05/0.1908, allocations: 168.4 kB / 448 MB, free: 42.09 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.044e-05/0.1908, allocations: 83.05 kB / 448.1 MB, free: 42.01 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.594e-06/0.1908, allocations: 75.28 kB / 448.2 MB, free: 41.93 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.899e-05/0.1909, allocations: 109.6 kB / 448.3 MB, free: 41.82 MB / 410.7 MB Notification: Performance of pre-optimization done (n=0): time 7.91e-07/0.1909, allocations: 0 / 448.3 MB, free: 41.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=0): time 5.351e-05/0.1909, allocations: 35.92 kB / 448.3 MB, free: 41.79 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.132e-05/0.1909, allocations: 180.8 kB / 448.5 MB, free: 41.59 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.824e-05/0.191, allocations: 95.83 kB / 448.6 MB, free: 41.49 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.581e-06/0.191, allocations: 28.36 kB / 448.6 MB, free: 41.46 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.338e-06/0.191, allocations: 82.56 kB / 448.7 MB, free: 41.38 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.422e-06/0.191, allocations: 0 / 448.7 MB, free: 41.38 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.685e-05/0.191, allocations: 12.92 kB / 448.7 MB, free: 41.36 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.565e-05/0.1911, allocations: 314.3 kB / 449 MB, free: 41.05 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.659e-06/0.1911, allocations: 3.562 kB / 449 MB, free: 41.05 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.267e-05/0.1911, allocations: 70.69 kB / 449.1 MB, free: 40.96 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.307e-06/0.1911, allocations: 81.47 kB / 449.2 MB, free: 40.89 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.179e-06/0.1911, allocations: 78.12 kB / 449.3 MB, free: 40.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 2.881e-05/0.1911, allocations: 34.81 kB / 449.3 MB, free: 40.79 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.1912, allocations: 81.25 kB / 449.4 MB, free: 40.71 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.1912, allocations: 82.69 kB / 449.5 MB, free: 40.63 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.1912, allocations: 153.5 kB / 449.6 MB, free: 40.48 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.722e-06/0.1912, allocations: 81.75 kB / 449.7 MB, free: 40.41 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.958e-06/0.1912, allocations: 153.4 kB / 449.8 MB, free: 40.26 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.47e-05/0.1912, allocations: 84.94 kB / 449.9 MB, free: 40.19 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.722e-06/0.1912, allocations: 77.88 kB / 450 MB, free: 40.11 MB / 410.7 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 4.123e-05/0.1913, allocations: 259 kB / 450.2 MB, free: 39.85 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.791e-05/0.1913, allocations: 108.3 kB / 450.4 MB, free: 39.74 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.666e-05/0.1913, allocations: 116.7 kB / 450.5 MB, free: 39.63 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.31e-05/0.1913, allocations: 179.5 kB / 450.6 MB, free: 39.45 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.485e-05/0.1914, allocations: 185.5 kB / 450.8 MB, free: 39.27 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.132e-05/0.1914, allocations: 179.5 kB / 451 MB, free: 39.09 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.517e-05/0.1914, allocations: 378.6 kB / 451.4 MB, free: 38.68 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.706e-06/0.1914, allocations: 103.6 kB / 451.5 MB, free: 38.57 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.524e-06/0.1915, allocations: 107.6 kB / 451.6 MB, free: 38.47 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.271e-05/0.1915, allocations: 178.8 kB / 451.8 MB, free: 38.29 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.452e-05/0.1915, allocations: 183.9 kB / 451.9 MB, free: 38.11 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.16e-05/0.1915, allocations: 178.9 kB / 452.1 MB, free: 37.93 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.094e-05/0.1915, allocations: 180.4 kB / 452.3 MB, free: 37.74 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.149e-05/0.1915, allocations: 307.3 kB / 452.6 MB, free: 37.43 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.225e-05/0.1916, allocations: 107.1 kB / 452.7 MB, free: 37.33 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.015e-05/0.1916, allocations: 189.5 kB / 452.9 MB, free: 37.14 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.911e-05/0.1916, allocations: 104.6 kB / 453 MB, free: 37.04 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.733e-05/0.1916, allocations: 181.1 kB / 453.1 MB, free: 36.86 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.935e-06/0.1916, allocations: 107 kB / 453.3 MB, free: 36.75 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.628e-05/0.1917, allocations: 75.28 kB / 453.3 MB, free: 36.68 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1917, allocations: 0 / 453.3 MB, free: 36.68 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001616/0.1918, allocations: 2.812 kB / 453.3 MB, free: 36.68 MB / 410.7 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.0001222/0.1919, allocations: 0.7996 MB / 454.1 MB, free: 35.88 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 4.25e-05/0.192, allocations: 14 kB / 454.1 MB, free: 35.87 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.373e-06/0.192, allocations: 0 / 454.1 MB, free: 35.87 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 8.82e-07/0.192, allocations: 0 / 454.1 MB, free: 35.87 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001715/0.1922, allocations: 460.6 kB / 454.6 MB, free: 35.42 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002548/0.1924, allocations: 178.7 kB / 454.8 MB, free: 35.22 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.771e-05/0.1924, allocations: 54.36 kB / 454.8 MB, free: 35.15 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 2.064e-05/0.1925, allocations: 3.938 kB / 454.8 MB, free: 35.15 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.24e-05/0.1925, allocations: 11.69 kB / 454.8 MB, free: 35.14 MB / 410.7 MB Notification: Performance of SimCode: time 6.92e-07/0.1925, allocations: 4 kB / 454.8 MB, free: 35.14 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01492/0.2074, allocations: 1.692 MB / 456.5 MB, free: 34.25 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.753/6.96, allocations: 8.641 kB / 456.5 MB, free: 34.25 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestExamplesCalculator_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestExamplesCalculator.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Utilities/TestExamplesCalculator/TestExamplesCalculator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.814347395673394]