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.001648/0.001648, allocations: 111.1 kB / 20.44 MB, free: 1.199 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.001703/0.001703, allocations: 208.2 kB / 23.72 MB, free: 4.41 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.442/1.442, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.2121/0.2121, allocations: 44.93 MB / 358.8 MB, free: 6.16 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.002353/0.002353, allocations: 63.91 kB / 0.493 GB, free: 10.58 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2904/0.2927, allocations: 65.48 MB / 0.5569 GB, free: 7.348 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001484/0.2942, allocations: 487.6 kB / 0.5574 GB, free: 6.988 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003075/0.2973, allocations: 2.069 MB / 0.5594 GB, free: 4.992 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.372e-05/0.2973, allocations: 0 / 0.5594 GB, free: 4.992 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.625e-05/0.2973, allocations: 0 / 0.5594 GB, free: 4.992 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.416e-05/0.2973, allocations: 0 / 0.5594 GB, free: 4.992 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00107/0.2984, allocations: 402.7 kB / 0.5598 GB, free: 4.598 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 3.718e-05/0.2984, allocations: 8 kB / 0.5598 GB, free: 4.59 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.294e-05/0.2985, allocations: 0 / 0.5598 GB, free: 4.59 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.238e-05/0.2985, allocations: 4 kB / 0.5598 GB, free: 4.586 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02033/0.3188, allocations: 3.389 MB / 0.5631 GB, free: 1.824 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.99e-05/0.3188, allocations: 0 / 0.5631 GB, free: 1.824 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001105/0.319, allocations: 4 kB / 0.5631 GB, free: 1.82 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.637e-05/0.319, allocations: 4 kB / 0.5631 GB, free: 1.816 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.572e-05/0.319, allocations: 4 kB / 0.5631 GB, free: 1.812 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001774/0.3192, allocations: 19.91 kB / 0.5632 GB, free: 1.793 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.3192, allocations: 0 / 0.5632 GB, free: 1.793 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.3192, allocations: 0 / 0.5632 GB, free: 1.793 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.512e-06/0.3192, allocations: 0 / 0.5632 GB, free: 1.793 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.0003558/0.3195, allocations: 238.4 kB / 0.5634 GB, free: 1.531 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.196e-05/0.3196, allocations: 8.031 kB / 0.5634 GB, free: 1.523 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.436e-05/0.3197, allocations: 106 kB / 0.5635 GB, free: 1.41 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002325/0.3199, allocations: 96.14 kB / 0.5636 GB, free: 1.316 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001644/0.3201, allocations: 181.8 kB / 0.5638 GB, free: 1.113 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.403e-05/0.3202, allocations: 154.9 kB / 0.5639 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.382e-05/0.3202, allocations: 158.5 kB / 0.5641 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.407e-05/0.3203, allocations: 101 kB / 0.5642 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.032e-05/0.3204, allocations: 79.27 kB / 0.5642 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.898e-05/0.3204, allocations: 150.6 kB / 0.5644 GB, free: 484 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.415e-05/0.3205, allocations: 154.6 kB / 0.5645 GB, free: 328 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.822e-05/0.3206, allocations: 158.5 kB / 0.5647 GB, free: 168 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003498/0.3209, allocations: 413 kB / 0.5651 GB, free: 15.72 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001102/0.321, allocations: 169.1 kB / 0.5652 GB, free: 15.54 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.619e-05/0.3211, allocations: 84.14 kB / 0.5653 GB, free: 15.46 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.453e-05/0.3211, allocations: 83.22 kB / 0.5654 GB, free: 15.38 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.668e-05/0.3212, allocations: 109.8 kB / 0.5655 GB, free: 15.26 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 1.102e-06/0.3212, allocations: 0 / 0.5655 GB, free: 15.26 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 8.666e-05/0.3213, allocations: 33.62 kB / 0.5655 GB, free: 15.22 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001214/0.3214, allocations: 178.1 kB / 0.5657 GB, free: 15.02 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001146/0.3215, allocations: 93.86 kB / 0.5658 GB, free: 14.92 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.106e-05/0.3216, allocations: 25.7 kB / 0.5658 GB, free: 14.89 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.836e-05/0.3216, allocations: 84.14 kB / 0.5659 GB, free: 14.8 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.874e-06/0.3216, allocations: 0 / 0.5659 GB, free: 14.8 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.596e-05/0.3216, allocations: 13.72 kB / 0.5659 GB, free: 14.78 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.3218, allocations: 315 kB / 0.5662 GB, free: 14.46 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.999e-06/0.3218, allocations: 0 / 0.5662 GB, free: 14.46 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.639e-05/0.3218, allocations: 65.12 kB / 0.5663 GB, free: 14.38 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.707e-05/0.3219, allocations: 79.27 kB / 0.5663 GB, free: 14.3 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.008e-05/0.3219, allocations: 75.28 kB / 0.5664 GB, free: 14.23 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.441e-05/0.322, allocations: 37.58 kB / 0.5665 GB, free: 14.19 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.218e-05/0.322, allocations: 83.22 kB / 0.5665 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.024e-05/0.3221, allocations: 79.28 kB / 0.5666 GB, free: 14.03 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.566e-05/0.3222, allocations: 162.5 kB / 0.5668 GB, free: 13.87 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.892e-05/0.3222, allocations: 75.28 kB / 0.5668 GB, free: 13.79 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.295e-05/0.3223, allocations: 158.6 kB / 0.567 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001011/0.3224, allocations: 79.22 kB / 0.5671 GB, free: 13.56 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.42e-05/0.3224, allocations: 79.27 kB / 0.5671 GB, free: 13.48 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.0001445/0.3225, allocations: 264.3 kB / 0.5674 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.654e-05/0.3226, allocations: 112.9 kB / 0.5675 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.878e-05/0.3227, allocations: 107.8 kB / 0.5676 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.118e-05/0.3227, allocations: 176.3 kB / 0.5678 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.324e-05/0.3228, allocations: 188.2 kB / 0.5679 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.21e-05/0.3229, allocations: 180.2 kB / 0.5681 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002569/0.3232, allocations: 380.2 kB / 0.5685 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.22e-05/0.3232, allocations: 105 kB / 0.5686 GB, free: 11.89 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.15e-05/0.3233, allocations: 105 kB / 0.5687 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.674e-05/0.3233, allocations: 180.2 kB / 0.5689 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.809e-05/0.3234, allocations: 180.3 kB / 0.569 GB, free: 11.42 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.319e-05/0.3235, allocations: 180.2 kB / 0.5692 GB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.489e-05/0.3236, allocations: 184.3 kB / 0.5694 GB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001539/0.3237, allocations: 312 kB / 0.5697 GB, free: 10.72 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.912e-05/0.3238, allocations: 105 kB / 0.5698 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.131e-05/0.3239, allocations: 192.2 kB / 0.57 GB, free: 10.41 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.268e-05/0.324, allocations: 105 kB / 0.5701 GB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.097e-05/0.324, allocations: 184.2 kB / 0.5702 GB, free: 10.12 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.934e-05/0.3241, allocations: 105 kB / 0.5703 GB, free: 10.01 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.236e-05/0.3241, allocations: 79.22 kB / 0.5704 GB, free: 9.93 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3241, allocations: 0 / 0.5704 GB, free: 9.93 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002578/0.3244, allocations: 4 kB / 0.5704 GB, free: 9.926 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.0004188/0.3248, allocations: 0.8047 MB / 0.5712 GB, free: 9.09 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 3.944e-05/0.3248, allocations: 0 / 0.5712 GB, free: 9.09 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.3248, allocations: 0 / 0.5712 GB, free: 9.09 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.517e-06/0.3248, allocations: 8 kB / 0.5712 GB, free: 9.082 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003881/0.3252, allocations: 459.4 kB / 0.5716 GB, free: 8.633 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003978/0.3256, allocations: 177.9 kB / 0.5718 GB, free: 8.418 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.961e-05/0.3257, allocations: 59.34 kB / 0.5719 GB, free: 8.34 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.173e-05/0.3257, allocations: 3.938 kB / 0.5719 GB, free: 8.336 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.921e-05/0.3257, allocations: 7.438 kB / 0.5719 GB, free: 8.328 MB / 414.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3257, allocations: 3.938 kB / 0.5719 GB, free: 8.324 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02658/0.3523, allocations: 1.547 MB / 0.5734 GB, free: 6.902 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.71, allocations: 10.39 kB / 0.5734 GB, free: 6.895 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Utilities.TestExamplesCalculator_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 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.csv","/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.544250548817217]