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.001253/0.001253, allocations: 105.2 kB / 16.27 MB, free: 5.965 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.001225/0.001226, allocations: 189.4 kB / 17.19 MB, free: 5.602 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.637/1.637, allocations: 205.1 MB / 223.1 MB, free: 12.29 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.2154/0.2154, allocations: 43.52 MB / 313.9 MB, free: 0.5352 MB / 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.001467/0.001468, allocations: 75.59 kB / 382.7 MB, free: 56.7 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1267/0.1282, allocations: 57.79 MB / 440.5 MB, free: 6.922 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.003396/0.1316, allocations: 2.822 MB / 443.3 MB, free: 4.074 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000855/0.1325, allocations: 0.7369 MB / 444.1 MB, free: 3.328 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001316/0.1326, allocations: 11.94 kB / 444.1 MB, free: 3.316 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001536/0.1328, allocations: 55.45 kB / 444.1 MB, free: 3.262 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001958/0.133, allocations: 130.8 kB / 444.3 MB, free: 3.133 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002396/0.1333, allocations: 83.89 kB / 444.4 MB, free: 3.051 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000277/0.1335, allocations: 433.9 kB / 444.8 MB, free: 2.625 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002212/0.1338, allocations: 141.8 kB / 444.9 MB, free: 2.488 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001512/0.1339, allocations: 163.4 kB / 445.1 MB, free: 2.328 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001667/0.1341, allocations: 179.2 kB / 445.2 MB, free: 2.152 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.371e-05/0.1342, allocations: 32 kB / 445.3 MB, free: 2.121 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.334e-05/0.1342, allocations: 39.94 kB / 445.3 MB, free: 2.082 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.831e-05/0.1343, allocations: 79.7 kB / 445.4 MB, free: 2.004 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001294/0.1344, allocations: 199 kB / 445.6 MB, free: 1.809 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003054/0.1347, allocations: 418.5 kB / 446 MB, free: 1.398 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.1347, allocations: 3.938 kB / 446 MB, free: 1.395 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1347, allocations: 0 / 446 MB, free: 1.395 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.1348, allocations: 0 / 446 MB, free: 1.395 MB / 318.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.0007574/0.1355, allocations: 0.6474 MB / 446.7 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/0.1356, allocations: 15.89 kB / 446.7 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.187e-05/0.1356, allocations: 40.47 kB / 446.7 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002187/0.1358, allocations: 276.4 kB / 447 MB, free: 344 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.639e-05/0.1359, allocations: 25.38 kB / 447 MB, free: 316 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.499e-05/0.1359, allocations: 48.36 kB / 447 MB, free: 268 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005336/0.1365, allocations: 398.4 kB / 447.4 MB, free: 15.84 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.545e-05/0.1365, allocations: 11.89 kB / 447.4 MB, free: 15.83 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.124e-05/0.1365, allocations: 16 kB / 447.5 MB, free: 15.81 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.1366, allocations: 8 kB / 447.5 MB, free: 15.8 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004109/0.137, allocations: 220.8 kB / 447.7 MB, free: 15.59 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002178/0.1392, allocations: 1.719 MB / 449.4 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000404/0.1396, allocations: 266.3 kB / 449.7 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001582/0.1397, allocations: 94.08 kB / 449.8 MB, free: 13.33 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.071e-05/0.1398, allocations: 7.984 kB / 449.8 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.052e-05/0.1398, allocations: 42.5 kB / 449.8 MB, free: 13.27 MB / 334.1 MB Notification: Performance of pre-optimization done (n=26): time 1.633e-06/0.1398, allocations: 4 kB / 449.8 MB, free: 13.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006709/0.1405, allocations: 261.3 kB / 450.1 MB, free: 13.01 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001243/0.1406, allocations: 209.6 kB / 450.3 MB, free: 12.75 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002867/0.1409, allocations: 274.8 kB / 450.5 MB, free: 12.48 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.907e-05/0.141, allocations: 30.08 kB / 450.6 MB, free: 12.44 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002292/0.1412, allocations: 251.3 kB / 450.8 MB, free: 12.19 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.545e-05/0.1413, allocations: 114.4 kB / 450.9 MB, free: 12.07 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001276/0.1414, allocations: 102.2 kB / 451 MB, free: 11.97 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.1416, allocations: 350.7 kB / 451.4 MB, free: 11.62 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001873/0.1418, allocations: 93.27 kB / 451.5 MB, free: 11.53 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004699/0.1423, allocations: 432.8 kB / 451.9 MB, free: 10.94 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000662/0.1429, allocations: 0.5589 MB / 452.4 MB, free: 10.22 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.682e-06/0.1429, allocations: 4 kB / 452.4 MB, free: 10.22 MB / 334.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008414/0.1438, allocations: 0.5287 MB / 453 MB, free: 9.684 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.759e-05/0.1438, allocations: 8 kB / 453 MB, free: 9.676 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.614e-05/0.1439, allocations: 20.06 kB / 453 MB, free: 9.656 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.021e-05/0.1439, allocations: 16 kB / 453 MB, free: 9.641 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004114/0.1443, allocations: 147.7 kB / 453.2 MB, free: 9.496 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.178e-05/0.1443, allocations: 27.86 kB / 453.2 MB, free: 9.469 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002905/0.1446, allocations: 63.38 kB / 453.3 MB, free: 9.406 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.438e-05/0.1447, allocations: 32 kB / 453.3 MB, free: 9.375 MB / 334.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.0001721/0.1449, allocations: 189.4 kB / 453.5 MB, free: 9.18 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001703/0.145, allocations: 35.62 kB / 453.5 MB, free: 9.145 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.601e-05/0.1451, allocations: 37.78 kB / 453.5 MB, free: 9.105 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.29e-06/0.1451, allocations: 4 kB / 453.5 MB, free: 9.102 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/0.1451, allocations: 0 / 453.5 MB, free: 9.102 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.1451, allocations: 4 kB / 453.5 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001178/0.1463, allocations: 0.6475 MB / 454.2 MB, free: 8.387 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.1463, allocations: 8.062 kB / 454.2 MB, free: 8.379 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004498/0.1468, allocations: 91.88 kB / 454.3 MB, free: 8.289 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.992e-06/0.1468, allocations: 4 kB / 454.3 MB, free: 8.285 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.77e-05/0.1469, allocations: 8 kB / 454.3 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.222e-06/0.1469, allocations: 8.375 kB / 454.3 MB, free: 8.27 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.1469, allocations: 0 / 454.3 MB, free: 8.27 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000756/0.1476, allocations: 0.8423 MB / 455.2 MB, free: 7.402 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.496e-05/0.1477, allocations: 108.9 kB / 455.3 MB, free: 7.277 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.289e-05/0.1478, allocations: 12 kB / 455.3 MB, free: 7.266 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003264/0.1481, allocations: 15.94 kB / 455.3 MB, free: 7.25 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.233e-05/0.1482, allocations: 23.91 kB / 455.3 MB, free: 7.227 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.448e-05/0.1482, allocations: 8 kB / 455.3 MB, free: 7.219 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001537/0.1484, allocations: 182 kB / 455.5 MB, free: 7.043 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1484, allocations: 0 / 455.5 MB, free: 7.043 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007116/0.1491, allocations: 103.8 kB / 455.6 MB, free: 6.941 MB / 334.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.0001293/0.1492, allocations: 109.2 kB / 455.7 MB, free: 6.828 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005333/0.1498, allocations: 305.2 kB / 456 MB, free: 6.531 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.1498, allocations: 0 / 456 MB, free: 6.531 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001661/0.1499, allocations: 93.33 kB / 456.1 MB, free: 6.441 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001013/0.151, allocations: 77.58 kB / 456.2 MB, free: 6.363 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002307/0.1533, allocations: 1.537 MB / 457.7 MB, free: 4.773 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004598/0.1538, allocations: 0.7988 MB / 458.5 MB, free: 3.949 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001664/0.1539, allocations: 47.25 kB / 458.6 MB, free: 3.906 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.549e-05/0.154, allocations: 27.44 kB / 458.6 MB, free: 3.879 MB / 334.1 MB Notification: Performance of SimCode: time 2.91e-07/0.154, allocations: 0 / 458.6 MB, free: 3.879 MB / 334.1 MB Notification: Performance of Templates: time 0.006514/0.1605, allocations: 2.928 MB / 461.5 MB, free: 0.9766 MB / 334.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins/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