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.001582/0.001582, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001927/0.001927, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.565/1.565, allocations: 230.6 MB / 258.3 MB, free: 8.047 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.2232/0.2232, allocations: 44.89 MB / 359.6 MB, free: 6.332 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="cs",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.002083/0.002083, allocations: 59.91 kB / 0.4938 GB, free: 10.78 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3592/0.3613, allocations: 65.48 MB / 0.5578 GB, free: 7.422 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001673/0.3629, allocations: 482.7 kB / 0.5582 GB, free: 7.066 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003564/0.3665, allocations: 2.172 MB / 0.5604 GB, free: 5.023 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.823e-05/0.3665, allocations: 0 / 0.5604 GB, free: 5.023 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.044e-05/0.3665, allocations: 0 / 0.5604 GB, free: 5.023 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.081e-05/0.3665, allocations: 4 kB / 0.5604 GB, free: 5.02 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001329/0.3679, allocations: 398.7 kB / 0.5607 GB, free: 4.629 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.708e-05/0.3679, allocations: 7.984 kB / 0.5607 GB, free: 4.621 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.403e-05/0.368, allocations: 4 kB / 0.5607 GB, free: 4.617 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.731e-05/0.368, allocations: 7.922 kB / 0.5608 GB, free: 4.609 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02157/0.3896, allocations: 3.392 MB / 0.5641 GB, free: 1.848 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.36e-05/0.3896, allocations: 0 / 0.5641 GB, free: 1.848 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.971e-05/0.3897, allocations: 4 kB / 0.5641 GB, free: 1.844 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.028e-05/0.3897, allocations: 0 / 0.5641 GB, free: 1.844 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 3.676e-05/0.3897, allocations: 3.984 kB / 0.5641 GB, free: 1.84 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001282/0.3898, allocations: 11.94 kB / 0.5641 GB, free: 1.828 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.3898, allocations: 0 / 0.5641 GB, free: 1.828 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3898, allocations: 0 / 0.5641 GB, free: 1.828 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.048e-05/0.3898, allocations: 0 / 0.5641 GB, free: 1.828 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.0002895/0.3901, allocations: 250.3 kB / 0.5643 GB, free: 1.555 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.3902, allocations: 8.031 kB / 0.5643 GB, free: 1.547 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.704e-05/0.3902, allocations: 79.41 kB / 0.5644 GB, free: 1.469 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.068e-05/0.3903, allocations: 110 kB / 0.5645 GB, free: 1.352 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002217/0.3905, allocations: 92.2 kB / 0.5646 GB, free: 1.262 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000139/0.3906, allocations: 177.8 kB / 0.5648 GB, free: 1.062 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.755e-05/0.3907, allocations: 158.7 kB / 0.5649 GB, free: 0.9062 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.142e-05/0.3908, allocations: 154.6 kB / 0.5651 GB, free: 0.7539 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.044e-05/0.3909, allocations: 101 kB / 0.5652 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.941e-05/0.3909, allocations: 75.28 kB / 0.5652 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.632e-05/0.391, allocations: 150.6 kB / 0.5654 GB, free: 436 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.313e-05/0.391, allocations: 158.6 kB / 0.5655 GB, free: 276 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.914e-05/0.3911, allocations: 154.5 kB / 0.5657 GB, free: 120 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003191/0.3914, allocations: 417 kB / 0.5661 GB, free: 15.67 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000107/0.3915, allocations: 173.1 kB / 0.5662 GB, free: 15.49 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.949e-05/0.3916, allocations: 84.14 kB / 0.5663 GB, free: 15.4 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.456e-05/0.3916, allocations: 75.28 kB / 0.5664 GB, free: 15.33 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.969e-05/0.3917, allocations: 109.8 kB / 0.5665 GB, free: 15.21 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 9.62e-07/0.3917, allocations: 4 kB / 0.5665 GB, free: 15.21 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 7.435e-05/0.3918, allocations: 25.7 kB / 0.5665 GB, free: 15.18 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001056/0.3919, allocations: 178.1 kB / 0.5667 GB, free: 14.98 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001098/0.392, allocations: 97.84 kB / 0.5668 GB, free: 14.87 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.719e-05/0.392, allocations: 33.7 kB / 0.5668 GB, free: 14.83 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.833e-05/0.392, allocations: 80.14 kB / 0.5669 GB, free: 14.75 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.904e-06/0.392, allocations: 0 / 0.5669 GB, free: 14.75 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.805e-05/0.3921, allocations: 9.719 kB / 0.5669 GB, free: 14.73 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.3922, allocations: 314.8 kB / 0.5672 GB, free: 14.42 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.388e-06/0.3922, allocations: 0 / 0.5672 GB, free: 14.42 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.719e-05/0.3922, allocations: 9.719 kB / 0.5672 GB, free: 14.4 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.605e-05/0.3923, allocations: 83.38 kB / 0.5673 GB, free: 14.32 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.444e-05/0.3923, allocations: 79.22 kB / 0.5674 GB, free: 14.24 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.09e-05/0.3924, allocations: 29.7 kB / 0.5674 GB, free: 14.21 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.211e-05/0.3924, allocations: 83.28 kB / 0.5675 GB, free: 14.12 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.805e-05/0.3925, allocations: 83.31 kB / 0.5676 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.161e-05/0.3925, allocations: 158.5 kB / 0.5677 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.286e-05/0.3926, allocations: 79.22 kB / 0.5678 GB, free: 13.81 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.219e-05/0.3927, allocations: 158.5 kB / 0.5679 GB, free: 13.65 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.024e-05/0.3927, allocations: 79.28 kB / 0.568 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.139e-05/0.3928, allocations: 79.22 kB / 0.5681 GB, free: 13.5 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.0001618/0.3929, allocations: 272.3 kB / 0.5684 GB, free: 13.22 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.335e-05/0.393, allocations: 108.9 kB / 0.5685 GB, free: 13.11 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.558e-05/0.3931, allocations: 115.8 kB / 0.5686 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.216e-05/0.3932, allocations: 184.2 kB / 0.5687 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.415e-05/0.3932, allocations: 176.3 kB / 0.5689 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.713e-05/0.3933, allocations: 176.3 kB / 0.5691 GB, free: 12.44 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002898/0.3936, allocations: 384.2 kB / 0.5694 GB, free: 12.01 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.662e-05/0.3937, allocations: 105 kB / 0.5695 GB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.808e-05/0.3937, allocations: 104.9 kB / 0.5696 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.41e-05/0.3938, allocations: 180.2 kB / 0.5698 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.996e-05/0.3939, allocations: 180.3 kB / 0.57 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.509e-05/0.394, allocations: 184.2 kB / 0.5702 GB, free: 11.24 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.108e-05/0.3941, allocations: 184.3 kB / 0.5703 GB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001771/0.3942, allocations: 312 kB / 0.5706 GB, free: 10.72 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.343e-05/0.3943, allocations: 108.9 kB / 0.5707 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001021/0.3944, allocations: 184.3 kB / 0.5709 GB, free: 10.42 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001033/0.3945, allocations: 101 kB / 0.571 GB, free: 10.32 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.55e-05/0.3946, allocations: 184.2 kB / 0.5712 GB, free: 10.13 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.083e-05/0.3946, allocations: 109 kB / 0.5713 GB, free: 10.02 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.411e-05/0.3947, allocations: 75.28 kB / 0.5714 GB, free: 9.941 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3947, allocations: 0 / 0.5714 GB, free: 9.941 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002732/0.395, allocations: 4 kB / 0.5714 GB, free: 9.938 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.0004645/0.3954, allocations: 0.8009 MB / 0.5721 GB, free: 9.105 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 4.48e-05/0.3955, allocations: 8 kB / 0.5722 GB, free: 9.098 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/0.3955, allocations: 0 / 0.5722 GB, free: 9.098 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.706e-06/0.3955, allocations: 3.984 kB / 0.5722 GB, free: 9.094 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004009/0.3959, allocations: 457.9 kB / 0.5726 GB, free: 8.645 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000387/0.3963, allocations: 185.9 kB / 0.5728 GB, free: 8.422 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003231/0.3966, allocations: 0.6729 MB / 0.5734 GB, free: 7.723 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.043e-05/0.3966, allocations: 0 / 0.5734 GB, free: 7.723 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.528e-05/0.3966, allocations: 7.438 kB / 0.5734 GB, free: 7.715 MB / 414.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3966, allocations: 3.938 kB / 0.5734 GB, free: 7.711 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02009/0.4167, allocations: 1.148 MB / 0.5746 GB, free: 6.703 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/11.5, allocations: 7.438 kB / 0.5746 GB, free: 6.699 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.52801556000486]