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.001352/0.001352, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001413/0.001413, allocations: 210.3 kB / 23.73 MB, free: 4.379 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.484/1.484, 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.2234/0.2234, allocations: 46.96 MB / 360.9 MB, free: 4.078 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.003005/0.003005, allocations: 67.89 kB / 0.4961 GB, free: 7.777 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3646/0.3676, allocations: 66.03 MB / 0.5606 GB, free: 4.301 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001844/0.3695, allocations: 497 kB / 0.561 GB, free: 3.812 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003288/0.3728, allocations: 2.058 MB / 0.563 GB, free: 1.738 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.201e-05/0.3728, allocations: 0 / 0.563 GB, free: 1.738 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.341e-05/0.3728, allocations: 0 / 0.563 GB, free: 1.738 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.466e-05/0.3728, allocations: 4 kB / 0.5631 GB, free: 1.734 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001221/0.3741, allocations: 402.2 kB / 0.5634 GB, free: 1.344 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.72e-05/0.3741, allocations: 7.984 kB / 0.5634 GB, free: 1.336 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.261e-05/0.3741, allocations: 11.98 kB / 0.5635 GB, free: 1.324 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.71e-05/0.3742, allocations: 4 kB / 0.5635 GB, free: 1.32 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02076/0.3949, allocations: 3.384 MB / 0.5668 GB, free: 14.57 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.674e-05/0.3949, allocations: 0 / 0.5668 GB, free: 14.57 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.191e-05/0.395, allocations: 11.98 kB / 0.5668 GB, free: 14.55 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.516e-05/0.395, allocations: 3.984 kB / 0.5668 GB, free: 14.55 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.871e-05/0.3951, allocations: 3.938 kB / 0.5668 GB, free: 14.55 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001296/0.3952, allocations: 4 kB / 0.5668 GB, free: 14.54 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.3952, allocations: 0 / 0.5668 GB, free: 14.54 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3952, allocations: 0 / 0.5668 GB, free: 14.54 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.013e-06/0.3952, allocations: 4 kB / 0.5668 GB, free: 14.54 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.0003427/0.3955, allocations: 246.4 kB / 0.567 GB, free: 14.27 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.736e-05/0.3956, allocations: 8.031 kB / 0.567 GB, free: 14.26 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.77e-05/0.3957, allocations: 110 kB / 0.5671 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002217/0.3959, allocations: 84.2 kB / 0.5672 GB, free: 14.06 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001398/0.396, allocations: 181.8 kB / 0.5674 GB, free: 13.86 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.035e-05/0.3961, allocations: 150.9 kB / 0.5675 GB, free: 13.71 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.846e-05/0.3962, allocations: 154.5 kB / 0.5677 GB, free: 13.56 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.037e-05/0.3963, allocations: 108.9 kB / 0.5678 GB, free: 13.45 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.724e-05/0.3963, allocations: 75.28 kB / 0.5679 GB, free: 13.37 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.6e-05/0.3964, allocations: 158.6 kB / 0.568 GB, free: 13.21 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.822e-05/0.3965, allocations: 150.6 kB / 0.5682 GB, free: 13.07 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.708e-05/0.3965, allocations: 150.6 kB / 0.5683 GB, free: 12.92 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003311/0.3969, allocations: 421 kB / 0.5687 GB, free: 12.46 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001085/0.397, allocations: 173 kB / 0.5689 GB, free: 12.29 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.448e-05/0.397, allocations: 84.12 kB / 0.5689 GB, free: 12.2 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.064e-05/0.3971, allocations: 79.28 kB / 0.569 GB, free: 12.12 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.517e-05/0.3972, allocations: 105.8 kB / 0.5691 GB, free: 12.01 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 1.062e-06/0.3972, allocations: 0 / 0.5691 GB, free: 12.01 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 8.039e-05/0.3973, allocations: 29.64 kB / 0.5691 GB, free: 11.97 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002232/0.3975, allocations: 186.1 kB / 0.5693 GB, free: 11.77 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001066/0.3976, allocations: 93.86 kB / 0.5694 GB, free: 11.66 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001168/0.3977, allocations: 25.7 kB / 0.5694 GB, free: 11.63 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.563e-05/0.3977, allocations: 84.14 kB / 0.5695 GB, free: 11.55 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.853e-06/0.3977, allocations: 3.938 kB / 0.5695 GB, free: 11.54 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.884e-05/0.3978, allocations: 13.7 kB / 0.5695 GB, free: 11.52 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.3979, allocations: 314.8 kB / 0.5698 GB, free: 11.21 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.999e-06/0.3979, allocations: 0 / 0.5698 GB, free: 11.21 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.7e-05/0.398, allocations: 65.12 kB / 0.5699 GB, free: 11.12 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.999e-05/0.398, allocations: 75.28 kB / 0.57 GB, free: 11.05 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.318e-05/0.3981, allocations: 79.44 kB / 0.57 GB, free: 10.97 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.74e-05/0.3981, allocations: 37.64 kB / 0.5701 GB, free: 10.93 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.096e-05/0.3982, allocations: 83.28 kB / 0.5702 GB, free: 10.85 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.317e-05/0.3982, allocations: 83.2 kB / 0.5702 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001379/0.3984, allocations: 154.6 kB / 0.5704 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.486e-05/0.3984, allocations: 79.28 kB / 0.5705 GB, free: 10.54 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-05/0.3985, allocations: 154.5 kB / 0.5706 GB, free: 10.38 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.895e-05/0.3986, allocations: 75.28 kB / 0.5707 GB, free: 10.31 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.387e-05/0.3986, allocations: 91.16 kB / 0.5708 GB, free: 10.22 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.0001464/0.3988, allocations: 260.3 kB / 0.571 GB, free: 9.953 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001551/0.3989, allocations: 109 kB / 0.5711 GB, free: 9.84 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.365e-05/0.399, allocations: 115.7 kB / 0.5712 GB, free: 9.719 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.462e-05/0.3991, allocations: 176.3 kB / 0.5714 GB, free: 9.539 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000174/0.3993, allocations: 184.3 kB / 0.5716 GB, free: 9.352 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.927e-05/0.3993, allocations: 180.2 kB / 0.5717 GB, free: 9.168 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002556/0.3996, allocations: 376.2 kB / 0.5721 GB, free: 8.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.936e-05/0.3996, allocations: 104.9 kB / 0.5722 GB, free: 8.641 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.863e-05/0.3997, allocations: 101 kB / 0.5723 GB, free: 8.535 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.464e-05/0.3998, allocations: 184.3 kB / 0.5725 GB, free: 8.348 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.582e-05/0.3999, allocations: 184.2 kB / 0.5727 GB, free: 8.16 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.9e-05/0.3999, allocations: 176.3 kB / 0.5728 GB, free: 7.98 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.379e-05/0.4, allocations: 192.2 kB / 0.573 GB, free: 7.785 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002053/0.4002, allocations: 304.1 kB / 0.5733 GB, free: 7.465 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.483e-05/0.4003, allocations: 112.9 kB / 0.5734 GB, free: 7.348 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.691e-05/0.4004, allocations: 180.3 kB / 0.5736 GB, free: 7.164 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001094/0.4005, allocations: 108.9 kB / 0.5737 GB, free: 7.051 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.923e-05/0.4006, allocations: 184.3 kB / 0.5739 GB, free: 6.863 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.59e-05/0.4006, allocations: 101 kB / 0.574 GB, free: 6.758 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.289e-05/0.4007, allocations: 79.27 kB / 0.574 GB, free: 6.68 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4007, allocations: 4 kB / 0.574 GB, free: 6.676 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002781/0.4009, allocations: 3.938 kB / 0.574 GB, free: 6.672 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.0004648/0.4014, allocations: 0.8049 MB / 0.5748 GB, free: 5.836 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 4.703e-05/0.4014, allocations: 4 kB / 0.5748 GB, free: 5.832 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.4014, allocations: 0 / 0.5748 GB, free: 5.832 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.967e-06/0.4014, allocations: 3.938 kB / 0.5748 GB, free: 5.828 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003919/0.4018, allocations: 459.7 kB / 0.5753 GB, free: 5.375 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003841/0.4022, allocations: 177.9 kB / 0.5754 GB, free: 5.16 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.203e-05/0.4023, allocations: 55.36 kB / 0.5755 GB, free: 5.086 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.099e-05/0.4023, allocations: 0 / 0.5755 GB, free: 5.086 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.561e-05/0.4023, allocations: 7.438 kB / 0.5755 GB, free: 5.078 MB / 414.1 MB Notification: Performance of SimCode: time 4.4e-07/0.4023, allocations: 8 kB / 0.5755 GB, free: 5.07 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02764/0.43, allocations: 1.577 MB / 0.577 GB, free: 3.621 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.98/11.41, allocations: 10.22 kB / 0.5771 GB, free: 3.613 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.3614908340096]