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.001312/0.001312, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001807/0.001807, allocations: 214.4 kB / 23.75 MB, free: 4.668 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.466/1.466, allocations: 230.6 MB / 257.5 MB, free: 8.016 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.2299/0.2299, allocations: 46.92 MB / 360.9 MB, free: 4.27 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.002338/0.002338, allocations: 67.91 kB / 0.4961 GB, free: 7.914 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3359/0.3383, allocations: 66.04 MB / 0.5606 GB, free: 4.484 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001607/0.3399, allocations: 485 kB / 0.5611 GB, free: 4.008 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003199/0.3431, allocations: 2.167 MB / 0.5632 GB, free: 1.824 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.584e-05/0.3431, allocations: 0 / 0.5632 GB, free: 1.824 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.733e-05/0.3431, allocations: 0 / 0.5632 GB, free: 1.824 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.678e-05/0.3431, allocations: 0 / 0.5632 GB, free: 1.824 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001205/0.3443, allocations: 406.7 kB / 0.5636 GB, free: 1.426 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.17e-05/0.3444, allocations: 8 kB / 0.5636 GB, free: 1.418 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.219e-05/0.3444, allocations: 0 / 0.5636 GB, free: 1.418 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.885e-05/0.3445, allocations: 4 kB / 0.5636 GB, free: 1.414 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02078/0.3652, allocations: 3.398 MB / 0.5669 GB, free: 14.65 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.187e-05/0.3653, allocations: 4 kB / 0.5669 GB, free: 14.64 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001059/0.3654, allocations: 4 kB / 0.5669 GB, free: 14.64 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 2.224e-05/0.3654, allocations: 0 / 0.5669 GB, free: 14.64 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.476e-05/0.3654, allocations: 0 / 0.5669 GB, free: 14.64 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001531/0.3656, allocations: 15.92 kB / 0.567 GB, free: 14.62 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3656, allocations: 0 / 0.567 GB, free: 14.62 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.086e-06/0.3656, allocations: 4 kB / 0.567 GB, free: 14.62 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.554e-06/0.3656, allocations: 3.938 kB / 0.567 GB, free: 14.62 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.0003493/0.3659, allocations: 234.4 kB / 0.5672 GB, free: 14.36 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.299e-05/0.366, allocations: 11.97 kB / 0.5672 GB, free: 14.35 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.103e-05/0.3661, allocations: 114 kB / 0.5673 GB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002232/0.3663, allocations: 88.2 kB / 0.5674 GB, free: 14.14 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001517/0.3664, allocations: 177.8 kB / 0.5676 GB, free: 13.94 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.774e-05/0.3665, allocations: 154.9 kB / 0.5677 GB, free: 13.79 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.362e-05/0.3666, allocations: 154.5 kB / 0.5679 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.796e-05/0.3667, allocations: 109 kB / 0.568 GB, free: 13.52 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.662e-05/0.3667, allocations: 75.28 kB / 0.568 GB, free: 13.45 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.959e-05/0.3668, allocations: 150.6 kB / 0.5682 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.12e-05/0.3669, allocations: 154.5 kB / 0.5683 GB, free: 13.15 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.232e-05/0.3669, allocations: 150.6 kB / 0.5685 GB, free: 13 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003605/0.3673, allocations: 421 kB / 0.5689 GB, free: 12.55 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001187/0.3674, allocations: 169.1 kB / 0.569 GB, free: 12.37 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.017e-05/0.3675, allocations: 80.14 kB / 0.5691 GB, free: 12.29 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.055e-05/0.3675, allocations: 79.28 kB / 0.5692 GB, free: 12.21 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.632e-05/0.3676, allocations: 121.8 kB / 0.5693 GB, free: 12.08 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 8.42e-07/0.3676, allocations: 0 / 0.5693 GB, free: 12.08 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 0.0001194/0.3677, allocations: 29.69 kB / 0.5693 GB, free: 12.05 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001339/0.3678, allocations: 178.1 kB / 0.5695 GB, free: 11.85 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001165/0.368, allocations: 93.86 kB / 0.5696 GB, free: 11.75 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.243e-05/0.368, allocations: 25.7 kB / 0.5696 GB, free: 11.71 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.505e-05/0.368, allocations: 80.14 kB / 0.5697 GB, free: 11.63 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.214e-06/0.368, allocations: 0 / 0.5697 GB, free: 11.63 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.266e-05/0.3681, allocations: 21.84 kB / 0.5697 GB, free: 11.61 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.3682, allocations: 310.8 kB / 0.57 GB, free: 11.29 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.471e-06/0.3682, allocations: 0 / 0.57 GB, free: 11.29 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.54e-05/0.3682, allocations: 17.64 kB / 0.57 GB, free: 11.27 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.288e-05/0.3683, allocations: 79.28 kB / 0.5701 GB, free: 11.19 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.851e-05/0.3683, allocations: 75.28 kB / 0.5702 GB, free: 11.12 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.341e-05/0.3684, allocations: 29.64 kB / 0.5702 GB, free: 11.08 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.326e-05/0.3684, allocations: 87.31 kB / 0.5703 GB, free: 11 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.91e-05/0.3685, allocations: 75.28 kB / 0.5703 GB, free: 10.92 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.939e-05/0.3686, allocations: 162.5 kB / 0.5705 GB, free: 10.76 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.869e-05/0.3686, allocations: 79.28 kB / 0.5706 GB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-05/0.3687, allocations: 158.5 kB / 0.5707 GB, free: 10.53 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001037/0.3688, allocations: 79.27 kB / 0.5708 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.477e-05/0.3688, allocations: 83.22 kB / 0.5709 GB, free: 10.37 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.0001476/0.3689, allocations: 276.2 kB / 0.5711 GB, free: 10.09 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.619e-05/0.369, allocations: 105 kB / 0.5712 GB, free: 9.977 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.678e-05/0.3691, allocations: 107.8 kB / 0.5713 GB, free: 9.863 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.377e-05/0.3692, allocations: 188.2 kB / 0.5715 GB, free: 9.672 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.834e-05/0.3693, allocations: 180.3 kB / 0.5717 GB, free: 9.488 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.551e-05/0.3693, allocations: 176.3 kB / 0.5719 GB, free: 9.309 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002682/0.3696, allocations: 384.2 kB / 0.5722 GB, free: 8.883 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.096e-05/0.3697, allocations: 105 kB / 0.5723 GB, free: 8.773 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.797e-05/0.3697, allocations: 104.9 kB / 0.5724 GB, free: 8.664 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000115/0.3698, allocations: 176.3 kB / 0.5726 GB, free: 8.484 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.897e-05/0.3699, allocations: 188.2 kB / 0.5728 GB, free: 8.293 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.334e-05/0.37, allocations: 176.3 kB / 0.573 GB, free: 8.113 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.993e-05/0.3701, allocations: 184.3 kB / 0.5731 GB, free: 7.926 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001748/0.3703, allocations: 308 kB / 0.5734 GB, free: 7.602 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.297e-05/0.3703, allocations: 112.9 kB / 0.5735 GB, free: 7.484 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.187e-05/0.3704, allocations: 188.3 kB / 0.5737 GB, free: 7.293 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.353e-05/0.3705, allocations: 101 kB / 0.5738 GB, free: 7.188 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.805e-05/0.3706, allocations: 184.2 kB / 0.574 GB, free: 7 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.48e-05/0.3706, allocations: 101 kB / 0.5741 GB, free: 6.895 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.751e-05/0.3707, allocations: 75.28 kB / 0.5741 GB, free: 6.82 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3707, allocations: 4.094 kB / 0.5742 GB, free: 6.816 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002696/0.3709, allocations: 4 kB / 0.5742 GB, free: 6.812 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.0004544/0.3714, allocations: 0.8008 MB / 0.5749 GB, free: 5.98 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 5.735e-05/0.3715, allocations: 4 kB / 0.5749 GB, free: 5.977 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.3715, allocations: 4 kB / 0.5749 GB, free: 5.973 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.393e-06/0.3715, allocations: 0 / 0.5749 GB, free: 5.973 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004059/0.3719, allocations: 459.7 kB / 0.5754 GB, free: 5.52 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004745/0.3723, allocations: 177.9 kB / 0.5756 GB, free: 5.305 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003556/0.3727, allocations: 0.6729 MB / 0.5762 GB, free: 4.605 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.39e-05/0.3727, allocations: 4 kB / 0.5762 GB, free: 4.602 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.979e-05/0.3728, allocations: 11.44 kB / 0.5762 GB, free: 4.59 MB / 414.1 MB Notification: Performance of SimCode: time 7.32e-07/0.3728, allocations: 0 / 0.5762 GB, free: 4.59 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02542/0.3982, allocations: 1.104 MB / 0.5773 GB, free: 3.609 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.18/11.57, allocations: 6.812 kB / 0.5773 GB, free: 3.605 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.374043552903458]