Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Directions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J3.phi|J3.w|J5.phi|J5.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions") translateModel(ModelicaTest.Rotational.ForUsersGuide.Directions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J3.phi|J3.w|J5.phi|J5.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000905/0.0009103, allocations: 93.41 kB / 17.35 MB, free: 6.371 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.001014/0.001015, allocations: 174.3 kB / 18.25 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.426/1.426, allocations: 223.3 MB / 242.3 MB, free: 224 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2321/0.2321, allocations: 44.24 MB / 337.7 MB, free: 2.699 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003419/0.0003419, allocations: 8.812 kB / 410.3 MB, free: 27.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1254/0.1257, allocations: 61.93 MB / 472.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions): time 0.003646/0.1294, allocations: 2.5 MB / 474.7 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001654/0.1311, allocations: 0.6972 MB / 475.4 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002557/0.1314, allocations: 8 kB / 475.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001965/0.1316, allocations: 51.56 kB / 475.5 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002703/0.1319, allocations: 99.22 kB / 475.6 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002794/0.1322, allocations: 79.86 kB / 475.7 MB, free: 9.934 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005134/0.1327, allocations: 422.4 kB / 476.1 MB, free: 9.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003033/0.133, allocations: 163 kB / 476.2 MB, free: 9.359 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002068/0.1332, allocations: 147.3 kB / 476.4 MB, free: 9.215 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002364/0.1335, allocations: 163.2 kB / 476.6 MB, free: 9.055 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.467e-05/0.1335, allocations: 20 kB / 476.6 MB, free: 9.035 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.538e-05/0.1336, allocations: 24 kB / 476.6 MB, free: 9.012 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.279e-05/0.1336, allocations: 71.62 kB / 476.7 MB, free: 8.941 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001827/0.1338, allocations: 200.7 kB / 476.9 MB, free: 8.738 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004709/0.1343, allocations: 414.6 kB / 477.3 MB, free: 8.332 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1343, allocations: 0 / 477.3 MB, free: 8.332 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1343, allocations: 0 / 477.3 MB, free: 8.332 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.1343, allocations: 0 / 477.3 MB, free: 8.332 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.0009035/0.1353, allocations: 0.6122 MB / 477.9 MB, free: 7.672 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.1353, allocations: 8.031 kB / 477.9 MB, free: 7.664 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001033/0.1354, allocations: 44.47 kB / 477.9 MB, free: 7.621 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003092/0.1357, allocations: 284.5 kB / 478.2 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.987e-05/0.1358, allocations: 29.38 kB / 478.2 MB, free: 7.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.76e-05/0.1358, allocations: 44.28 kB / 478.3 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006747/0.1365, allocations: 401.3 kB / 478.7 MB, free: 6.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.793e-05/0.1366, allocations: 0 / 478.7 MB, free: 6.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.627e-05/0.1366, allocations: 16 kB / 478.7 MB, free: 6.805 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.131e-05/0.1366, allocations: 8 kB / 478.7 MB, free: 6.797 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005091/0.1371, allocations: 264.3 kB / 479 MB, free: 6.539 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001576/0.1387, allocations: 1.124 MB / 480.1 MB, free: 5.355 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005547/0.1393, allocations: 351.5 kB / 480.4 MB, free: 4.984 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003102/0.1396, allocations: 190.8 kB / 480.6 MB, free: 4.793 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.92e-05/0.1396, allocations: 4 kB / 480.6 MB, free: 4.789 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.982e-05/0.1397, allocations: 42.56 kB / 480.7 MB, free: 4.738 MB / 350.1 MB Notification: Performance of pre-optimization done (n=39): time 1.603e-06/0.1397, allocations: 0 / 480.7 MB, free: 4.738 MB / 350.1 MB Notification: Performance of matching and sorting (n=57): time 0.003977/0.1437, allocations: 2.485 MB / 483.1 MB, free: 1.988 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.323e-05/0.1437, allocations: 106.8 kB / 483.2 MB, free: 1.859 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002764/0.144, allocations: 242.6 kB / 483.5 MB, free: 1.609 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.331e-05/0.1441, allocations: 33.7 kB / 483.5 MB, free: 1.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001831/0.1443, allocations: 180.7 kB / 483.7 MB, free: 1.387 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001438/0.1444, allocations: 201 kB / 483.9 MB, free: 1.188 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.082e-05/0.1445, allocations: 49.69 kB / 483.9 MB, free: 1.133 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002576/0.1448, allocations: 354.7 kB / 484.3 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002984/0.1451, allocations: 133.1 kB / 484.4 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003618/0.1454, allocations: 235.8 kB / 484.6 MB, free: 388 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007538/0.1462, allocations: 421.9 kB / 485 MB, free: 15.93 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.1462, allocations: 4 kB / 485.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001074/0.1473, allocations: 0.5618 MB / 485.6 MB, free: 15.35 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.432e-05/0.1473, allocations: 4 kB / 485.6 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.226e-05/0.1473, allocations: 4 kB / 485.6 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003906/0.1477, allocations: 122.5 kB / 485.7 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003911/0.1481, allocations: 100.1 kB / 485.8 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004912/0.1531, allocations: 4.691 MB / 490.5 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002373/0.1533, allocations: 20.06 kB / 490.6 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.826e-05/0.1534, allocations: 20 kB / 490.6 MB, free: 9.984 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (51): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,5,100.0%), (1,5,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002177/0.1536, allocations: 173.6 kB / 490.7 MB, free: 9.805 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001001/0.1537, allocations: 39.47 kB / 490.8 MB, free: 9.766 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001025/0.1538, allocations: 50.17 kB / 490.8 MB, free: 9.719 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.472e-06/0.1538, allocations: 12 kB / 490.8 MB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.285e-05/0.1539, allocations: 0 / 490.8 MB, free: 9.707 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.1539, allocations: 4 kB / 490.8 MB, free: 9.703 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002177/0.156, allocations: 1.339 MB / 492.2 MB, free: 8.289 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.314e-06/0.1561, allocations: 4 kB / 492.2 MB, free: 8.285 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004164/0.1565, allocations: 99.97 kB / 492.3 MB, free: 8.188 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000264/0.1568, allocations: 94.52 kB / 492.4 MB, free: 8.086 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.337e-05/0.1568, allocations: 12 kB / 492.4 MB, free: 8.074 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003785/0.1606, allocations: 4.119 MB / 496.5 MB, free: 3.551 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.106e-06/0.1606, allocations: 4.125 kB / 496.5 MB, free: 3.547 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001601/0.1622, allocations: 0.9445 MB / 497.5 MB, free: 2.574 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001071/0.1624, allocations: 108.7 kB / 497.6 MB, free: 2.449 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.477e-05/0.1624, allocations: 11.98 kB / 497.6 MB, free: 2.438 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002711/0.1627, allocations: 20 kB / 497.6 MB, free: 2.418 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001226/0.1628, allocations: 44.12 kB / 497.6 MB, free: 2.375 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.437e-05/0.1629, allocations: 16.12 kB / 497.7 MB, free: 2.359 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001628/0.163, allocations: 182 kB / 497.8 MB, free: 2.176 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.163, allocations: 3.938 kB / 497.8 MB, free: 2.172 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007398/0.1638, allocations: 120 kB / 498 MB, free: 2.055 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (J5.phi,J5.w,J3.phi,J3.w,J1.phi,J1.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 (48): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001563/0.1639, allocations: 119.2 kB / 498.1 MB, free: 1.926 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001353/0.1653, allocations: 0.7885 MB / 498.9 MB, free: 1.102 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.778e-06/0.1653, allocations: 4.188 kB / 498.9 MB, free: 1.098 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009287/0.1663, allocations: 0.5795 MB / 499.4 MB, free: 492 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007284/0.167, allocations: 60.72 kB / 499.5 MB, free: 428 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002141/0.1692, allocations: 1.349 MB / 0.4891 GB, free: 15.03 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004411/0.1696, allocations: 0.8239 MB / 0.4899 GB, free: 14.18 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0001474/0.1698, allocations: 35.27 kB / 0.4899 GB, free: 14.15 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.424e-05/0.1698, allocations: 27.44 kB / 0.49 GB, free: 14.12 MB / 382.1 MB Notification: Performance of SimCode: time 8.41e-07/0.1699, allocations: 0 / 0.49 GB, free: 14.12 MB / 382.1 MB Notification: Performance of Templates: time 0.009987/0.1798, allocations: 4.16 MB / 0.494 GB, free: 9.973 MB / 382.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions/Directions.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches