Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.001893/0.001893, allocations: 101.9 kB / 20.48 MB, free: 1.383 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.002166/0.002166, allocations: 212.6 kB / 23.77 MB, free: 4.551 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.518/1.518, allocations: 207.7 MB / 234.6 MB, free: 9.793 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.2241/0.2241, allocations: 44.26 MB / 331.1 MB, free: 9.324 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.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions2",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.Directions2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions2",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.002214/0.002214, allocations: 73.61 kB / 468.3 MB, free: 4.383 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1097, allocations: 61.05 MB / 0.5169 GB, free: 7.203 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.003979/0.1137, allocations: 2.629 MB / 0.5195 GB, free: 4.555 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001198/0.1149, allocations: 0.7176 MB / 0.5202 GB, free: 3.828 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001431/0.115, allocations: 11.94 kB / 0.5202 GB, free: 3.816 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001785/0.1152, allocations: 59.44 kB / 0.5202 GB, free: 3.758 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002456/0.1154, allocations: 126.9 kB / 0.5204 GB, free: 3.633 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002525/0.1157, allocations: 91.83 kB / 0.5205 GB, free: 3.543 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004728/0.1162, allocations: 430 kB / 0.5209 GB, free: 3.121 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002212/0.1164, allocations: 114.2 kB / 0.521 GB, free: 3.012 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002302/0.1166, allocations: 163.4 kB / 0.5211 GB, free: 2.852 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002467/0.1169, allocations: 179.2 kB / 0.5213 GB, free: 2.676 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.148e-05/0.1169, allocations: 40 kB / 0.5213 GB, free: 2.637 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.017e-05/0.117, allocations: 32 kB / 0.5214 GB, free: 2.605 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.344e-05/0.1171, allocations: 79.69 kB / 0.5214 GB, free: 2.527 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001856/0.1173, allocations: 163.3 kB / 0.5216 GB, free: 2.367 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005009/0.1178, allocations: 434.2 kB / 0.522 GB, free: 1.941 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.1178, allocations: 0 / 0.522 GB, free: 1.941 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1178, allocations: 0 / 0.522 GB, free: 1.941 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.137e-06/0.1178, allocations: 0 / 0.522 GB, free: 1.941 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001073/0.1188, allocations: 0.5833 MB / 0.5226 GB, free: 1.328 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/0.1189, allocations: 12.03 kB / 0.5226 GB, free: 1.316 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.774e-05/0.1189, allocations: 9.188 kB / 0.5226 GB, free: 1.305 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.252e-05/0.119, allocations: 78.66 kB / 0.5227 GB, free: 1.219 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.784e-05/0.1191, allocations: 44.7 kB / 0.5227 GB, free: 1.176 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003949/0.1195, allocations: 210.8 kB / 0.5229 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.609e-05/0.1195, allocations: 25.38 kB / 0.5229 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.095e-05/0.1196, allocations: 56.25 kB / 0.523 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006839/0.1203, allocations: 398 kB / 0.5234 GB, free: 452 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.903e-05/0.1203, allocations: 7.938 kB / 0.5234 GB, free: 444 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.689e-05/0.1203, allocations: 16 kB / 0.5234 GB, free: 428 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.232e-05/0.1203, allocations: 12 kB / 0.5234 GB, free: 416 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004415/0.1208, allocations: 219.7 kB / 0.5236 GB, free: 196 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002404/0.1232, allocations: 1.605 MB / 0.5252 GB, free: 14.48 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004624/0.1236, allocations: 254.3 kB / 0.5254 GB, free: 14.17 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001715/0.1238, allocations: 86.08 kB / 0.5255 GB, free: 14.06 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.6e-05/0.1238, allocations: 7.984 kB / 0.5255 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.574e-05/0.1239, allocations: 46.5 kB / 0.5256 GB, free: 14 MB / 414.1 MB Notification: Performance of pre-optimization done (n=26): time 1.933e-06/0.1239, allocations: 0 / 0.5256 GB, free: 14 MB / 414.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007086/0.1246, allocations: 261.2 kB / 0.5258 GB, free: 13.74 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001296/0.1247, allocations: 213.6 kB / 0.526 GB, free: 13.48 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000313/0.125, allocations: 276.1 kB / 0.5263 GB, free: 13.21 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.618e-05/0.1251, allocations: 29.7 kB / 0.5263 GB, free: 13.17 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001857/0.1252, allocations: 252 kB / 0.5266 GB, free: 12.92 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000102/0.1253, allocations: 119 kB / 0.5267 GB, free: 12.8 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001443/0.1255, allocations: 98.67 kB / 0.5268 GB, free: 12.7 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001661/0.1257, allocations: 354.7 kB / 0.5271 GB, free: 12.35 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000212/0.1259, allocations: 97.27 kB / 0.5272 GB, free: 12.25 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004706/0.1263, allocations: 428.8 kB / 0.5276 GB, free: 11.68 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007414/0.1271, allocations: 0.5667 MB / 0.5282 GB, free: 10.95 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.7e-06/0.1271, allocations: 0 / 0.5282 GB, free: 10.95 MB / 414.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0009366/0.128, allocations: 0.5283 MB / 0.5287 GB, free: 10.41 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.705e-05/0.128, allocations: 12 kB / 0.5287 GB, free: 10.4 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.85e-05/0.1281, allocations: 12 kB / 0.5287 GB, free: 10.39 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.004e-05/0.1281, allocations: 12 kB / 0.5287 GB, free: 10.38 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004755/0.1286, allocations: 156.4 kB / 0.5289 GB, free: 10.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.104e-05/0.1286, allocations: 27.92 kB / 0.5289 GB, free: 10.2 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003295/0.1289, allocations: 64.02 kB / 0.5289 GB, free: 10.14 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.677e-05/0.129, allocations: 35.94 kB / 0.529 GB, free: 10.1 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (71): * Single equations (assignments): 71 * 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.0002231/0.1292, allocations: 181.5 kB / 0.5292 GB, free: 9.914 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001552/0.1294, allocations: 31.81 kB / 0.5292 GB, free: 9.883 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.747e-05/0.1294, allocations: 33.78 kB / 0.5292 GB, free: 9.844 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.1295, allocations: 4 kB / 0.5292 GB, free: 9.84 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.286e-05/0.1295, allocations: 8 kB / 0.5292 GB, free: 9.832 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.129e-06/0.1295, allocations: 0 / 0.5292 GB, free: 9.832 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001356/0.1308, allocations: 0.6115 MB / 0.5298 GB, free: 9.164 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.1308, allocations: 0 / 0.5298 GB, free: 9.164 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004728/0.1313, allocations: 91.89 kB / 0.5299 GB, free: 9.074 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.538e-06/0.1313, allocations: 3.938 kB / 0.5299 GB, free: 9.07 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.278e-05/0.1313, allocations: 19.92 kB / 0.5299 GB, free: 9.051 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.618e-06/0.1313, allocations: 4 kB / 0.5299 GB, free: 9.047 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.1313, allocations: 0 / 0.5299 GB, free: 9.047 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008583/0.1322, allocations: 0.8338 MB / 0.5308 GB, free: 8.188 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.448e-05/0.1323, allocations: 31.75 kB / 0.5308 GB, free: 8.156 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.835e-05/0.1323, allocations: 15.94 kB / 0.5308 GB, free: 8.141 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003494/0.1327, allocations: 7.984 kB / 0.5308 GB, free: 8.133 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.453e-05/0.1327, allocations: 27.91 kB / 0.5308 GB, free: 8.105 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.946e-05/0.1328, allocations: 12 kB / 0.5308 GB, free: 8.094 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001811/0.1329, allocations: 183.1 kB / 0.531 GB, free: 7.918 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1329, allocations: 0 / 0.531 GB, free: 7.918 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0007142/0.1336, allocations: 99.89 kB / 0.5311 GB, free: 7.82 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.w) * 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 (26): * Single equations (assignments): 26 * 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.001167/0.1348, allocations: 1.382 MB / 0.5325 GB, free: 6.402 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005767/0.1354, allocations: 280.7 kB / 0.5327 GB, free: 6.129 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.1354, allocations: 1.75 kB / 0.5327 GB, free: 6.129 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001685/0.1356, allocations: 87.77 kB / 0.5328 GB, free: 6.043 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001008/0.1366, allocations: 82.5 kB / 0.5329 GB, free: 5.961 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00597/0.1425, allocations: 4.917 MB / 0.5377 GB, free: 0.6094 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002381/0.1428, allocations: 202.3 kB / 0.5379 GB, free: 400 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001712/0.1429, allocations: 43.25 kB / 0.5379 GB, free: 356 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001731/0.1431, allocations: 119.4 kB / 0.538 GB, free: 240 kB / 414.1 MB Notification: Performance of SimCode: time 4.91e-07/0.1431, allocations: 0 / 0.538 GB, free: 240 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2061/0.3492, allocations: 7.076 MB / 0.545 GB, free: 28.32 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.24/12.59, allocations: 14.64 kB / 0.545 GB, free: 28.3 MB / 414.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions2_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_Directions2.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.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.812338261981495]