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.001836/0.001836, 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.002496/0.002496, allocations: 214.3 kB / 23.73 MB, free: 4.16 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.51/1.51, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.2393/0.2393, allocations: 46.96 MB / 360.9 MB, free: 4.008 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.002111/0.002111, allocations: 63.91 kB / 0.4961 GB, free: 7.719 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3041/0.3063, allocations: 66.04 MB / 0.5606 GB, free: 4.227 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001716/0.308, allocations: 485 kB / 0.561 GB, free: 3.75 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003229/0.3112, allocations: 2.062 MB / 0.5631 GB, free: 1.672 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.554e-05/0.3112, allocations: 0 / 0.5631 GB, free: 1.672 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.11e-05/0.3112, allocations: 0 / 0.5631 GB, free: 1.672 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.486e-05/0.3112, allocations: 8 kB / 0.5631 GB, free: 1.664 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001207/0.3125, allocations: 406.5 kB / 0.5634 GB, free: 1.27 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.699e-05/0.3125, allocations: 7.984 kB / 0.5635 GB, free: 1.262 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.02e-05/0.3125, allocations: 3.984 kB / 0.5635 GB, free: 1.258 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.276e-05/0.3126, allocations: 4 kB / 0.5635 GB, free: 1.254 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02094/0.3335, allocations: 3.384 MB / 0.5668 GB, free: 14.5 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.924e-05/0.3335, allocations: 0 / 0.5668 GB, free: 14.5 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.651e-05/0.3336, allocations: 7.984 kB / 0.5668 GB, free: 14.49 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.319e-05/0.3336, allocations: 3.984 kB / 0.5668 GB, free: 14.49 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.291e-05/0.3337, allocations: 3.938 kB / 0.5668 GB, free: 14.48 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001353/0.3338, allocations: 15.94 kB / 0.5668 GB, free: 14.47 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3338, allocations: 0 / 0.5668 GB, free: 14.47 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3338, allocations: 0 / 0.5668 GB, free: 14.47 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.94e-06/0.3338, allocations: 0 / 0.5668 GB, free: 14.47 MB / 414.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.0003179/0.3341, allocations: 242.4 kB / 0.567 GB, free: 14.2 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/0.3342, allocations: 12.03 kB / 0.567 GB, free: 14.19 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.096e-05/0.3343, allocations: 110 kB / 0.5671 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002118/0.3345, allocations: 88.2 kB / 0.5672 GB, free: 13.99 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001381/0.3346, allocations: 181.8 kB / 0.5674 GB, free: 13.79 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.636e-05/0.3347, allocations: 150.9 kB / 0.5675 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.539e-05/0.3348, allocations: 154.5 kB / 0.5677 GB, free: 13.48 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.997e-05/0.3348, allocations: 105 kB / 0.5678 GB, free: 13.38 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.638e-05/0.3349, allocations: 75.28 kB / 0.5679 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.59e-05/0.3349, allocations: 150.6 kB / 0.568 GB, free: 13.15 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.37e-05/0.335, allocations: 154.6 kB / 0.5682 GB, free: 13 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.938e-05/0.3351, allocations: 154.5 kB / 0.5683 GB, free: 12.85 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003042/0.3354, allocations: 421 kB / 0.5687 GB, free: 12.39 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001024/0.3355, allocations: 173.1 kB / 0.5689 GB, free: 12.21 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.096e-05/0.3355, allocations: 84.14 kB / 0.569 GB, free: 12.13 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.842e-05/0.3356, allocations: 75.28 kB / 0.569 GB, free: 12.05 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.431e-05/0.3356, allocations: 113.8 kB / 0.5691 GB, free: 11.93 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 8.72e-07/0.3356, allocations: 0 / 0.5691 GB, free: 11.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 7.164e-05/0.3357, allocations: 29.7 kB / 0.5692 GB, free: 11.9 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/0.3358, allocations: 178.1 kB / 0.5693 GB, free: 11.7 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.339e-05/0.3359, allocations: 93.86 kB / 0.5694 GB, free: 11.6 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.537e-05/0.3359, allocations: 29.7 kB / 0.5694 GB, free: 11.56 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.524e-05/0.336, allocations: 84.14 kB / 0.5695 GB, free: 11.48 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.423e-06/0.336, allocations: 0 / 0.5695 GB, free: 11.48 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.94e-05/0.336, allocations: 17.7 kB / 0.5695 GB, free: 11.45 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001339/0.3361, allocations: 310.8 kB / 0.5698 GB, free: 11.14 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.797e-06/0.3361, allocations: 3.938 kB / 0.5698 GB, free: 11.14 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.305e-05/0.3362, allocations: 61.12 kB / 0.5699 GB, free: 11.06 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.721e-05/0.3362, allocations: 79.28 kB / 0.57 GB, free: 10.98 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.159e-05/0.3362, allocations: 75.28 kB / 0.57 GB, free: 10.91 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.193e-05/0.3363, allocations: 41.73 kB / 0.5701 GB, free: 10.86 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.005e-05/0.3363, allocations: 79.28 kB / 0.5702 GB, free: 10.78 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.799e-05/0.3364, allocations: 79.27 kB / 0.5702 GB, free: 10.7 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.841e-05/0.3365, allocations: 166.5 kB / 0.5704 GB, free: 10.54 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.447e-05/0.3365, allocations: 75.28 kB / 0.5705 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.163e-05/0.3366, allocations: 154.5 kB / 0.5706 GB, free: 10.31 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.479e-05/0.3367, allocations: 79.28 kB / 0.5707 GB, free: 10.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.12e-05/0.3367, allocations: 75.28 kB / 0.5708 GB, free: 10.16 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.0001494/0.3368, allocations: 268.3 kB / 0.571 GB, free: 9.887 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.538e-05/0.3369, allocations: 112.9 kB / 0.5711 GB, free: 9.77 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.673e-05/0.337, allocations: 111.8 kB / 0.5712 GB, free: 9.652 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.103e-05/0.3371, allocations: 184.2 kB / 0.5714 GB, free: 9.465 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.344e-05/0.3371, allocations: 176.3 kB / 0.5716 GB, free: 9.285 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.779e-05/0.3372, allocations: 176.3 kB / 0.5717 GB, free: 9.105 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002773/0.3375, allocations: 384.2 kB / 0.5721 GB, free: 8.68 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.211e-05/0.3376, allocations: 105 kB / 0.5722 GB, free: 8.57 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.858e-05/0.3376, allocations: 108.9 kB / 0.5723 GB, free: 8.457 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.087e-05/0.3377, allocations: 176.3 kB / 0.5725 GB, free: 8.277 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.965e-05/0.3378, allocations: 180.2 kB / 0.5727 GB, free: 8.094 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.2e-05/0.3379, allocations: 184.2 kB / 0.5728 GB, free: 7.906 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.133e-05/0.3379, allocations: 184.3 kB / 0.573 GB, free: 7.719 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001784/0.3381, allocations: 308.1 kB / 0.5733 GB, free: 7.395 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.508e-05/0.3382, allocations: 113 kB / 0.5734 GB, free: 7.277 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001031/0.3383, allocations: 184.2 kB / 0.5736 GB, free: 7.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001191/0.3384, allocations: 105 kB / 0.5737 GB, free: 6.98 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.671e-05/0.3385, allocations: 180.2 kB / 0.5739 GB, free: 6.797 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.418e-05/0.3385, allocations: 101 kB / 0.574 GB, free: 6.691 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.986e-05/0.3386, allocations: 83.27 kB / 0.574 GB, free: 6.609 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3386, allocations: 0 / 0.574 GB, free: 6.609 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002683/0.3389, allocations: 0 / 0.574 GB, free: 6.609 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.0004761/0.3394, allocations: 0.8049 MB / 0.5748 GB, free: 5.773 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 4.847e-05/0.3394, allocations: 4 kB / 0.5748 GB, free: 5.77 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.674e-06/0.3394, allocations: 3.938 kB / 0.5748 GB, free: 5.766 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.683e-06/0.3394, allocations: 0 / 0.5748 GB, free: 5.766 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004069/0.3398, allocations: 463.7 kB / 0.5753 GB, free: 5.309 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003921/0.3402, allocations: 177.9 kB / 0.5754 GB, free: 5.094 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.299e-05/0.3403, allocations: 55.3 kB / 0.5755 GB, free: 5.02 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.302e-05/0.3403, allocations: 4 kB / 0.5755 GB, free: 5.016 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.696e-05/0.3403, allocations: 7.438 kB / 0.5755 GB, free: 5.008 MB / 414.1 MB Notification: Performance of SimCode: time 4e-07/0.3403, allocations: 4 kB / 0.5755 GB, free: 5.004 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02639/0.3667, allocations: 1.555 MB / 0.577 GB, free: 3.574 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/11.63, allocations: 10.11 kB / 0.577 GB, free: 3.57 MB / 414.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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.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_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.csv","/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.582373804878443]