Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.001386/0.001386, allocations: 109 kB / 20.48 MB, free: 1.477 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.001475/0.001475, allocations: 207.6 kB / 23.78 MB, free: 4.688 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.433/1.433, allocations: 207.6 MB / 234.6 MB, free: 9.984 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2177/0.2177, allocations: 44.24 MB / 331.1 MB, free: 9.516 MB / 270.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 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.00306/0.00306, allocations: 70.25 kB / 468.3 MB, free: 4.531 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1512/0.1543, allocations: 61.04 MB / 0.5169 GB, free: 7.352 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.002104/0.1564, allocations: 0.4951 MB / 0.5174 GB, free: 6.855 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004398/0.1608, allocations: 2.08 MB / 0.5194 GB, free: 4.754 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.446e-05/0.1608, allocations: 4 kB / 0.5194 GB, free: 4.75 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.9e-05/0.1608, allocations: 0 / 0.5194 GB, free: 4.75 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.134e-05/0.1609, allocations: 0 / 0.5194 GB, free: 4.75 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001581/0.1625, allocations: 378.8 kB / 0.5198 GB, free: 4.379 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.756e-05/0.1625, allocations: 4 kB / 0.5198 GB, free: 4.375 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.201e-05/0.1625, allocations: 0 / 0.5198 GB, free: 4.375 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.571e-05/0.1626, allocations: 3.938 kB / 0.5198 GB, free: 4.371 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02879/0.1913, allocations: 3.397 MB / 0.5231 GB, free: 1.031 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.3e-05/0.1914, allocations: 0 / 0.5231 GB, free: 1.031 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00011/0.1915, allocations: 4 kB / 0.5231 GB, free: 1.027 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.262e-05/0.1915, allocations: 0 / 0.5231 GB, free: 1.027 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.467e-05/0.1915, allocations: 0 / 0.5231 GB, free: 1.027 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001565/0.1917, allocations: 11.98 kB / 0.5231 GB, free: 1.016 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.1917, allocations: 0 / 0.5231 GB, free: 1.016 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1917, allocations: 4 kB / 0.5231 GB, free: 1.012 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.1917, allocations: 4 kB / 0.5231 GB, free: 1.008 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.0003407/0.192, allocations: 234.4 kB / 0.5233 GB, free: 0.75 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.916e-05/0.1921, allocations: 8.031 kB / 0.5233 GB, free: 0.7422 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.97e-05/0.1921, allocations: 79.47 kB / 0.5234 GB, free: 0.6641 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.834e-05/0.1922, allocations: 110 kB / 0.5235 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002216/0.1924, allocations: 84.2 kB / 0.5236 GB, free: 476 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001493/0.1926, allocations: 185.8 kB / 0.5238 GB, free: 264 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.493e-05/0.1926, allocations: 158.7 kB / 0.5239 GB, free: 104 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.643e-05/0.1927, allocations: 150.6 kB / 0.5241 GB, free: 15.95 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.822e-05/0.1928, allocations: 108.9 kB / 0.5242 GB, free: 15.84 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.412e-05/0.1929, allocations: 75.28 kB / 0.5243 GB, free: 15.77 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.001e-05/0.1929, allocations: 162.5 kB / 0.5244 GB, free: 15.61 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.423e-05/0.193, allocations: 154.5 kB / 0.5246 GB, free: 15.45 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.339e-05/0.1931, allocations: 150.6 kB / 0.5247 GB, free: 15.3 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003214/0.1934, allocations: 413 kB / 0.5251 GB, free: 14.86 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001129/0.1935, allocations: 181 kB / 0.5253 GB, free: 14.67 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.164e-05/0.1936, allocations: 80.14 kB / 0.5253 GB, free: 14.59 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.943e-05/0.1936, allocations: 75.28 kB / 0.5254 GB, free: 14.52 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.947e-05/0.1937, allocations: 109.8 kB / 0.5255 GB, free: 14.4 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 1.052e-06/0.1937, allocations: 0 / 0.5255 GB, free: 14.4 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 0.0001034/0.1938, allocations: 29.69 kB / 0.5256 GB, free: 14.36 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000119/0.1939, allocations: 186 kB / 0.5257 GB, free: 14.16 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001327/0.1941, allocations: 97.86 kB / 0.5258 GB, free: 14.05 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.921e-05/0.1941, allocations: 25.7 kB / 0.5258 GB, free: 14.02 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.973e-05/0.1941, allocations: 80.14 kB / 0.5259 GB, free: 13.94 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.663e-06/0.1941, allocations: 0 / 0.5259 GB, free: 13.94 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.957e-05/0.1942, allocations: 13.72 kB / 0.5259 GB, free: 13.92 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001684/0.1943, allocations: 310.8 kB / 0.5262 GB, free: 13.61 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.959e-06/0.1943, allocations: 0 / 0.5262 GB, free: 13.61 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.698e-05/0.1944, allocations: 13.84 kB / 0.5262 GB, free: 13.59 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.023e-05/0.1944, allocations: 83.22 kB / 0.5263 GB, free: 13.5 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.728e-05/0.1944, allocations: 83.2 kB / 0.5264 GB, free: 13.42 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.741e-05/0.1945, allocations: 25.7 kB / 0.5264 GB, free: 13.39 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.709e-05/0.1946, allocations: 87.28 kB / 0.5265 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.973e-05/0.1946, allocations: 79.22 kB / 0.5266 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.414e-05/0.1947, allocations: 154.6 kB / 0.5267 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.806e-05/0.1947, allocations: 79.22 kB / 0.5268 GB, free: 13 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001043/0.1948, allocations: 158.6 kB / 0.527 GB, free: 12.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000112/0.1949, allocations: 79.28 kB / 0.527 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.43e-05/0.195, allocations: 83.2 kB / 0.5271 GB, free: 12.68 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.0001696/0.1952, allocations: 268.3 kB / 0.5274 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.861e-05/0.1952, allocations: 105 kB / 0.5275 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.364e-05/0.1953, allocations: 107.9 kB / 0.5276 GB, free: 12.19 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.364e-05/0.1954, allocations: 180.3 kB / 0.5277 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-05/0.1955, allocations: 180.2 kB / 0.5279 GB, free: 11.82 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.617e-05/0.1956, allocations: 180.2 kB / 0.5281 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002822/0.1958, allocations: 380.2 kB / 0.5285 GB, free: 11.21 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.487e-05/0.1959, allocations: 104.9 kB / 0.5286 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.548e-05/0.1959, allocations: 109.2 kB / 0.5287 GB, free: 10.99 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.696e-05/0.196, allocations: 180.2 kB / 0.5288 GB, free: 10.81 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001627/0.1962, allocations: 184.3 kB / 0.529 GB, free: 10.62 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001084/0.1963, allocations: 180.3 kB / 0.5292 GB, free: 10.44 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.297e-05/0.1964, allocations: 184.2 kB / 0.5294 GB, free: 10.25 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001743/0.1966, allocations: 315.7 kB / 0.5297 GB, free: 9.918 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.865e-05/0.1966, allocations: 112.9 kB / 0.5298 GB, free: 9.801 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.49e-05/0.1967, allocations: 176.3 kB / 0.5299 GB, free: 9.621 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001161/0.1968, allocations: 112.9 kB / 0.53 GB, free: 9.504 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.437e-05/0.1969, allocations: 180.3 kB / 0.5302 GB, free: 9.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.502e-05/0.197, allocations: 104.9 kB / 0.5303 GB, free: 9.211 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.415e-05/0.197, allocations: 79.28 kB / 0.5304 GB, free: 9.133 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.197, allocations: 0 / 0.5304 GB, free: 9.133 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000278/0.1973, allocations: 4 kB / 0.5304 GB, free: 9.129 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.0004875/0.1978, allocations: 0.801 MB / 0.5312 GB, free: 8.297 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 5.186e-05/0.1978, allocations: 4 kB / 0.5312 GB, free: 8.293 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.1978, allocations: 3.938 kB / 0.5312 GB, free: 8.289 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.212e-06/0.1978, allocations: 0 / 0.5312 GB, free: 8.289 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004122/0.1983, allocations: 463.6 kB / 0.5316 GB, free: 7.832 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004019/0.1987, allocations: 185.8 kB / 0.5318 GB, free: 7.609 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003343/0.199, allocations: 0.6767 MB / 0.5325 GB, free: 6.906 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 2.439e-05/0.199, allocations: 0 / 0.5325 GB, free: 6.906 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.759e-05/0.199, allocations: 7.438 kB / 0.5325 GB, free: 6.898 MB / 414.1 MB Notification: Performance of SimCode: time 4.81e-07/0.199, allocations: 0 / 0.5325 GB, free: 6.898 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02073/0.2198, allocations: 1.137 MB / 0.5336 GB, free: 5.727 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.74/11.96, allocations: 8.047 kB / 0.5336 GB, free: 5.719 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Utilities_TestExamplesCalculator_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Utilities_TestExamplesCalculator.fmu > ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Utilities.TestExamplesCalculator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Utilities/TestExamplesCalculator/TestExamplesCalculator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_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: 15.019678042968735]