Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001804/0.001804, 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 trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002183/0.002183, allocations: 210.2 kB / 23.73 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.444/1.444, allocations: 230.5 MB / 257.4 MB, free: 7.777 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2347/0.2347, allocations: 46.95 MB / 360.8 MB, free: 3.934 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002606/0.002606, allocations: 79.88 kB / 0.4961 GB, free: 7.574 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3413/0.3439, allocations: 66.08 MB / 0.5607 GB, free: 4.039 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.00199/0.3459, allocations: 485.1 kB / 0.5611 GB, free: 3.566 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003737/0.3496, allocations: 2.069 MB / 0.5632 GB, free: 1.48 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.93e-05/0.3496, allocations: 4 kB / 0.5632 GB, free: 1.477 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.605e-05/0.3496, allocations: 0 / 0.5632 GB, free: 1.477 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.997e-05/0.3497, allocations: 0 / 0.5632 GB, free: 1.477 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001461/0.3511, allocations: 398.7 kB / 0.5635 GB, free: 1.086 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.928e-05/0.3512, allocations: 8 kB / 0.5635 GB, free: 1.078 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.159e-05/0.3512, allocations: 0 / 0.5635 GB, free: 1.078 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.074e-05/0.3512, allocations: 11.92 kB / 0.5636 GB, free: 1.066 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02069/0.3719, allocations: 3.38 MB / 0.5669 GB, free: 14.31 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.874e-05/0.3719, allocations: 0 / 0.5669 GB, free: 14.31 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.873e-05/0.372, allocations: 4 kB / 0.5669 GB, free: 14.31 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.608e-05/0.3721, allocations: 3.984 kB / 0.5669 GB, free: 14.3 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.578e-05/0.3721, allocations: 0 / 0.5669 GB, free: 14.3 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001738/0.3723, allocations: 4 kB / 0.5669 GB, free: 14.3 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.347e-05/0.3723, allocations: 4 kB / 0.5669 GB, free: 14.3 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.486e-06/0.3723, allocations: 8 kB / 0.5669 GB, free: 14.29 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.564e-05/0.3723, allocations: 0 / 0.5669 GB, free: 14.29 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.0004122/0.3727, allocations: 246.3 kB / 0.5671 GB, free: 14.02 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.215e-05/0.3728, allocations: 8.031 kB / 0.5671 GB, free: 14.01 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001121/0.3729, allocations: 110 kB / 0.5672 GB, free: 13.89 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002641/0.3731, allocations: 88.19 kB / 0.5673 GB, free: 13.81 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001879/0.3733, allocations: 185.8 kB / 0.5675 GB, free: 13.6 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.98e-05/0.3734, allocations: 150.9 kB / 0.5676 GB, free: 13.45 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.169e-05/0.3735, allocations: 150.9 kB / 0.5678 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000108/0.3736, allocations: 109.1 kB / 0.5679 GB, free: 13.19 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.373e-05/0.3736, allocations: 79.28 kB / 0.568 GB, free: 13.11 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001001/0.3737, allocations: 150.6 kB / 0.5681 GB, free: 12.96 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.292e-05/0.3738, allocations: 150.6 kB / 0.5682 GB, free: 12.82 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.441e-05/0.3739, allocations: 154.5 kB / 0.5684 GB, free: 12.66 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003513/0.3743, allocations: 421 kB / 0.5688 GB, free: 12.21 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001169/0.3744, allocations: 165.1 kB / 0.5689 GB, free: 12.04 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.445e-05/0.3744, allocations: 80.14 kB / 0.569 GB, free: 11.96 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.377e-05/0.3745, allocations: 79.28 kB / 0.5691 GB, free: 11.88 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001041/0.3746, allocations: 117.7 kB / 0.5692 GB, free: 11.75 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 9.32e-07/0.3746, allocations: 0 / 0.5692 GB, free: 11.75 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 0.0001203/0.3747, allocations: 33.7 kB / 0.5692 GB, free: 11.71 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001661/0.3749, allocations: 178.1 kB / 0.5694 GB, free: 11.52 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001308/0.375, allocations: 93.84 kB / 0.5695 GB, free: 11.41 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.054e-05/0.375, allocations: 25.7 kB / 0.5695 GB, free: 11.38 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.56e-05/0.3751, allocations: 88.08 kB / 0.5696 GB, free: 11.29 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.653e-06/0.3751, allocations: 0 / 0.5696 GB, free: 11.29 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.981e-05/0.3751, allocations: 13.72 kB / 0.5696 GB, free: 11.27 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.3753, allocations: 314.8 kB / 0.5699 GB, free: 10.96 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.55e-06/0.3753, allocations: 0 / 0.5699 GB, free: 10.96 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.613e-05/0.3754, allocations: 61.12 kB / 0.57 GB, free: 10.88 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.875e-05/0.3754, allocations: 87.38 kB / 0.5701 GB, free: 10.79 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-05/0.3754, allocations: 75.28 kB / 0.5701 GB, free: 10.72 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.736e-05/0.3755, allocations: 33.62 kB / 0.5702 GB, free: 10.68 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.126e-05/0.3756, allocations: 83.28 kB / 0.5702 GB, free: 10.6 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.585e-05/0.3756, allocations: 75.28 kB / 0.5703 GB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.247e-05/0.3757, allocations: 158.5 kB / 0.5705 GB, free: 10.37 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.375e-05/0.3757, allocations: 83.28 kB / 0.5706 GB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.951e-05/0.3758, allocations: 158.4 kB / 0.5707 GB, free: 10.13 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.215e-05/0.3759, allocations: 75.28 kB / 0.5708 GB, free: 10.05 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.961e-05/0.3759, allocations: 79.28 kB / 0.5709 GB, free: 9.977 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.0001717/0.3761, allocations: 264.4 kB / 0.5711 GB, free: 9.707 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.583e-05/0.3762, allocations: 112.9 kB / 0.5712 GB, free: 9.59 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.867e-05/0.3763, allocations: 111.8 kB / 0.5713 GB, free: 9.473 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001232/0.3764, allocations: 188.2 kB / 0.5715 GB, free: 9.281 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001135/0.3765, allocations: 176.3 kB / 0.5717 GB, free: 9.102 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001117/0.3766, allocations: 180.2 kB / 0.5718 GB, free: 8.918 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002899/0.3769, allocations: 376.2 kB / 0.5722 GB, free: 8.5 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.893e-05/0.377, allocations: 101 kB / 0.5723 GB, free: 8.395 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.029e-05/0.377, allocations: 108.9 kB / 0.5724 GB, free: 8.281 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000102/0.3771, allocations: 184.2 kB / 0.5726 GB, free: 8.094 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.969e-05/0.3772, allocations: 180.3 kB / 0.5727 GB, free: 7.91 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.343e-05/0.3773, allocations: 184.2 kB / 0.5729 GB, free: 7.723 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001067/0.3774, allocations: 180.3 kB / 0.5731 GB, free: 7.539 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002266/0.3777, allocations: 308.1 kB / 0.5734 GB, free: 7.215 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.6e-05/0.3777, allocations: 112.9 kB / 0.5735 GB, free: 7.098 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000113/0.3778, allocations: 184.3 kB / 0.5737 GB, free: 6.91 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001071/0.378, allocations: 105 kB / 0.5738 GB, free: 6.801 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001113/0.3781, allocations: 184.2 kB / 0.5739 GB, free: 6.613 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.402e-05/0.3781, allocations: 101 kB / 0.574 GB, free: 6.508 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.224e-05/0.3782, allocations: 79.28 kB / 0.5741 GB, free: 6.43 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3782, allocations: 4.094 kB / 0.5741 GB, free: 6.426 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002865/0.3785, allocations: 0 / 0.5741 GB, free: 6.426 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.0005755/0.3791, allocations: 0.8009 MB / 0.5749 GB, free: 5.594 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 6.599e-05/0.3791, allocations: 7.922 kB / 0.5749 GB, free: 5.586 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.3791, allocations: 4 kB / 0.5749 GB, free: 5.582 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 2.535e-06/0.3791, allocations: 0 / 0.5749 GB, free: 5.582 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004538/0.3796, allocations: 459.7 kB / 0.5754 GB, free: 5.129 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000437/0.38, allocations: 177.9 kB / 0.5755 GB, free: 4.914 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.254e-05/0.3801, allocations: 55.36 kB / 0.5756 GB, free: 4.84 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.27e-05/0.3801, allocations: 7.984 kB / 0.5756 GB, free: 4.832 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.707e-05/0.3801, allocations: 7.438 kB / 0.5756 GB, free: 4.824 MB / 414.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3801, allocations: 0 / 0.5756 GB, free: 4.824 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0298/0.4099, allocations: 1.561 MB / 0.5771 GB, free: 3.367 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11/11.41, allocations: 4.062 kB / 0.5771 GB, free: 3.363 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Utilities_TestExamplesCalculator_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Utilities_TestExamplesCalculator.fmu > ModelicaTest_trunk_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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.208680676296353]