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.001201/0.001201, allocations: 95.2 kB / 17 MB, free: 6.355 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.001638/0.001638, allocations: 184.2 kB / 17.89 MB, free: 5.926 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.568/1.568, allocations: 223.3 MB / 241.9 MB, free: 20 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.2183/0.2183, allocations: 44.25 MB / 337.3 MB, free: 2.723 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005028/0.0005035, allocations: 11.94 kB / 409.7 MB, free: 27.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1408/0.1413, allocations: 61.92 MB / 471.6 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.003071/0.1444, allocations: 2.392 MB / 474 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00117/0.1456, allocations: 0.6625 MB / 474.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001524/0.1458, allocations: 15.94 kB / 474.7 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001516/0.146, allocations: 43.69 kB / 474.7 MB, free: 10.56 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002033/0.1462, allocations: 99.09 kB / 474.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002365/0.1464, allocations: 75.86 kB / 474.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003888/0.1468, allocations: 402 kB / 475.3 MB, free: 9.992 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000207/0.147, allocations: 104.2 kB / 475.4 MB, free: 9.883 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001878/0.1472, allocations: 143.4 kB / 475.5 MB, free: 9.742 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002071/0.1474, allocations: 159.3 kB / 475.7 MB, free: 9.586 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.028e-05/0.1475, allocations: 20 kB / 475.7 MB, free: 9.566 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.708e-05/0.1476, allocations: 20 kB / 475.7 MB, free: 9.547 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.49e-05/0.1476, allocations: 59.75 kB / 475.8 MB, free: 9.488 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.481e-05/0.1477, allocations: 97.52 kB / 475.9 MB, free: 9.387 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002825/0.148, allocations: 307.4 kB / 476.2 MB, free: 9.086 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.148, allocations: 0 / 476.2 MB, free: 9.086 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.148, allocations: 0 / 476.2 MB, free: 9.086 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.723e-06/0.148, allocations: 0 / 476.2 MB, free: 9.086 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.000824/0.1489, allocations: 0.5888 MB / 476.7 MB, free: 8.449 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/0.1489, allocations: 15.97 kB / 476.8 MB, free: 8.434 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.918e-05/0.149, allocations: 39.53 kB / 476.8 MB, free: 8.395 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003288/0.1493, allocations: 267.3 kB / 477.1 MB, free: 8.094 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.062e-05/0.1494, allocations: 29 kB / 477.1 MB, free: 8.062 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.467e-05/0.1495, allocations: 39.91 kB / 477.1 MB, free: 8.023 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006512/0.1501, allocations: 402 kB / 477.5 MB, free: 7.598 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.522e-05/0.1501, allocations: 3.906 kB / 477.5 MB, free: 7.594 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.187e-05/0.1502, allocations: 20 kB / 477.5 MB, free: 7.574 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.25e-05/0.1502, allocations: 12 kB / 477.6 MB, free: 7.562 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004207/0.1506, allocations: 223.7 kB / 477.8 MB, free: 7.344 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002167/0.1528, allocations: 1.727 MB / 479.5 MB, free: 5.508 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004423/0.1533, allocations: 266.3 kB / 479.8 MB, free: 5.184 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001513/0.1534, allocations: 98.08 kB / 479.9 MB, free: 5.066 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.297e-05/0.1535, allocations: 0 / 479.9 MB, free: 5.066 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.068e-05/0.1535, allocations: 50.48 kB / 479.9 MB, free: 5.008 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.623e-06/0.1535, allocations: 4 kB / 479.9 MB, free: 5.004 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006967/0.1542, allocations: 281.1 kB / 480.2 MB, free: 4.723 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001037/0.1543, allocations: 217.9 kB / 480.4 MB, free: 4.461 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002642/0.1546, allocations: 270.9 kB / 480.7 MB, free: 4.191 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.118e-05/0.1546, allocations: 29.7 kB / 480.7 MB, free: 4.156 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001531/0.1548, allocations: 235.2 kB / 480.9 MB, free: 3.918 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.606e-05/0.1549, allocations: 126.4 kB / 481 MB, free: 3.793 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.912e-05/0.1549, allocations: 12 kB / 481.1 MB, free: 3.781 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.155, allocations: 342.8 kB / 481.4 MB, free: 3.438 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000199/0.1553, allocations: 101.2 kB / 481.5 MB, free: 3.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000389/0.1557, allocations: 428.8 kB / 481.9 MB, free: 2.762 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002714/0.1559, allocations: 171.7 kB / 482.1 MB, free: 2.594 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.393e-06/0.156, allocations: 7.984 kB / 482.1 MB, free: 2.586 MB / 350.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008044/0.1568, allocations: 0.5288 MB / 482.6 MB, free: 2.051 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.07e-05/0.1568, allocations: 8 kB / 482.6 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.682e-05/0.1568, allocations: 12 kB / 482.6 MB, free: 2.031 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.956e-05/0.1569, allocations: 19.95 kB / 482.6 MB, free: 2.012 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004458/0.1573, allocations: 147.8 kB / 482.8 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.543e-05/0.1573, allocations: 23.92 kB / 482.8 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002798/0.1576, allocations: 67.38 kB / 482.9 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.071e-05/0.1577, allocations: 40.08 kB / 482.9 MB, free: 1.738 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00018/0.1579, allocations: 178.1 kB / 483.1 MB, free: 1.555 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001473/0.158, allocations: 31.62 kB / 483.1 MB, free: 1.523 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.85e-05/0.1581, allocations: 33.78 kB / 483.2 MB, free: 1.488 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.157e-06/0.1581, allocations: 7.953 kB / 483.2 MB, free: 1.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.836e-06/0.1581, allocations: 4 kB / 483.2 MB, free: 1.477 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.1581, allocations: 0 / 483.2 MB, free: 1.477 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001284/0.1594, allocations: 0.6514 MB / 483.8 MB, free: 0.7617 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/0.1595, allocations: 4 kB / 483.8 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004347/0.1599, allocations: 87.89 kB / 483.9 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.041e-05/0.1599, allocations: 7.953 kB / 483.9 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.178e-05/0.16, allocations: 16.61 kB / 483.9 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.16, allocations: 0 / 483.9 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.121e-06/0.16, allocations: 8.359 kB / 483.9 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008113/0.1608, allocations: 0.8457 MB / 484.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.05e-05/0.1609, allocations: 104.9 kB / 484.9 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.538e-05/0.1609, allocations: 11.95 kB / 484.9 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000351/0.1613, allocations: 19.98 kB / 484.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.702e-05/0.1614, allocations: 23.92 kB / 484.9 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.56e-05/0.1614, allocations: 11.98 kB / 485 MB, free: 15.58 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001916/0.1616, allocations: 182 kB / 485.1 MB, free: 15.4 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1616, allocations: 4 kB / 485.1 MB, free: 15.39 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007672/0.1624, allocations: 99.75 kB / 485.2 MB, free: 15.3 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001684/0.1625, allocations: 111.1 kB / 485.3 MB, free: 15.18 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005749/0.1631, allocations: 293 kB / 485.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1631, allocations: 0 / 485.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001683/0.1633, allocations: 89.45 kB / 485.7 MB, free: 14.81 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009985/0.1643, allocations: 77.33 kB / 485.8 MB, free: 14.73 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002689/0.167, allocations: 1.895 MB / 487.7 MB, free: 12.79 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000407/0.1675, allocations: 0.7994 MB / 488.5 MB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001931/0.1677, allocations: 43.25 kB / 488.5 MB, free: 11.92 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.687e-05/0.1677, allocations: 31.44 kB / 488.6 MB, free: 11.89 MB / 366.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1677, allocations: 0 / 488.6 MB, free: 11.89 MB / 366.1 MB Notification: Performance of Templates: time 0.006419/0.1741, allocations: 2.657 MB / 491.2 MB, free: 9.25 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