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.001449/0.001449, allocations: 107.2 kB / 20.44 MB, free: 1.207 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.001481/0.001481, allocations: 210.4 kB / 23.73 MB, free: 4.41 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.45/1.45, allocations: 230.6 MB / 257.5 MB, free: 7.816 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.2496/0.2496, allocations: 44.94 MB / 358.8 MB, free: 6.078 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",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.002137/0.002137, allocations: 71.89 kB / 0.493 GB, free: 10.59 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3146/0.3168, allocations: 65.48 MB / 0.5569 GB, free: 7.344 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001636/0.3184, allocations: 484.5 kB / 0.5574 GB, free: 6.988 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003274/0.3217, allocations: 2.064 MB / 0.5594 GB, free: 4.996 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.437e-05/0.3217, allocations: 0 / 0.5594 GB, free: 4.996 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.112e-05/0.3217, allocations: 0 / 0.5594 GB, free: 4.996 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.276e-05/0.3217, allocations: 0 / 0.5594 GB, free: 4.996 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001092/0.3228, allocations: 402.7 kB / 0.5598 GB, free: 4.602 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 3.754e-05/0.3229, allocations: 12 kB / 0.5598 GB, free: 4.59 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.941e-05/0.3229, allocations: 0 / 0.5598 GB, free: 4.59 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.507e-05/0.3229, allocations: 3.984 kB / 0.5598 GB, free: 4.586 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0206/0.3435, allocations: 3.382 MB / 0.5631 GB, free: 1.836 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.184e-05/0.3435, allocations: 4 kB / 0.5631 GB, free: 1.832 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001051/0.3436, allocations: 8 kB / 0.5631 GB, free: 1.824 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.523e-05/0.3436, allocations: 7.938 kB / 0.5631 GB, free: 1.816 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.244e-05/0.3437, allocations: 7.922 kB / 0.5632 GB, free: 1.809 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001582/0.3438, allocations: 7.984 kB / 0.5632 GB, free: 1.801 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.3438, allocations: 0 / 0.5632 GB, free: 1.801 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.456e-06/0.3439, allocations: 0 / 0.5632 GB, free: 1.801 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.564e-06/0.3439, allocations: 0 / 0.5632 GB, free: 1.801 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.0003701/0.3442, allocations: 246.4 kB / 0.5634 GB, free: 1.531 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.919e-05/0.3443, allocations: 8.031 kB / 0.5634 GB, free: 1.523 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.645e-05/0.3444, allocations: 106 kB / 0.5635 GB, free: 1.41 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002133/0.3446, allocations: 88.22 kB / 0.5636 GB, free: 1.324 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001553/0.3447, allocations: 185.8 kB / 0.5638 GB, free: 1.117 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.793e-05/0.3448, allocations: 158.9 kB / 0.5639 GB, free: 0.9609 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.726e-05/0.3449, allocations: 154.5 kB / 0.5641 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.851e-05/0.345, allocations: 105 kB / 0.5642 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.676e-05/0.345, allocations: 75.28 kB / 0.5642 GB, free: 0.625 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.447e-05/0.3451, allocations: 150.6 kB / 0.5644 GB, free: 488 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.134e-05/0.3452, allocations: 154.6 kB / 0.5645 GB, free: 332 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.128e-05/0.3453, allocations: 154.5 kB / 0.5647 GB, free: 176 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000365/0.3456, allocations: 421 kB / 0.5651 GB, free: 15.72 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001117/0.3457, allocations: 169.1 kB / 0.5652 GB, free: 15.54 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.841e-05/0.3458, allocations: 80.14 kB / 0.5653 GB, free: 15.46 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.369e-05/0.3458, allocations: 75.28 kB / 0.5654 GB, free: 15.39 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.308e-05/0.3459, allocations: 113.8 kB / 0.5655 GB, free: 15.27 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 9.62e-07/0.3459, allocations: 0 / 0.5655 GB, free: 15.27 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 8.497e-05/0.346, allocations: 29.64 kB / 0.5655 GB, free: 15.23 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001315/0.3461, allocations: 186.1 kB / 0.5657 GB, free: 15.02 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001124/0.3463, allocations: 89.86 kB / 0.5658 GB, free: 14.93 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.708e-05/0.3463, allocations: 25.7 kB / 0.5658 GB, free: 14.89 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.286e-05/0.3463, allocations: 84.27 kB / 0.5659 GB, free: 14.81 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.833e-06/0.3463, allocations: 0 / 0.5659 GB, free: 14.81 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.785e-05/0.3464, allocations: 17.66 kB / 0.5659 GB, free: 14.79 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001669/0.3465, allocations: 310.8 kB / 0.5662 GB, free: 14.47 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.881e-06/0.3465, allocations: 0 / 0.5662 GB, free: 14.47 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.864e-05/0.3466, allocations: 73.11 kB / 0.5663 GB, free: 14.38 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.201e-05/0.3466, allocations: 75.28 kB / 0.5663 GB, free: 14.31 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.512e-05/0.3467, allocations: 75.28 kB / 0.5664 GB, free: 14.23 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.999e-05/0.3467, allocations: 37.58 kB / 0.5665 GB, free: 14.19 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.822e-05/0.3468, allocations: 82.88 kB / 0.5665 GB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.9e-05/0.3468, allocations: 79.28 kB / 0.5666 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.194e-05/0.3469, allocations: 162.6 kB / 0.5668 GB, free: 13.88 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.317e-05/0.3469, allocations: 75.28 kB / 0.5668 GB, free: 13.8 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.012e-05/0.347, allocations: 158.5 kB / 0.567 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.448e-05/0.3471, allocations: 83.16 kB / 0.5671 GB, free: 13.56 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.599e-05/0.3471, allocations: 83.27 kB / 0.5671 GB, free: 13.48 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.0001508/0.3473, allocations: 264.3 kB / 0.5674 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.757e-05/0.3474, allocations: 108.9 kB / 0.5675 GB, free: 13.1 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.615e-05/0.3474, allocations: 107.8 kB / 0.5676 GB, free: 12.98 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.188e-05/0.3475, allocations: 180.2 kB / 0.5678 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001046/0.3476, allocations: 188.2 kB / 0.568 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.747e-05/0.3477, allocations: 180.3 kB / 0.5681 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002899/0.348, allocations: 380.2 kB / 0.5685 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.817e-05/0.348, allocations: 101 kB / 0.5686 GB, free: 11.9 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.356e-05/0.3481, allocations: 101 kB / 0.5687 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001044/0.3482, allocations: 188.2 kB / 0.5689 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.35e-05/0.3483, allocations: 180.3 kB / 0.569 GB, free: 11.42 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001041/0.3484, allocations: 180.2 kB / 0.5692 GB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.746e-05/0.3485, allocations: 184.2 kB / 0.5694 GB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002104/0.3487, allocations: 312.1 kB / 0.5697 GB, free: 10.72 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001056/0.3488, allocations: 101 kB / 0.5698 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001199/0.3489, allocations: 200.2 kB / 0.57 GB, free: 10.41 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001067/0.349, allocations: 101 kB / 0.5701 GB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001428/0.3492, allocations: 184.3 kB / 0.5702 GB, free: 10.12 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.384e-05/0.3492, allocations: 104.9 kB / 0.5703 GB, free: 10.01 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.057e-05/0.3493, allocations: 75.28 kB / 0.5704 GB, free: 9.934 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3493, allocations: 0 / 0.5704 GB, free: 9.934 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000279/0.3496, allocations: 4 kB / 0.5704 GB, free: 9.93 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.000539/0.3501, allocations: 0.8047 MB / 0.5712 GB, free: 9.094 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 4.897e-05/0.3502, allocations: 3.938 kB / 0.5712 GB, free: 9.09 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3502, allocations: 4.094 kB / 0.5712 GB, free: 9.086 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.222e-06/0.3502, allocations: 4 kB / 0.5712 GB, free: 9.082 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004243/0.3506, allocations: 455.7 kB / 0.5716 GB, free: 8.633 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004439/0.351, allocations: 181.9 kB / 0.5718 GB, free: 8.414 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.63e-05/0.3511, allocations: 55.36 kB / 0.5719 GB, free: 8.34 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.475e-05/0.3511, allocations: 0 / 0.5719 GB, free: 8.34 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.678e-05/0.3511, allocations: 7.438 kB / 0.5719 GB, free: 8.332 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.3511, allocations: 0 / 0.5719 GB, free: 8.332 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02765/0.3788, allocations: 1.556 MB / 0.5734 GB, free: 6.898 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.67, allocations: 10.41 kB / 0.5734 GB, free: 6.891 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.429968398064375]