Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 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.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_4.0.0_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_4.0.0_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.001645/0.001645, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001292/0.001292, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.348/1.348, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2111/0.2111, allocations: 44.18 MB / 336.6 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 55.12 kB / 408.4 MB, free: 27.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1229/0.1243, allocations: 60.82 MB / 469.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004401/0.1287, allocations: 2.825 MB / 472.1 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001361/0.1301, allocations: 0.7011 MB / 472.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003067/0.1304, allocations: 4 kB / 472.8 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002229/0.1307, allocations: 59.39 kB / 472.8 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003605/0.1311, allocations: 126.9 kB / 473 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000309/0.1314, allocations: 91.81 kB / 473 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005497/0.1319, allocations: 418.1 kB / 473.5 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002656/0.1322, allocations: 141.5 kB / 473.6 MB, free: 10.01 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002249/0.1324, allocations: 175.3 kB / 473.8 MB, free: 9.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001916/0.1326, allocations: 175.2 kB / 473.9 MB, free: 9.668 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.886e-05/0.1327, allocations: 32 kB / 474 MB, free: 9.637 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.636e-05/0.1328, allocations: 32 kB / 474 MB, free: 9.605 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.77e-05/0.1328, allocations: 75.7 kB / 474.1 MB, free: 9.531 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001677/0.133, allocations: 203 kB / 474.3 MB, free: 9.332 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003745/0.1334, allocations: 418.8 kB / 474.7 MB, free: 8.922 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.1334, allocations: 3.938 kB / 474.7 MB, free: 8.918 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1334, allocations: 4 kB / 474.7 MB, free: 8.914 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.055e-06/0.1334, allocations: 0 / 474.7 MB, free: 8.914 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: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.0008744/0.1343, allocations: 0.6436 MB / 475.3 MB, free: 8.223 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.1344, allocations: 8.031 kB / 475.3 MB, free: 8.215 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.177e-05/0.1344, allocations: 44.41 kB / 475.4 MB, free: 8.172 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000289/0.1347, allocations: 284.4 kB / 475.7 MB, free: 7.852 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.797e-05/0.1348, allocations: 29.38 kB / 475.7 MB, free: 7.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.883e-05/0.1348, allocations: 40.28 kB / 475.7 MB, free: 7.781 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005698/0.1354, allocations: 398.5 kB / 476.1 MB, free: 7.363 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.41e-05/0.1355, allocations: 7.906 kB / 476.1 MB, free: 7.355 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.162e-05/0.1355, allocations: 16 kB / 476.1 MB, free: 7.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.494e-05/0.1355, allocations: 8 kB / 476.1 MB, free: 7.332 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004005/0.1359, allocations: 223.7 kB / 476.4 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002106/0.138, allocations: 1.719 MB / 478.1 MB, free: 5.285 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000406/0.1385, allocations: 266.4 kB / 478.3 MB, free: 4.961 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001412/0.1386, allocations: 98.06 kB / 478.4 MB, free: 4.844 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.347e-05/0.1386, allocations: 11.88 kB / 478.5 MB, free: 4.832 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.432e-05/0.1387, allocations: 42.56 kB / 478.5 MB, free: 4.781 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.542e-06/0.1387, allocations: 0 / 478.5 MB, free: 4.781 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006121/0.1393, allocations: 257 kB / 478.7 MB, free: 4.523 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.354e-05/0.1394, allocations: 217.9 kB / 479 MB, free: 4.262 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002291/0.1396, allocations: 278.9 kB / 479.2 MB, free: 3.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.975e-05/0.1397, allocations: 33.64 kB / 479.3 MB, free: 3.941 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000128/0.1398, allocations: 239.4 kB / 479.5 MB, free: 3.699 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.145e-05/0.1399, allocations: 114.4 kB / 479.6 MB, free: 3.586 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001009/0.14, allocations: 98.25 kB / 479.7 MB, free: 3.484 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.1401, allocations: 350.7 kB / 480 MB, free: 3.133 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001739/0.1403, allocations: 97.27 kB / 480.1 MB, free: 3.039 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003883/0.1407, allocations: 428.8 kB / 480.6 MB, free: 2.461 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006373/0.1413, allocations: 0.5667 MB / 481.1 MB, free: 1.734 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.16e-06/0.1414, allocations: 8 kB / 481.1 MB, free: 1.727 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0007829/0.1422, allocations: 0.5286 MB / 481.7 MB, free: 1.191 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.1422, allocations: 12 kB / 481.7 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.115e-05/0.1422, allocations: 8 kB / 481.7 MB, free: 1.172 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.568e-05/0.1422, allocations: 16.5 kB / 481.7 MB, free: 1.156 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003983/0.1426, allocations: 151.8 kB / 481.8 MB, free: 1.008 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.979e-05/0.1427, allocations: 19.92 kB / 481.9 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00025/0.1429, allocations: 59.44 kB / 481.9 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.389e-05/0.143, allocations: 39.98 kB / 482 MB, free: 0.8906 MB / 350.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.0001507/0.1431, allocations: 185.6 kB / 482.1 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001406/0.1433, allocations: 31.62 kB / 482.2 MB, free: 0.668 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.059e-05/0.1433, allocations: 33.78 kB / 482.2 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-05/0.1433, allocations: 4 kB / 482.2 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/0.1434, allocations: 7.938 kB / 482.2 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.1434, allocations: 0 / 482.2 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001118/0.1445, allocations: 0.6515 MB / 482.9 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.1445, allocations: 4 kB / 482.9 MB, free: 15.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004081/0.1449, allocations: 87.89 kB / 483 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.1449, allocations: 4 kB / 483 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.071e-05/0.145, allocations: 8 kB / 483 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.885e-06/0.145, allocations: 15.86 kB / 483 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.145, allocations: 4 kB / 483 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006643/0.1456, allocations: 0.8335 MB / 483.8 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.568e-05/0.1457, allocations: 104.8 kB / 483.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.279e-05/0.1458, allocations: 12 kB / 483.9 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003183/0.1461, allocations: 15.92 kB / 484 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.566e-05/0.1462, allocations: 16.17 kB / 484 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.491e-05/0.1462, allocations: 15.98 kB / 484 MB, free: 14.74 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001363/0.1463, allocations: 186 kB / 484.2 MB, free: 14.56 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1463, allocations: 0 / 484.2 MB, free: 14.56 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006656/0.147, allocations: 99.75 kB / 484.3 MB, free: 14.46 MB / 366.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.0001404/0.1472, allocations: 122.8 kB / 484.4 MB, free: 14.34 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005354/0.1477, allocations: 298.1 kB / 484.7 MB, free: 14.05 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1477, allocations: 4 kB / 484.7 MB, free: 14.04 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001547/0.1479, allocations: 92.47 kB / 484.8 MB, free: 13.95 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001053/0.1489, allocations: 83.62 kB / 484.9 MB, free: 13.88 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002319/0.1513, allocations: 1.533 MB / 486.4 MB, free: 12.29 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004962/0.1518, allocations: 0.7989 MB / 487.2 MB, free: 11.46 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001597/0.1519, allocations: 43.22 kB / 487.2 MB, free: 11.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.94e-05/0.152, allocations: 31.42 kB / 487.3 MB, free: 11.39 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.152, allocations: 0 / 487.3 MB, free: 11.39 MB / 366.1 MB Notification: Performance of Templates: time 0.006352/0.1584, allocations: 2.917 MB / 490.2 MB, free: 8.5 MB / 366.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches