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.001298/0.001298, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001489/0.001489, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.494/1.494, allocations: 230.6 MB / 258.3 MB, free: 8.027 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.2289/0.2289, allocations: 46.94 MB / 361.7 MB, free: 4.262 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.002029/0.002029, allocations: 79.83 kB / 0.4969 GB, free: 7.906 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3379/0.3399, allocations: 66.02 MB / 0.5614 GB, free: 4.477 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001625/0.3416, allocations: 493 kB / 0.5619 GB, free: 3.992 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003463/0.345, allocations: 2.167 MB / 0.564 GB, free: 1.809 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.002e-05/0.345, allocations: 4 kB / 0.564 GB, free: 1.805 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.929e-05/0.3451, allocations: 0 / 0.564 GB, free: 1.805 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.81e-05/0.3451, allocations: 0 / 0.564 GB, free: 1.805 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001298/0.3464, allocations: 402.7 kB / 0.5644 GB, free: 1.41 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.386e-05/0.3464, allocations: 8 kB / 0.5644 GB, free: 1.402 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.495e-05/0.3465, allocations: 3.984 kB / 0.5644 GB, free: 1.398 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.032e-05/0.3465, allocations: 7.938 kB / 0.5644 GB, free: 1.391 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02082/0.3673, allocations: 3.385 MB / 0.5677 GB, free: 14.64 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.538e-05/0.3673, allocations: 0 / 0.5677 GB, free: 14.64 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.341e-05/0.3674, allocations: 7.984 kB / 0.5677 GB, free: 14.63 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.033e-05/0.3674, allocations: 0 / 0.5677 GB, free: 14.63 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.3e-05/0.3675, allocations: 0 / 0.5677 GB, free: 14.63 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001449/0.3676, allocations: 15.92 kB / 0.5677 GB, free: 14.61 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3676, allocations: 0 / 0.5677 GB, free: 14.61 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3676, allocations: 4 kB / 0.5677 GB, free: 14.61 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.302e-06/0.3676, allocations: 4 kB / 0.5677 GB, free: 14.61 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.0003379/0.368, allocations: 242.3 kB / 0.568 GB, free: 14.34 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/0.368, allocations: 8.031 kB / 0.568 GB, free: 14.33 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.78e-05/0.3681, allocations: 79.47 kB / 0.568 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.278e-05/0.3681, allocations: 110 kB / 0.5681 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002093/0.3683, allocations: 84.2 kB / 0.5682 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001345/0.3685, allocations: 185.8 kB / 0.5684 GB, free: 13.85 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.885e-05/0.3685, allocations: 158.7 kB / 0.5686 GB, free: 13.69 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.305e-05/0.3686, allocations: 150.6 kB / 0.5687 GB, free: 13.54 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.675e-05/0.3687, allocations: 101 kB / 0.5688 GB, free: 13.44 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.388e-05/0.3687, allocations: 75.28 kB / 0.5689 GB, free: 13.36 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.881e-05/0.3688, allocations: 158.6 kB / 0.569 GB, free: 13.21 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.067e-05/0.3688, allocations: 150.6 kB / 0.5692 GB, free: 13.06 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.872e-05/0.3689, allocations: 150.6 kB / 0.5693 GB, free: 12.91 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003025/0.3692, allocations: 421 kB / 0.5697 GB, free: 12.46 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001066/0.3693, allocations: 177.1 kB / 0.5699 GB, free: 12.27 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.048e-05/0.3694, allocations: 80.14 kB / 0.5699 GB, free: 12.19 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.397e-05/0.3694, allocations: 75.28 kB / 0.57 GB, free: 12.12 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.092e-05/0.3695, allocations: 109.8 kB / 0.5701 GB, free: 12 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 9.62e-07/0.3695, allocations: 0 / 0.5701 GB, free: 12 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 7.856e-05/0.3695, allocations: 29.64 kB / 0.5702 GB, free: 11.96 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001089/0.3697, allocations: 182.1 kB / 0.5703 GB, free: 11.76 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001085/0.3698, allocations: 97.86 kB / 0.5704 GB, free: 11.66 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.578e-05/0.3698, allocations: 25.7 kB / 0.5704 GB, free: 11.62 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.357e-05/0.3698, allocations: 80.14 kB / 0.5705 GB, free: 11.54 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.193e-06/0.3698, allocations: 0 / 0.5705 GB, free: 11.54 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.008e-05/0.3699, allocations: 17.7 kB / 0.5705 GB, free: 11.52 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.37, allocations: 310.8 kB / 0.5708 GB, free: 11.21 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.438e-06/0.37, allocations: 0 / 0.5708 GB, free: 11.21 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.539e-05/0.37, allocations: 13.84 kB / 0.5708 GB, free: 11.19 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.663e-05/0.3701, allocations: 79.28 kB / 0.5709 GB, free: 11.11 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.994e-05/0.3701, allocations: 79.22 kB / 0.571 GB, free: 11.03 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.995e-05/0.3702, allocations: 37.64 kB / 0.571 GB, free: 10.99 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.175e-05/0.3702, allocations: 83.28 kB / 0.5711 GB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.67e-05/0.3702, allocations: 75.33 kB / 0.5712 GB, free: 10.83 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.329e-05/0.3703, allocations: 162.6 kB / 0.5713 GB, free: 10.67 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.706e-05/0.3704, allocations: 79.22 kB / 0.5714 GB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.18e-05/0.3704, allocations: 158.5 kB / 0.5716 GB, free: 10.44 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001021/0.3705, allocations: 83.2 kB / 0.5716 GB, free: 10.36 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.2e-05/0.3706, allocations: 79.22 kB / 0.5717 GB, free: 10.28 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.0001456/0.3707, allocations: 272.3 kB / 0.572 GB, free: 10 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.214e-05/0.3708, allocations: 108.9 kB / 0.5721 GB, free: 9.887 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.147e-05/0.3708, allocations: 111.8 kB / 0.5722 GB, free: 9.77 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.781e-05/0.3709, allocations: 180.3 kB / 0.5724 GB, free: 9.586 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.381e-05/0.371, allocations: 180.2 kB / 0.5725 GB, free: 9.402 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.775e-05/0.3711, allocations: 180.3 kB / 0.5727 GB, free: 9.219 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002657/0.3714, allocations: 384.2 kB / 0.5731 GB, free: 8.793 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.03e-05/0.3714, allocations: 101 kB / 0.5732 GB, free: 8.688 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.554e-05/0.3714, allocations: 101 kB / 0.5733 GB, free: 8.582 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.239e-05/0.3715, allocations: 180.2 kB / 0.5734 GB, free: 8.398 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.76e-05/0.3716, allocations: 184.3 kB / 0.5736 GB, free: 8.211 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.179e-05/0.3717, allocations: 184.2 kB / 0.5738 GB, free: 8.023 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.9e-05/0.3718, allocations: 184.3 kB / 0.574 GB, free: 7.836 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001612/0.3719, allocations: 308.1 kB / 0.5743 GB, free: 7.512 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.836e-05/0.372, allocations: 109 kB / 0.5744 GB, free: 7.398 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.121e-05/0.3721, allocations: 184.2 kB / 0.5745 GB, free: 7.211 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.878e-05/0.3722, allocations: 105 kB / 0.5746 GB, free: 7.102 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.299e-05/0.3723, allocations: 180.3 kB / 0.5748 GB, free: 6.918 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.501e-05/0.3723, allocations: 104.9 kB / 0.5749 GB, free: 6.809 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.743e-05/0.3724, allocations: 79.28 kB / 0.575 GB, free: 6.73 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3724, allocations: 0 / 0.575 GB, free: 6.73 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002683/0.3726, allocations: 4 kB / 0.575 GB, free: 6.727 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.0004324/0.3731, allocations: 0.801 MB / 0.5758 GB, free: 5.895 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 5.405e-05/0.3731, allocations: 7.938 kB / 0.5758 GB, free: 5.887 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.3731, allocations: 0 / 0.5758 GB, free: 5.887 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.142e-06/0.3731, allocations: 0 / 0.5758 GB, free: 5.887 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000386/0.3735, allocations: 459.7 kB / 0.5762 GB, free: 5.434 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000373/0.3739, allocations: 185.9 kB / 0.5764 GB, free: 5.211 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003011/0.3742, allocations: 0.669 MB / 0.5771 GB, free: 4.516 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.204e-05/0.3742, allocations: 0 / 0.5771 GB, free: 4.516 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.475e-05/0.3742, allocations: 7.438 kB / 0.5771 GB, free: 4.508 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3742, allocations: 0 / 0.5771 GB, free: 4.508 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01928/0.3935, allocations: 1.167 MB / 0.5782 GB, free: 3.484 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.7, allocations: 4.062 kB / 0.5782 GB, free: 3.48 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.618267418991309]