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.001749/0.001749, allocations: 108.3 kB / 19.7 MB, free: 1.918 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.001594/0.001594, allocations: 217.1 kB / 22.99 MB, free: 4.977 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.397/1.397, allocations: 207.7 MB / 233.8 MB, free: 9.801 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.2117/0.2117, allocations: 44.26 MB / 330.4 MB, free: 9.316 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestExamplesCalculator,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Utilities_TestExamplesCalculator",fmuType="me",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.002276/0.002276, allocations: 76.45 kB / 467.5 MB, free: 4.391 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.114/0.1163, allocations: 61.05 MB / 0.5161 GB, free: 7.215 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestExamplesCalculator): time 0.001714/0.118, allocations: 0.4951 MB / 0.5166 GB, free: 6.719 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003197/0.1212, allocations: 1.991 MB / 0.5186 GB, free: 4.707 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.206e-05/0.1213, allocations: 4 kB / 0.5186 GB, free: 4.703 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.826e-05/0.1213, allocations: 0 / 0.5186 GB, free: 4.703 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.304e-05/0.1213, allocations: 3.938 kB / 0.5186 GB, free: 4.699 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001259/0.1226, allocations: 370.8 kB / 0.5189 GB, free: 4.336 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.322e-05/0.1226, allocations: 7.938 kB / 0.5189 GB, free: 4.328 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.231e-05/0.1226, allocations: 0 / 0.5189 GB, free: 4.328 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.871e-05/0.1227, allocations: 4 kB / 0.5189 GB, free: 4.324 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02014/0.1428, allocations: 3.386 MB / 0.5222 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.422e-05/0.1428, allocations: 0 / 0.5222 GB, free: 0.9922 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001139/0.1429, allocations: 7.984 kB / 0.5222 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.335e-05/0.1429, allocations: 0 / 0.5222 GB, free: 0.9844 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.447e-05/0.143, allocations: 7.938 kB / 0.5223 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001512/0.1431, allocations: 8 kB / 0.5223 GB, free: 0.9688 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.872e-06/0.1431, allocations: 11.94 kB / 0.5223 GB, free: 0.957 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.005e-06/0.1431, allocations: 0 / 0.5223 GB, free: 0.957 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.1431, allocations: 0 / 0.5223 GB, free: 0.957 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.0003012/0.1434, allocations: 238.4 kB / 0.5225 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.1435, allocations: 12.03 kB / 0.5225 GB, free: 0.6836 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.3e-05/0.1436, allocations: 106 kB / 0.5226 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001996/0.1438, allocations: 84.2 kB / 0.5227 GB, free: 500 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001397/0.1439, allocations: 185.8 kB / 0.5229 GB, free: 288 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.517e-05/0.144, allocations: 150.9 kB / 0.523 GB, free: 136 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.338e-05/0.1441, allocations: 154.5 kB / 0.5232 GB, free: 15.98 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.254e-05/0.1441, allocations: 109 kB / 0.5233 GB, free: 15.87 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.542e-05/0.1442, allocations: 75.28 kB / 0.5233 GB, free: 15.79 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.538e-05/0.1442, allocations: 154.5 kB / 0.5235 GB, free: 15.64 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.897e-05/0.1443, allocations: 150.6 kB / 0.5236 GB, free: 15.49 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.318e-05/0.1444, allocations: 150.6 kB / 0.5238 GB, free: 15.34 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003129/0.1447, allocations: 421 kB / 0.5242 GB, free: 14.89 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001083/0.1448, allocations: 173.1 kB / 0.5243 GB, free: 14.71 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.056e-05/0.1448, allocations: 84.08 kB / 0.5244 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.99e-05/0.1449, allocations: 75.28 kB / 0.5245 GB, free: 14.55 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.973e-05/0.1449, allocations: 109.8 kB / 0.5246 GB, free: 14.43 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 1.052e-06/0.1449, allocations: 4 kB / 0.5246 GB, free: 14.43 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 7.984e-05/0.145, allocations: 29.7 kB / 0.5246 GB, free: 14.39 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001162/0.1451, allocations: 178.1 kB / 0.5248 GB, free: 14.2 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.653e-05/0.1452, allocations: 93.86 kB / 0.5249 GB, free: 14.09 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.254e-05/0.1452, allocations: 25.7 kB / 0.5249 GB, free: 14.06 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.099e-05/0.1453, allocations: 84.12 kB / 0.525 GB, free: 13.98 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.333e-06/0.1453, allocations: 0 / 0.525 GB, free: 13.98 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.794e-05/0.1453, allocations: 21.66 kB / 0.525 GB, free: 13.95 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.1455, allocations: 310.8 kB / 0.5253 GB, free: 13.64 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.687e-06/0.1455, allocations: 0 / 0.5253 GB, free: 13.64 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.954e-05/0.1455, allocations: 73.19 kB / 0.5254 GB, free: 13.55 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.448e-05/0.1456, allocations: 75.28 kB / 0.5255 GB, free: 13.47 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.061e-05/0.1456, allocations: 75.28 kB / 0.5255 GB, free: 13.4 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.634e-05/0.1456, allocations: 33.64 kB / 0.5256 GB, free: 13.36 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.252e-05/0.1457, allocations: 79.28 kB / 0.5256 GB, free: 13.28 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.89e-05/0.1457, allocations: 91.12 kB / 0.5257 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.122e-05/0.1458, allocations: 154.6 kB / 0.5259 GB, free: 13.04 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.705e-05/0.1458, allocations: 79.28 kB / 0.5259 GB, free: 12.96 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.74e-05/0.1459, allocations: 154.5 kB / 0.5261 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000101/0.146, allocations: 87.33 kB / 0.5262 GB, free: 12.72 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.923e-05/0.1461, allocations: 83.25 kB / 0.5263 GB, free: 12.64 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.0001454/0.1462, allocations: 264.3 kB / 0.5265 GB, free: 12.37 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.708e-05/0.1463, allocations: 105 kB / 0.5266 GB, free: 12.26 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.845e-05/0.1463, allocations: 108 kB / 0.5267 GB, free: 12.15 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.853e-05/0.1464, allocations: 184.2 kB / 0.5269 GB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.201e-05/0.1465, allocations: 176.3 kB / 0.527 GB, free: 11.79 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.418e-05/0.1466, allocations: 180.2 kB / 0.5272 GB, free: 11.6 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00027/0.1469, allocations: 380.2 kB / 0.5276 GB, free: 11.18 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.761e-05/0.1469, allocations: 101 kB / 0.5277 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.876e-05/0.1469, allocations: 109.2 kB / 0.5278 GB, free: 10.96 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.64e-05/0.147, allocations: 180.3 kB / 0.528 GB, free: 10.78 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.406e-05/0.1471, allocations: 184.2 kB / 0.5281 GB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.147e-05/0.1472, allocations: 184.3 kB / 0.5283 GB, free: 10.4 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-05/0.1473, allocations: 176.3 kB / 0.5285 GB, free: 10.22 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001765/0.1475, allocations: 307.7 kB / 0.5288 GB, free: 9.898 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.741e-05/0.1475, allocations: 120.9 kB / 0.5289 GB, free: 9.773 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.303e-05/0.1476, allocations: 180.3 kB / 0.5291 GB, free: 9.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001009/0.1477, allocations: 105 kB / 0.5292 GB, free: 9.48 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.236e-05/0.1478, allocations: 180.2 kB / 0.5293 GB, free: 9.297 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.679e-05/0.1479, allocations: 101 kB / 0.5294 GB, free: 9.191 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.444e-05/0.1479, allocations: 87.27 kB / 0.5295 GB, free: 9.105 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1479, allocations: 0 / 0.5295 GB, free: 9.105 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002545/0.1482, allocations: 0 / 0.5295 GB, free: 9.105 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.0004873/0.1486, allocations: 0.8048 MB / 0.5303 GB, free: 8.27 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 3.591e-05/0.1487, allocations: 0 / 0.5303 GB, free: 8.27 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.1487, allocations: 0 / 0.5303 GB, free: 8.27 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.333e-06/0.1487, allocations: 0 / 0.5303 GB, free: 8.27 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003948/0.1491, allocations: 475.5 kB / 0.5307 GB, free: 7.801 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003382/0.1494, allocations: 181.8 kB / 0.5309 GB, free: 7.582 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.551e-05/0.1495, allocations: 51.45 kB / 0.531 GB, free: 7.512 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.999e-05/0.1495, allocations: 11.94 kB / 0.531 GB, free: 7.5 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.458e-05/0.1495, allocations: 7.438 kB / 0.531 GB, free: 7.492 MB / 414.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1495, allocations: 0 / 0.531 GB, free: 7.492 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02572/0.1752, allocations: 1.545 MB / 0.5325 GB, free: 5.906 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.4, allocations: 3.984 kB / 0.5325 GB, free: 5.902 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: 14.266144793014973]