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.001436/0.001436, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001453/0.001453, allocations: 203.4 kB / 23.73 MB, free: 4.379 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.454/1.454, allocations: 230.6 MB / 257.5 MB, free: 7.789 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.2294/0.2294, allocations: 46.96 MB / 360.9 MB, free: 4.02 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.001979/0.001979, allocations: 59.91 kB / 0.4961 GB, free: 7.723 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3867/0.3887, allocations: 66.04 MB / 0.5606 GB, free: 4.211 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.002383/0.3911, allocations: 488.2 kB / 0.561 GB, free: 3.734 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.005397/0.3965, allocations: 2.058 MB / 0.563 GB, free: 1.66 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.953e-05/0.3965, allocations: 4 kB / 0.563 GB, free: 1.656 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.433e-05/0.3965, allocations: 0 / 0.563 GB, free: 1.656 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.133e-05/0.3966, allocations: 3.938 kB / 0.5631 GB, free: 1.652 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001851/0.3984, allocations: 402.8 kB / 0.5634 GB, free: 1.258 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.914e-05/0.3985, allocations: 0 / 0.5634 GB, free: 1.258 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.178e-05/0.3985, allocations: 8 kB / 0.5634 GB, free: 1.25 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.181e-05/0.3985, allocations: 3.984 kB / 0.5634 GB, free: 1.246 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03655/0.4351, allocations: 3.394 MB / 0.5668 GB, free: 14.48 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 1.777e-05/0.4351, allocations: 0 / 0.5668 GB, free: 14.48 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001061/0.4352, allocations: 8 kB / 0.5668 GB, free: 14.48 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.41e-05/0.4352, allocations: 0 / 0.5668 GB, free: 14.48 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.749e-05/0.4352, allocations: 7.984 kB / 0.5668 GB, free: 14.47 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001687/0.4354, allocations: 7.984 kB / 0.5668 GB, free: 14.46 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.4354, allocations: 0 / 0.5668 GB, free: 14.46 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.4354, allocations: 4 kB / 0.5668 GB, free: 14.46 MB / 414.1 MB Notification: Performance of Transformations before backend: time 7.424e-06/0.4354, allocations: 0 / 0.5668 GB, free: 14.46 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.0003719/0.4358, allocations: 242.4 kB / 0.567 GB, free: 14.19 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.522e-05/0.4359, allocations: 8.031 kB / 0.567 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000141/0.436, allocations: 106 kB / 0.5671 GB, free: 14.07 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002726/0.4363, allocations: 88.2 kB / 0.5672 GB, free: 13.98 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001683/0.4364, allocations: 177.8 kB / 0.5674 GB, free: 13.79 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.876e-05/0.4365, allocations: 154.9 kB / 0.5675 GB, free: 13.63 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.964e-05/0.4366, allocations: 162.4 kB / 0.5677 GB, free: 13.47 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.646e-05/0.4367, allocations: 108.9 kB / 0.5678 GB, free: 13.36 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.114e-05/0.4367, allocations: 75.28 kB / 0.5679 GB, free: 13.29 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.533e-05/0.4368, allocations: 154.5 kB / 0.568 GB, free: 13.13 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.05e-05/0.4369, allocations: 150.6 kB / 0.5682 GB, free: 12.98 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.153e-05/0.437, allocations: 154.6 kB / 0.5683 GB, free: 12.83 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003983/0.4374, allocations: 417 kB / 0.5687 GB, free: 12.38 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001262/0.4375, allocations: 177 kB / 0.5689 GB, free: 12.2 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.997e-05/0.4376, allocations: 80.14 kB / 0.5689 GB, free: 12.12 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.627e-05/0.4376, allocations: 83.2 kB / 0.569 GB, free: 12.04 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.486e-05/0.4377, allocations: 109.8 kB / 0.5691 GB, free: 11.92 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 1.082e-06/0.4377, allocations: 0 / 0.5691 GB, free: 11.92 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 9.25e-05/0.4378, allocations: 33.7 kB / 0.5692 GB, free: 11.88 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000124/0.4379, allocations: 182.1 kB / 0.5693 GB, free: 11.68 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001208/0.438, allocations: 93.86 kB / 0.5694 GB, free: 11.57 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.962e-05/0.4381, allocations: 25.7 kB / 0.5694 GB, free: 11.54 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.563e-05/0.4381, allocations: 84.08 kB / 0.5695 GB, free: 11.46 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.854e-06/0.4381, allocations: 0 / 0.5695 GB, free: 11.46 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.815e-05/0.4381, allocations: 13.72 kB / 0.5695 GB, free: 11.44 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001784/0.4383, allocations: 314.8 kB / 0.5698 GB, free: 11.12 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.52e-06/0.4383, allocations: 0 / 0.5698 GB, free: 11.12 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.887e-05/0.4384, allocations: 65.12 kB / 0.5699 GB, free: 11.04 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.296e-05/0.4384, allocations: 79.44 kB / 0.57 GB, free: 10.96 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.931e-05/0.4385, allocations: 75.28 kB / 0.5701 GB, free: 10.89 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 8.514e-05/0.4386, allocations: 37.62 kB / 0.5701 GB, free: 10.84 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.14e-05/0.4386, allocations: 79.28 kB / 0.5702 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.493e-05/0.4387, allocations: 83.22 kB / 0.5702 GB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.966e-05/0.4387, allocations: 154.6 kB / 0.5704 GB, free: 10.53 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.342e-05/0.4388, allocations: 75.28 kB / 0.5705 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.574e-05/0.4389, allocations: 158.5 kB / 0.5706 GB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001279/0.439, allocations: 79.28 kB / 0.5707 GB, free: 10.22 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.518e-05/0.439, allocations: 83.2 kB / 0.5708 GB, free: 10.14 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.0001919/0.4392, allocations: 268.3 kB / 0.571 GB, free: 9.867 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.043e-05/0.4393, allocations: 101 kB / 0.5711 GB, free: 9.762 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.171e-05/0.4394, allocations: 115.7 kB / 0.5712 GB, free: 9.641 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.975e-05/0.4395, allocations: 180.3 kB / 0.5714 GB, free: 9.457 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001053/0.4396, allocations: 180.2 kB / 0.5716 GB, free: 9.273 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001942/0.4398, allocations: 184.2 kB / 0.5717 GB, free: 9.086 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003193/0.4401, allocations: 368.2 kB / 0.5721 GB, free: 8.676 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.009e-05/0.4402, allocations: 112.9 kB / 0.5722 GB, free: 8.559 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.678e-05/0.4402, allocations: 105 kB / 0.5723 GB, free: 8.449 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.09e-05/0.4403, allocations: 176.3 kB / 0.5725 GB, free: 8.27 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.573e-05/0.4404, allocations: 192.1 kB / 0.5727 GB, free: 8.074 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.262e-05/0.4405, allocations: 176.3 kB / 0.5728 GB, free: 7.895 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.603e-05/0.4406, allocations: 184.2 kB / 0.573 GB, free: 7.707 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002018/0.4408, allocations: 316 kB / 0.5733 GB, free: 7.375 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.708e-05/0.4409, allocations: 104.9 kB / 0.5734 GB, free: 7.266 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001069/0.441, allocations: 184.3 kB / 0.5736 GB, free: 7.078 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001379/0.4411, allocations: 108.9 kB / 0.5737 GB, free: 6.965 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001996/0.4413, allocations: 180.2 kB / 0.5739 GB, free: 6.781 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.523e-05/0.4414, allocations: 109 kB / 0.574 GB, free: 6.668 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.777e-05/0.4414, allocations: 75.28 kB / 0.574 GB, free: 6.594 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4414, allocations: 8.031 kB / 0.574 GB, free: 6.586 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002503/0.4417, allocations: 4 kB / 0.574 GB, free: 6.582 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.0005171/0.4422, allocations: 0.8009 MB / 0.5748 GB, free: 5.75 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 5.647e-05/0.4422, allocations: 0 / 0.5748 GB, free: 5.75 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.522e-06/0.4422, allocations: 0 / 0.5748 GB, free: 5.75 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.378e-06/0.4423, allocations: 3.938 kB / 0.5748 GB, free: 5.746 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004305/0.4427, allocations: 459.7 kB / 0.5753 GB, free: 5.293 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004289/0.4431, allocations: 177.9 kB / 0.5754 GB, free: 5.078 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.659e-05/0.4432, allocations: 59.34 kB / 0.5755 GB, free: 5 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.229e-05/0.4432, allocations: 4 kB / 0.5755 GB, free: 4.996 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.678e-05/0.4432, allocations: 7.438 kB / 0.5755 GB, free: 4.988 MB / 414.1 MB Notification: Performance of SimCode: time 3.81e-07/0.4432, allocations: 0 / 0.5755 GB, free: 4.988 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02689/0.4701, allocations: 1.57 MB / 0.577 GB, free: 3.543 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.98/11.45, allocations: 10.41 kB / 0.577 GB, free: 3.535 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.194232312001986]