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.001683/0.001683, allocations: 108.2 kB / 17.03 MB, free: 5.66 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.001634/0.001635, allocations: 190.9 kB / 17.96 MB, free: 5.066 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.535/1.535, allocations: 205.1 MB / 223.8 MB, free: 12.24 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.2447/0.2447, allocations: 43.52 MB / 314.7 MB, free: 480 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.001494/0.001494, allocations: 69.7 kB / 384.2 MB, free: 56.34 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1288/0.1303, allocations: 57.79 MB / 442 MB, free: 6.156 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.003232/0.1336, allocations: 2.818 MB / 444.8 MB, free: 3.32 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001063/0.1347, allocations: 0.7408 MB / 445.5 MB, free: 2.57 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001619/0.1349, allocations: 11.94 kB / 445.5 MB, free: 2.559 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001861/0.1351, allocations: 55.44 kB / 445.6 MB, free: 2.504 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002047/0.1353, allocations: 126.8 kB / 445.7 MB, free: 2.379 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002998/0.1356, allocations: 87.88 kB / 445.8 MB, free: 2.293 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003048/0.1359, allocations: 433.9 kB / 446.2 MB, free: 1.867 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000239/0.1362, allocations: 153.4 kB / 446.4 MB, free: 1.719 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001818/0.1364, allocations: 159.4 kB / 446.5 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001972/0.1366, allocations: 175.2 kB / 446.7 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.445e-05/0.1366, allocations: 36 kB / 446.7 MB, free: 1.355 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.286e-05/0.1367, allocations: 32 kB / 446.8 MB, free: 1.324 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.519e-05/0.1368, allocations: 83.73 kB / 446.8 MB, free: 1.242 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001381/0.1369, allocations: 199 kB / 447 MB, free: 1.047 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003431/0.1372, allocations: 426.5 kB / 447.5 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1373, allocations: 0 / 447.5 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1373, allocations: 0 / 447.5 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.325e-06/0.1373, allocations: 4 kB / 447.5 MB, free: 0.625 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.0008642/0.1382, allocations: 0.6435 MB / 448.1 MB, free: 15.93 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.414e-05/0.1382, allocations: 15.89 kB / 448.1 MB, free: 15.92 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.754e-05/0.1383, allocations: 40.47 kB / 448.2 MB, free: 15.88 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004268/0.1387, allocations: 276.4 kB / 448.4 MB, free: 15.57 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.831e-05/0.1388, allocations: 29.38 kB / 448.5 MB, free: 15.54 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.432e-05/0.1389, allocations: 44.38 kB / 448.5 MB, free: 15.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000648/0.1395, allocations: 398.4 kB / 448.9 MB, free: 15.08 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.048e-05/0.1395, allocations: 15.84 kB / 448.9 MB, free: 15.06 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.323e-05/0.1396, allocations: 20 kB / 448.9 MB, free: 15.04 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.288e-05/0.1396, allocations: 8 kB / 448.9 MB, free: 15.04 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004136/0.14, allocations: 215.7 kB / 449.1 MB, free: 14.82 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002286/0.1423, allocations: 1.707 MB / 450.8 MB, free: 13.01 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004162/0.1428, allocations: 270.3 kB / 451.1 MB, free: 12.68 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001573/0.1429, allocations: 94.08 kB / 451.2 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.645e-05/0.143, allocations: 8 kB / 451.2 MB, free: 12.56 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.201e-05/0.143, allocations: 42.5 kB / 451.3 MB, free: 12.51 MB / 334.1 MB Notification: Performance of pre-optimization done (n=26): time 1.893e-06/0.143, allocations: 0 / 451.3 MB, free: 12.51 MB / 334.1 MB Notification: Performance of matching and sorting (n=26): time 0.0007022/0.1437, allocations: 257.4 kB / 451.5 MB, free: 12.25 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001141/0.1439, allocations: 221.6 kB / 451.7 MB, free: 11.99 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002746/0.1441, allocations: 266.9 kB / 452 MB, free: 11.72 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.259e-05/0.1442, allocations: 37.64 kB / 452 MB, free: 11.68 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001663/0.1444, allocations: 243.4 kB / 452.3 MB, free: 11.43 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.34e-05/0.1444, allocations: 114.3 kB / 452.4 MB, free: 11.32 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001292/0.1446, allocations: 102.2 kB / 452.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001561/0.1447, allocations: 354.8 kB / 452.8 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001965/0.1449, allocations: 97.25 kB / 452.9 MB, free: 10.76 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003924/0.1453, allocations: 420.9 kB / 453.3 MB, free: 10.19 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000639/0.146, allocations: 0.5702 MB / 453.9 MB, free: 9.457 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.835e-06/0.146, allocations: 4 kB / 453.9 MB, free: 9.453 MB / 334.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008368/0.1469, allocations: 0.5324 MB / 454.4 MB, free: 8.914 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.662e-05/0.1469, allocations: 13.19 kB / 454.4 MB, free: 8.902 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.644e-05/0.1469, allocations: 12 kB / 454.4 MB, free: 8.891 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.11e-05/0.1469, allocations: 16 kB / 454.5 MB, free: 8.875 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004334/0.1474, allocations: 148.5 kB / 454.6 MB, free: 8.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.439e-05/0.1474, allocations: 23.94 kB / 454.6 MB, free: 8.707 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000343/0.1478, allocations: 67.36 kB / 454.7 MB, free: 8.641 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.157e-05/0.1478, allocations: 32 kB / 454.7 MB, free: 8.609 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.0002234/0.1481, allocations: 181.4 kB / 454.9 MB, free: 8.422 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001642/0.1482, allocations: 35.62 kB / 454.9 MB, free: 8.387 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.159e-05/0.1483, allocations: 33.78 kB / 455 MB, free: 8.352 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.937e-06/0.1483, allocations: 4 kB / 455 MB, free: 8.348 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.031e-05/0.1483, allocations: 0 / 455 MB, free: 8.348 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.224e-05/0.1484, allocations: 12.48 kB / 455 MB, free: 8.336 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001282/0.1496, allocations: 0.6514 MB / 455.6 MB, free: 7.621 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.1497, allocations: 0 / 455.6 MB, free: 7.621 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004376/0.1501, allocations: 91.89 kB / 455.7 MB, free: 7.531 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.11e-06/0.1501, allocations: 0 / 455.7 MB, free: 7.531 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.767e-05/0.1502, allocations: 16.05 kB / 455.7 MB, free: 7.516 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.564e-06/0.1502, allocations: 11.94 kB / 455.8 MB, free: 7.504 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.1502, allocations: 0 / 455.8 MB, free: 7.504 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000751/0.1509, allocations: 0.8345 MB / 456.6 MB, free: 6.645 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.587e-05/0.151, allocations: 108.9 kB / 456.7 MB, free: 6.52 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.259e-05/0.1511, allocations: 8 kB / 456.7 MB, free: 6.512 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003396/0.1514, allocations: 15.92 kB / 456.7 MB, free: 6.496 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.077e-05/0.1515, allocations: 27.91 kB / 456.8 MB, free: 6.469 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.644e-05/0.1515, allocations: 12 kB / 456.8 MB, free: 6.457 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001828/0.1517, allocations: 182 kB / 456.9 MB, free: 6.281 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1517, allocations: 0 / 456.9 MB, free: 6.281 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0007028/0.1524, allocations: 103.8 kB / 457 MB, free: 6.18 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.0001338/0.1526, allocations: 105.2 kB / 457.1 MB, free: 6.07 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000507/0.1531, allocations: 298.1 kB / 457.4 MB, free: 5.781 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.1531, allocations: 0 / 457.4 MB, free: 5.781 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001724/0.1533, allocations: 91.77 kB / 457.5 MB, free: 5.691 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009316/0.1542, allocations: 78.94 kB / 457.6 MB, free: 5.609 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002196/0.1564, allocations: 1.53 MB / 459.1 MB, free: 4.027 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003591/0.1568, allocations: 0.8066 MB / 459.9 MB, free: 3.195 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000134/0.1569, allocations: 47.25 kB / 460 MB, free: 3.152 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.695e-05/0.157, allocations: 27.44 kB / 460 MB, free: 3.125 MB / 334.1 MB Notification: Performance of SimCode: time 6.71e-07/0.157, allocations: 0 / 460 MB, free: 3.125 MB / 334.1 MB Notification: Performance of Templates: time 0.005983/0.163, allocations: 2.926 MB / 462.9 MB, free: 228 kB / 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 -s cvode -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