Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.001341/0.001341, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 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.001532/0.001532, allocations: 214.4 kB / 23.73 MB, free: 4.156 MB / 14.72 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 1.441/1.441, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2252/0.2252, allocations: 46.97 MB / 360.9 MB, free: 4.035 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002077/0.002077, allocations: 67.89 kB / 0.4961 GB, free: 8.262 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3052/0.3073, allocations: 66.02 MB / 0.5606 GB, free: 33.35 MB / 446.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001543/0.3089, allocations: 497.6 kB / 0.561 GB, free: 33.07 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002633/0.3115, allocations: 2.067 MB / 0.563 GB, free: 31.7 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.605e-05/0.3115, allocations: 0 / 0.563 GB, free: 31.7 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 1.216e-05/0.3115, allocations: 0 / 0.563 GB, free: 31.7 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.247e-05/0.3116, allocations: 3.938 kB / 0.5631 GB, free: 31.7 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001084/0.3126, allocations: 394.8 kB / 0.5634 GB, free: 31.53 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 4.236e-05/0.3127, allocations: 7.188 kB / 0.5634 GB, free: 31.52 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.75e-05/0.3127, allocations: 10.64 kB / 0.5634 GB, free: 31.52 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.327e-05/0.3127, allocations: 0 / 0.5634 GB, free: 31.52 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01866/0.3314, allocations: 3.396 MB / 0.5668 GB, free: 30.61 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.077e-05/0.3314, allocations: 3.094 kB / 0.5668 GB, free: 30.61 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.619e-05/0.3315, allocations: 3.031 kB / 0.5668 GB, free: 30.61 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 1.267e-05/0.3315, allocations: 4 kB / 0.5668 GB, free: 30.6 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.95e-05/0.3315, allocations: 1.625 kB / 0.5668 GB, free: 30.6 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00014/0.3317, allocations: 13.06 kB / 0.5668 GB, free: 30.6 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.3317, allocations: 0 / 0.5668 GB, free: 30.6 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.3317, allocations: 0 / 0.5668 GB, free: 30.6 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.3317, allocations: 3.562 kB / 0.5668 GB, free: 30.6 MB / 446.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.0002463/0.3319, allocations: 243.5 kB / 0.567 GB, free: 30.34 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.332, allocations: 9 kB / 0.567 GB, free: 30.34 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.725e-05/0.332, allocations: 109 kB / 0.5671 GB, free: 30.23 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001835/0.3322, allocations: 85.45 kB / 0.5672 GB, free: 30.15 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.727e-05/0.3323, allocations: 177.8 kB / 0.5674 GB, free: 29.95 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.471e-05/0.3323, allocations: 158 kB / 0.5675 GB, free: 29.8 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.914e-05/0.3323, allocations: 158.4 kB / 0.5677 GB, free: 29.64 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 3.962e-05/0.3324, allocations: 104.9 kB / 0.5678 GB, free: 29.54 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.496e-05/0.3324, allocations: 78.84 kB / 0.5679 GB, free: 29.46 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.761e-05/0.3324, allocations: 157.6 kB / 0.568 GB, free: 29.31 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.082e-05/0.3324, allocations: 153.6 kB / 0.5682 GB, free: 29.16 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.155e-05/0.3325, allocations: 150.6 kB / 0.5683 GB, free: 29.01 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001754/0.3326, allocations: 412 kB / 0.5687 GB, free: 28.57 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.684e-05/0.3327, allocations: 180 kB / 0.5689 GB, free: 28.39 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.077e-05/0.3327, allocations: 80.14 kB / 0.5689 GB, free: 28.3 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.705e-05/0.3327, allocations: 75.28 kB / 0.569 GB, free: 28.23 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.226e-05/0.3328, allocations: 108.8 kB / 0.5691 GB, free: 28.12 MB / 446.1 MB Notification: Performance of pre-optimization done (n=0): time 9.12e-07/0.3328, allocations: 0.5 kB / 0.5691 GB, free: 28.12 MB / 446.1 MB Notification: Performance of matching and sorting (n=0): time 6.792e-05/0.3328, allocations: 31.27 kB / 0.5692 GB, free: 28.09 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.926e-05/0.3329, allocations: 181.1 kB / 0.5693 GB, free: 27.89 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.976e-05/0.333, allocations: 93.86 kB / 0.5694 GB, free: 27.79 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.516e-06/0.333, allocations: 28.7 kB / 0.5694 GB, free: 27.75 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.574e-05/0.333, allocations: 84.08 kB / 0.5695 GB, free: 27.67 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.402e-06/0.333, allocations: 0 / 0.5695 GB, free: 27.67 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.067e-05/0.333, allocations: 16.88 kB / 0.5695 GB, free: 27.65 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.189e-05/0.3331, allocations: 313.8 kB / 0.5698 GB, free: 27.34 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.488e-06/0.3331, allocations: 0 / 0.5698 GB, free: 27.34 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.485e-05/0.3331, allocations: 64.03 kB / 0.5699 GB, free: 27.26 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.607e-05/0.3331, allocations: 75.28 kB / 0.57 GB, free: 27.18 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-05/0.3331, allocations: 82.31 kB / 0.57 GB, free: 27.11 MB / 446.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 4.774e-05/0.3332, allocations: 32.64 kB / 0.5701 GB, free: 27.07 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.305e-05/0.3332, allocations: 78.28 kB / 0.5702 GB, free: 27 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.758e-05/0.3332, allocations: 85.06 kB / 0.5702 GB, free: 26.92 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.415e-05/0.3333, allocations: 154.6 kB / 0.5704 GB, free: 26.77 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.295e-05/0.3333, allocations: 78.28 kB / 0.5705 GB, free: 26.69 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.169e-05/0.3333, allocations: 158.5 kB / 0.5706 GB, free: 26.54 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.131e-05/0.3334, allocations: 78.31 kB / 0.5707 GB, free: 26.46 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.521e-05/0.3334, allocations: 82.31 kB / 0.5708 GB, free: 26.38 MB / 446.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 7.535e-05/0.3335, allocations: 267.3 kB / 0.571 GB, free: 26.11 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.442e-05/0.3335, allocations: 104 kB / 0.5711 GB, free: 26.01 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.376e-05/0.3335, allocations: 111.7 kB / 0.5712 GB, free: 25.89 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-05/0.3335, allocations: 183.2 kB / 0.5714 GB, free: 25.71 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.364e-05/0.3336, allocations: 183.2 kB / 0.5716 GB, free: 25.52 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.747e-05/0.3336, allocations: 184.2 kB / 0.5717 GB, free: 25.34 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001229/0.3337, allocations: 374.3 kB / 0.5721 GB, free: 24.93 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-05/0.3337, allocations: 115.9 kB / 0.5722 GB, free: 24.81 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.776e-05/0.3338, allocations: 101 kB / 0.5723 GB, free: 24.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.704e-05/0.3338, allocations: 184.2 kB / 0.5725 GB, free: 24.52 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.619e-05/0.3338, allocations: 186.2 kB / 0.5727 GB, free: 24.33 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.65e-05/0.3338, allocations: 176.3 kB / 0.5728 GB, free: 24.15 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.438e-05/0.3339, allocations: 187.2 kB / 0.573 GB, free: 23.96 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.367e-05/0.3339, allocations: 309.4 kB / 0.5733 GB, free: 23.65 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.092e-05/0.3339, allocations: 104.9 kB / 0.5734 GB, free: 23.54 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.367e-05/0.334, allocations: 183.3 kB / 0.5736 GB, free: 23.36 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.277e-05/0.334, allocations: 108.1 kB / 0.5737 GB, free: 23.25 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.726e-05/0.3341, allocations: 183.3 kB / 0.5739 GB, free: 23.06 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.389e-05/0.3341, allocations: 105 kB / 0.574 GB, free: 22.95 MB / 446.1 MB Notification: Performance of sorting global known variables: time 1.883e-05/0.3341, allocations: 78.22 kB / 0.574 GB, free: 22.88 MB / 446.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3341, allocations: 3.938 kB / 0.574 GB, free: 22.88 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002708/0.3344, allocations: 3.031 kB / 0.574 GB, free: 22.88 MB / 446.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.0001936/0.3346, allocations: 0.7991 MB / 0.5748 GB, free: 22.06 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 4.808e-05/0.3346, allocations: 2.969 kB / 0.5748 GB, free: 22.06 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.3346, allocations: 0 / 0.5748 GB, free: 22.06 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 2.244e-06/0.3346, allocations: 3.938 kB / 0.5748 GB, free: 22.06 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002615/0.3349, allocations: 458.8 kB / 0.5753 GB, free: 21.61 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003201/0.3352, allocations: 187.9 kB / 0.5754 GB, free: 21.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.101e-05/0.3352, allocations: 51.36 kB / 0.5755 GB, free: 21.33 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 1.844e-05/0.3353, allocations: 3 kB / 0.5755 GB, free: 21.33 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.2e-05/0.3353, allocations: 7.438 kB / 0.5755 GB, free: 21.32 MB / 446.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3353, allocations: 0 / 0.5755 GB, free: 21.32 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02569/0.361, allocations: 1.554 MB / 0.577 GB, free: 20.51 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.7, allocations: 11.77 kB / 0.577 GB, free: 20.5 MB / 446.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.1.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Utilities.TestExamplesCalculator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Utilities.TestExamplesCalculator_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Utilities_TestExamplesCalculator_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Utilities_TestExamplesCalculator.fmu > ModelicaTest_4.1.0_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Utilities.TestExamplesCalculator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Utilities/TestExamplesCalculator/TestExamplesCalculator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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: 14.493974001146853]