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.002101/0.002101, allocations: 107.5 kB / 21.22 MB, free: 0.6289 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.002658/0.002658, allocations: 212.3 kB / 24.51 MB, free: 3.914 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.485/1.485, allocations: 230.6 MB / 258.3 MB, free: 7.746 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.2323/0.2323, allocations: 46.97 MB / 361.7 MB, free: 4.031 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002039/0.002039, allocations: 63.89 kB / 0.4968 GB, free: 7.754 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3569/0.359, allocations: 66.03 MB / 0.5613 GB, free: 4.262 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001654/0.3606, allocations: 492 kB / 0.5618 GB, free: 3.781 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003436/0.3641, allocations: 2.054 MB / 0.5638 GB, free: 1.711 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.714e-05/0.3641, allocations: 0 / 0.5638 GB, free: 1.711 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.251e-05/0.3641, allocations: 0 / 0.5638 GB, free: 1.711 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.991e-05/0.3641, allocations: 3.938 kB / 0.5638 GB, free: 1.707 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001258/0.3654, allocations: 410.5 kB / 0.5642 GB, free: 1.309 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.646e-05/0.3654, allocations: 11.98 kB / 0.5642 GB, free: 1.297 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.023e-05/0.3655, allocations: 0 / 0.5642 GB, free: 1.297 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.21e-05/0.3655, allocations: 4 kB / 0.5642 GB, free: 1.293 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0215/0.387, allocations: 3.389 MB / 0.5675 GB, free: 14.53 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.918e-05/0.387, allocations: 0 / 0.5675 GB, free: 14.53 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.627e-05/0.3871, allocations: 8 kB / 0.5675 GB, free: 14.52 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.388e-05/0.3871, allocations: 0 / 0.5675 GB, free: 14.52 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.358e-05/0.3871, allocations: 0 / 0.5675 GB, free: 14.52 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000157/0.3873, allocations: 8 kB / 0.5675 GB, free: 14.52 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.107e-06/0.3873, allocations: 4 kB / 0.5675 GB, free: 14.51 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3873, allocations: 0 / 0.5675 GB, free: 14.51 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.3873, allocations: 0 / 0.5675 GB, free: 14.51 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.0003661/0.3877, allocations: 242.4 kB / 0.5678 GB, free: 14.25 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.618e-05/0.3877, allocations: 8.031 kB / 0.5678 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.508e-05/0.3878, allocations: 79.47 kB / 0.5679 GB, free: 14.16 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.124e-05/0.3878, allocations: 106 kB / 0.568 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002342/0.3881, allocations: 84.2 kB / 0.568 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001495/0.3882, allocations: 185.8 kB / 0.5682 GB, free: 13.76 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.454e-05/0.3883, allocations: 166.6 kB / 0.5684 GB, free: 13.59 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.028e-05/0.3884, allocations: 150.6 kB / 0.5685 GB, free: 13.45 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.801e-05/0.3885, allocations: 112.9 kB / 0.5686 GB, free: 13.33 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.951e-05/0.3885, allocations: 75.28 kB / 0.5687 GB, free: 13.25 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.441e-05/0.3886, allocations: 150.6 kB / 0.5688 GB, free: 13.11 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.747e-05/0.3887, allocations: 150.6 kB / 0.569 GB, free: 12.96 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.957e-05/0.3887, allocations: 150.6 kB / 0.5691 GB, free: 12.81 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003297/0.3891, allocations: 421 kB / 0.5695 GB, free: 12.36 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001206/0.3892, allocations: 177 kB / 0.5697 GB, free: 12.17 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.365e-05/0.3892, allocations: 80.14 kB / 0.5698 GB, free: 12.09 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.882e-05/0.3893, allocations: 79.28 kB / 0.5699 GB, free: 12.01 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.87e-05/0.3893, allocations: 105.8 kB / 0.57 GB, free: 11.9 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 1.312e-06/0.3893, allocations: 0 / 0.57 GB, free: 11.9 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 7.941e-05/0.3894, allocations: 33.7 kB / 0.57 GB, free: 11.86 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001364/0.3896, allocations: 178.1 kB / 0.5702 GB, free: 11.66 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001184/0.3897, allocations: 97.78 kB / 0.5702 GB, free: 11.55 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.821e-05/0.3897, allocations: 29.7 kB / 0.5703 GB, free: 11.52 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.229e-05/0.3897, allocations: 80.14 kB / 0.5704 GB, free: 11.44 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.984e-06/0.3897, allocations: 0 / 0.5704 GB, free: 11.44 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.804e-05/0.3898, allocations: 13.72 kB / 0.5704 GB, free: 11.42 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.3899, allocations: 315 kB / 0.5707 GB, free: 11.1 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.949e-06/0.3899, allocations: 4 kB / 0.5707 GB, free: 11.1 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.009e-05/0.39, allocations: 65.12 kB / 0.5707 GB, free: 11.02 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.72e-05/0.39, allocations: 75.28 kB / 0.5708 GB, free: 10.94 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.717e-05/0.3901, allocations: 79.22 kB / 0.5709 GB, free: 10.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.137e-05/0.3901, allocations: 29.7 kB / 0.5709 GB, free: 10.83 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.879e-05/0.3902, allocations: 83.27 kB / 0.571 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.853e-05/0.3902, allocations: 79.22 kB / 0.5711 GB, free: 10.67 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.698e-05/0.3903, allocations: 162.6 kB / 0.5712 GB, free: 10.51 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.091e-05/0.3904, allocations: 79.22 kB / 0.5713 GB, free: 10.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.2e-05/0.3904, allocations: 150.6 kB / 0.5714 GB, free: 10.28 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001126/0.3906, allocations: 87.31 kB / 0.5715 GB, free: 10.2 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.292e-05/0.3906, allocations: 79.22 kB / 0.5716 GB, free: 10.12 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.0001754/0.3908, allocations: 268.3 kB / 0.5719 GB, free: 9.844 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.349e-05/0.3908, allocations: 105 kB / 0.572 GB, free: 9.734 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.566e-05/0.3909, allocations: 115.6 kB / 0.5721 GB, free: 9.613 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.582e-05/0.391, allocations: 184.3 kB / 0.5722 GB, free: 9.426 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.364e-05/0.3911, allocations: 176.3 kB / 0.5724 GB, free: 9.246 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.536e-05/0.3912, allocations: 180.2 kB / 0.5726 GB, free: 9.062 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002854/0.3915, allocations: 376.2 kB / 0.5729 GB, free: 8.645 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.346e-05/0.3915, allocations: 104.9 kB / 0.573 GB, free: 8.535 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.767e-05/0.3916, allocations: 113 kB / 0.5731 GB, free: 8.418 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.148e-05/0.3917, allocations: 184.2 kB / 0.5733 GB, free: 8.23 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001033/0.3918, allocations: 180.2 kB / 0.5735 GB, free: 8.047 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.043e-05/0.3919, allocations: 180.3 kB / 0.5737 GB, free: 7.863 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.953e-05/0.392, allocations: 184.2 kB / 0.5738 GB, free: 7.676 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001862/0.3922, allocations: 312 kB / 0.5741 GB, free: 7.348 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.39e-05/0.3922, allocations: 105 kB / 0.5742 GB, free: 7.238 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.13e-05/0.3923, allocations: 180.3 kB / 0.5744 GB, free: 7.055 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001151/0.3925, allocations: 112.9 kB / 0.5745 GB, free: 6.938 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.629e-05/0.3925, allocations: 180.3 kB / 0.5747 GB, free: 6.754 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.976e-05/0.3926, allocations: 112.9 kB / 0.5748 GB, free: 6.637 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.765e-05/0.3926, allocations: 79.28 kB / 0.5749 GB, free: 6.559 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3926, allocations: 0 / 0.5749 GB, free: 6.559 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002645/0.3929, allocations: 0 / 0.5749 GB, free: 6.559 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.0005412/0.3935, allocations: 0.8009 MB / 0.5757 GB, free: 5.727 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 5.421e-05/0.3935, allocations: 0 / 0.5757 GB, free: 5.727 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3935, allocations: 0 / 0.5757 GB, free: 5.727 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 7.394e-06/0.3935, allocations: 7.922 kB / 0.5757 GB, free: 5.719 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004149/0.3939, allocations: 455.7 kB / 0.5761 GB, free: 5.27 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000393/0.3943, allocations: 190 kB / 0.5763 GB, free: 5.043 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.433e-05/0.3944, allocations: 55.36 kB / 0.5763 GB, free: 4.969 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.891e-05/0.3944, allocations: 0 / 0.5763 GB, free: 4.969 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.361e-05/0.3944, allocations: 7.438 kB / 0.5763 GB, free: 4.961 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3944, allocations: 0 / 0.5763 GB, free: 4.961 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02013/0.4145, allocations: 1.222 MB / 0.5775 GB, free: 3.883 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.5/11.91, allocations: 0 / 0.5775 GB, free: 3.883 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 & /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.876611214014702]