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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J4.phi|J4.w|J6.phi|J6.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J4.phi|J4.w|J6.phi|J6.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w|inertia6.phi|inertia6.w",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001149/0.001149, allocations: 114.3 kB / 17.09 MB, free: 5.957 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001237/0.001237, allocations: 190.2 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.385/1.385, allocations: 205.1 MB / 223.9 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2055/0.2055, allocations: 43.53 MB / 314.8 MB, free: 452 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001843/0.001843, allocations: 71.89 kB / 442.5 MB, free: 5.668 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1144, allocations: 57.79 MB / 0.4885 GB, free: 11.8 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004249/0.1187, allocations: 2.833 MB / 0.4913 GB, free: 8.953 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001933/0.1207, allocations: 0.7369 MB / 0.492 GB, free: 8.207 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003784/0.1211, allocations: 19.88 kB / 0.492 GB, free: 8.188 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002969/0.1214, allocations: 59.44 kB / 0.4921 GB, free: 8.129 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005147/0.122, allocations: 122.9 kB / 0.4922 GB, free: 8.008 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004014/0.1224, allocations: 91.81 kB / 0.4923 GB, free: 7.918 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000697/0.1231, allocations: 430 kB / 0.4927 GB, free: 7.496 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003567/0.1235, allocations: 145.5 kB / 0.4929 GB, free: 7.352 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003863/0.1239, allocations: 175.4 kB / 0.493 GB, free: 7.18 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000373/0.1243, allocations: 179.2 kB / 0.4932 GB, free: 7.004 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001018/0.1244, allocations: 32 kB / 0.4932 GB, free: 6.973 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001221/0.1245, allocations: 32 kB / 0.4933 GB, free: 6.941 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001097/0.1246, allocations: 79.69 kB / 0.4933 GB, free: 6.863 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003121/0.125, allocations: 203 kB / 0.4935 GB, free: 6.664 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006474/0.1256, allocations: 430.5 kB / 0.4939 GB, free: 6.242 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.1256, allocations: 0 / 0.4939 GB, free: 6.242 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.063e-06/0.1256, allocations: 0 / 0.4939 GB, free: 6.242 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.548e-05/0.1257, allocations: 0 / 0.4939 GB, free: 6.242 MB / 382.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.001637/0.1273, allocations: 0.6358 MB / 0.4946 GB, free: 5.559 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.36e-05/0.1274, allocations: 15.88 kB / 0.4946 GB, free: 5.543 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001683/0.1276, allocations: 40.47 kB / 0.4946 GB, free: 5.504 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006205/0.1282, allocations: 284.4 kB / 0.4949 GB, free: 5.188 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.266e-05/0.1283, allocations: 29.38 kB / 0.4949 GB, free: 5.16 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000102/0.1284, allocations: 36.38 kB / 0.4949 GB, free: 5.125 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001056/0.1294, allocations: 394.5 kB / 0.4953 GB, free: 4.707 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.668e-05/0.1295, allocations: 15.84 kB / 0.4953 GB, free: 4.691 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.085e-05/0.1296, allocations: 16 kB / 0.4954 GB, free: 4.676 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.061e-05/0.1296, allocations: 16 kB / 0.4954 GB, free: 4.66 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006412/0.1302, allocations: 223.7 kB / 0.4956 GB, free: 4.441 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003103/0.1334, allocations: 1.711 MB / 0.4973 GB, free: 2.621 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005614/0.1339, allocations: 262.4 kB / 0.4975 GB, free: 2.301 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002293/0.1342, allocations: 98.02 kB / 0.4976 GB, free: 2.184 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.678e-05/0.1342, allocations: 8 kB / 0.4976 GB, free: 2.176 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.012e-05/0.1343, allocations: 50.66 kB / 0.4977 GB, free: 2.117 MB / 382.1 MB Notification: Performance of pre-optimization done (n=26): time 3.877e-06/0.1343, allocations: 0 / 0.4977 GB, free: 2.117 MB / 382.1 MB Notification: Performance of matching and sorting (n=26): time 0.0009215/0.1352, allocations: 253.1 kB / 0.4979 GB, free: 1.863 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000116/0.1353, allocations: 214 kB / 0.4981 GB, free: 1.605 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003752/0.1357, allocations: 274.9 kB / 0.4984 GB, free: 1.324 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.014e-05/0.1358, allocations: 29.7 kB / 0.4984 GB, free: 1.289 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001945/0.136, allocations: 247.3 kB / 0.4986 GB, free: 1.043 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00012/0.1361, allocations: 118.4 kB / 0.4987 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000176/0.1363, allocations: 98.25 kB / 0.4988 GB, free: 0.8242 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.1365, allocations: 342.8 kB / 0.4992 GB, free: 492 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002969/0.1368, allocations: 105.2 kB / 0.4993 GB, free: 388 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005785/0.1374, allocations: 428.8 kB / 0.4997 GB, free: 15.8 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009564/0.1384, allocations: 0.5667 MB / 0.5002 GB, free: 15.07 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.637e-06/0.1384, allocations: 4 kB / 0.5002 GB, free: 15.07 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.00132/0.1397, allocations: 0.5245 MB / 0.5007 GB, free: 14.54 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.869e-05/0.1397, allocations: 12 kB / 0.5007 GB, free: 14.53 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.025e-05/0.1398, allocations: 8 kB / 0.5008 GB, free: 14.52 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.409e-05/0.1398, allocations: 16 kB / 0.5008 GB, free: 14.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006534/0.1405, allocations: 151.7 kB / 0.5009 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.086e-05/0.1405, allocations: 27.86 kB / 0.5009 GB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005082/0.1411, allocations: 68.31 kB / 0.501 GB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.333e-05/0.1411, allocations: 32 kB / 0.501 GB, free: 14.23 MB / 398.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.0002321/0.1414, allocations: 185.4 kB / 0.5012 GB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002339/0.1416, allocations: 31.62 kB / 0.5012 GB, free: 14.01 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.037e-05/0.1417, allocations: 37.77 kB / 0.5013 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.1417, allocations: 4 kB / 0.5013 GB, free: 13.97 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.579e-06/0.1417, allocations: 4 kB / 0.5013 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000115/0.1419, allocations: 104.7 kB / 0.5014 GB, free: 13.84 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.403e-05/0.1419, allocations: 12 kB / 0.5014 GB, free: 13.83 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005187/0.1425, allocations: 19.92 kB / 0.5014 GB, free: 13.81 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.796e-05/0.1425, allocations: 19.97 kB / 0.5014 GB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.001333/0.1439, allocations: 0.8087 MB / 0.5022 GB, free: 12.97 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.001152/0.1451, allocations: 0.9535 MB / 0.5032 GB, free: 12 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.00025/0.1453, allocations: 91.94 kB / 0.5032 GB, free: 11.91 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000223/0.1456, allocations: 185.9 kB / 0.5034 GB, free: 11.73 MB / 398.1 MB Notification: Performance of Backend: time 7.71e-07/0.1456, allocations: 0 / 0.5034 GB, free: 11.73 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001634/0.1472, allocations: 311.9 kB / 0.5037 GB, free: 11.42 MB / 398.1 MB Notification: Performance of SimCode: time 0.003272/0.1505, allocations: 1.997 MB / 0.5057 GB, free: 9.371 MB / 398.1 MB Notification: Performance of Templates: time 0.008321/0.1588, allocations: 3.557 MB / 0.5091 GB, free: 5.824 MB / 398.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile (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 & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) 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) Reference file matches