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.001381/0.001381, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001564/0.001564, allocations: 214.4 kB / 23.75 MB, free: 4.668 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.55/1.55, allocations: 230.6 MB / 257.5 MB, free: 7.984 MB / 206.1 MB " [Timeout remaining time 178] 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.2263/0.2263, allocations: 44.92 MB / 358.8 MB, free: 6.262 MB / 286.1 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: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002119/0.002119, allocations: 63.89 kB / 0.4931 GB, free: 10.72 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3074/0.3095, allocations: 65.48 MB / 0.557 GB, free: 7.395 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001584/0.3111, allocations: 487.4 kB / 0.5575 GB, free: 7.035 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00355/0.3147, allocations: 2.167 MB / 0.5596 GB, free: 4.992 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.089e-05/0.3147, allocations: 0 / 0.5596 GB, free: 4.992 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.929e-05/0.3147, allocations: 4 kB / 0.5596 GB, free: 4.988 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.927e-05/0.3147, allocations: 0 / 0.5596 GB, free: 4.988 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001388/0.3161, allocations: 402.7 kB / 0.56 GB, free: 4.594 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.469e-05/0.3162, allocations: 11.98 kB / 0.56 GB, free: 4.582 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.758e-05/0.3162, allocations: 0 / 0.56 GB, free: 4.582 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.76e-05/0.3162, allocations: 4 kB / 0.56 GB, free: 4.578 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02163/0.3378, allocations: 3.4 MB / 0.5633 GB, free: 1.809 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.542e-05/0.3379, allocations: 0 / 0.5633 GB, free: 1.809 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.864e-05/0.338, allocations: 4 kB / 0.5633 GB, free: 1.805 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.508e-06/0.338, allocations: 0 / 0.5633 GB, free: 1.805 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.129e-05/0.338, allocations: 0 / 0.5633 GB, free: 1.805 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001519/0.3381, allocations: 8 kB / 0.5633 GB, free: 1.797 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.3381, allocations: 0 / 0.5633 GB, free: 1.797 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.3381, allocations: 0 / 0.5633 GB, free: 1.797 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.582e-06/0.3381, allocations: 8 kB / 0.5633 GB, free: 1.789 MB / 398.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.0003291/0.3385, allocations: 238.4 kB / 0.5636 GB, free: 1.527 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.914e-05/0.3385, allocations: 8.031 kB / 0.5636 GB, free: 1.52 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.927e-05/0.3386, allocations: 114 kB / 0.5637 GB, free: 1.398 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000209/0.3388, allocations: 92.2 kB / 0.5638 GB, free: 1.309 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001427/0.3389, allocations: 177.8 kB / 0.5639 GB, free: 1.109 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.125e-05/0.339, allocations: 158.9 kB / 0.5641 GB, free: 0.9531 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.089e-05/0.3391, allocations: 158.5 kB / 0.5642 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.674e-05/0.3392, allocations: 101 kB / 0.5643 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.58e-05/0.3392, allocations: 75.28 kB / 0.5644 GB, free: 0.6172 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.644e-05/0.3393, allocations: 150.6 kB / 0.5645 GB, free: 480 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.138e-05/0.3393, allocations: 150.6 kB / 0.5647 GB, free: 328 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.191e-05/0.3394, allocations: 158.6 kB / 0.5648 GB, free: 168 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003386/0.3397, allocations: 417 kB / 0.5652 GB, free: 15.71 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001054/0.3399, allocations: 177 kB / 0.5654 GB, free: 15.53 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.959e-05/0.3399, allocations: 80.14 kB / 0.5655 GB, free: 15.45 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.375e-05/0.3399, allocations: 79.28 kB / 0.5656 GB, free: 15.37 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.672e-05/0.34, allocations: 105.8 kB / 0.5657 GB, free: 15.26 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 1.102e-06/0.34, allocations: 4 kB / 0.5657 GB, free: 15.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 8.027e-05/0.3401, allocations: 29.64 kB / 0.5657 GB, free: 15.22 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001138/0.3402, allocations: 178.1 kB / 0.5659 GB, free: 15.02 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001116/0.3403, allocations: 93.84 kB / 0.566 GB, free: 14.92 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.821e-05/0.3403, allocations: 33.83 kB / 0.566 GB, free: 14.88 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.154e-05/0.3404, allocations: 88.08 kB / 0.5661 GB, free: 14.79 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.503e-06/0.3404, allocations: 0 / 0.5661 GB, free: 14.79 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.749e-05/0.3404, allocations: 9.719 kB / 0.5661 GB, free: 14.77 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.3406, allocations: 314.8 kB / 0.5664 GB, free: 14.46 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.618e-06/0.3406, allocations: 0 / 0.5664 GB, free: 14.46 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.676e-05/0.3406, allocations: 9.719 kB / 0.5664 GB, free: 14.44 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.697e-05/0.3406, allocations: 79.31 kB / 0.5665 GB, free: 14.36 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.625e-05/0.3407, allocations: 75.28 kB / 0.5665 GB, free: 14.29 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.196e-05/0.3407, allocations: 37.58 kB / 0.5666 GB, free: 14.25 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.656e-05/0.3408, allocations: 79.28 kB / 0.5666 GB, free: 14.17 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.255e-05/0.3408, allocations: 83.27 kB / 0.5667 GB, free: 14.09 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.171e-05/0.3409, allocations: 162.6 kB / 0.5669 GB, free: 13.93 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.237e-05/0.3409, allocations: 79.22 kB / 0.567 GB, free: 13.85 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.443e-05/0.341, allocations: 154.6 kB / 0.5671 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001025/0.3411, allocations: 83.22 kB / 0.5672 GB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.347e-05/0.3411, allocations: 75.28 kB / 0.5673 GB, free: 13.54 MB / 414.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.0001637/0.3413, allocations: 276.2 kB / 0.5675 GB, free: 13.26 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.794e-05/0.3414, allocations: 105 kB / 0.5676 GB, free: 13.15 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.082e-05/0.3414, allocations: 111.7 kB / 0.5677 GB, free: 13.03 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.56e-05/0.3415, allocations: 184.3 kB / 0.5679 GB, free: 12.84 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.8e-05/0.3416, allocations: 180.2 kB / 0.5681 GB, free: 12.66 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.645e-05/0.3417, allocations: 176.3 kB / 0.5682 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002961/0.342, allocations: 380.2 kB / 0.5686 GB, free: 12.06 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.527e-05/0.342, allocations: 104.9 kB / 0.5687 GB, free: 11.95 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.705e-05/0.3421, allocations: 105 kB / 0.5688 GB, free: 11.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.936e-05/0.3422, allocations: 180.2 kB / 0.569 GB, free: 11.66 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.917e-05/0.3423, allocations: 184.2 kB / 0.5692 GB, free: 11.47 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.04e-05/0.3424, allocations: 184.3 kB / 0.5693 GB, free: 11.28 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.363e-05/0.3424, allocations: 184.2 kB / 0.5695 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001795/0.3426, allocations: 312 kB / 0.5698 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.24e-05/0.3427, allocations: 105 kB / 0.5699 GB, free: 10.66 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.794e-05/0.3428, allocations: 188.2 kB / 0.5701 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.711e-05/0.3429, allocations: 101 kB / 0.5702 GB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.021e-05/0.343, allocations: 176.3 kB / 0.5703 GB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.993e-05/0.343, allocations: 116.9 kB / 0.5705 GB, free: 10.06 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.512e-05/0.3431, allocations: 75.28 kB / 0.5705 GB, free: 9.984 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3431, allocations: 0 / 0.5705 GB, free: 9.984 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000262/0.3434, allocations: 4 kB / 0.5705 GB, free: 9.98 MB / 414.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.0005109/0.3439, allocations: 0.7971 MB / 0.5713 GB, free: 9.152 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 6.229e-05/0.3439, allocations: 7.938 kB / 0.5713 GB, free: 9.145 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.438e-06/0.3439, allocations: 7.938 kB / 0.5713 GB, free: 9.137 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.264e-06/0.3439, allocations: 0 / 0.5713 GB, free: 9.137 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004609/0.3444, allocations: 459.7 kB / 0.5718 GB, free: 8.684 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004531/0.3449, allocations: 177.9 kB / 0.5719 GB, free: 8.469 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000383/0.3452, allocations: 0.669 MB / 0.5726 GB, free: 7.773 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.786e-05/0.3453, allocations: 0 / 0.5726 GB, free: 7.773 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.834e-05/0.3453, allocations: 11.44 kB / 0.5726 GB, free: 7.762 MB / 414.1 MB Notification: Performance of SimCode: time 4.4e-07/0.3453, allocations: 0 / 0.5726 GB, free: 7.762 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02769/0.373, allocations: 1.118 MB / 0.5737 GB, free: 6.77 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/11.59, allocations: 10.64 kB / 0.5737 GB, free: 6.762 MB / 414.1 MB " [Timeout remaining time 648] (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/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_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: 14.488740907981992]