Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001579/0.001579, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.366/1.366, allocations: 225.6 MB / 234.8 MB, free: 3.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009244/0.0009246, allocations: 100.1 kB / 286.7 MB, free: 5.266 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2047/0.2047, allocations: 45.15 MB / 383.7 MB, free: 296 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.665e-05/1.658e-05, allocations: 0 / 453.2 MB, free: 75.84 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1323/0.1324, allocations: 63.24 MB / 0.5044 GB, free: 12.65 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.414/0.5464, allocations: 88.39 MB / 0.5907 GB, free: 14.25 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000186/0.5466, allocations: 73.27 kB / 0.5907 GB, free: 14.21 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01672/0.5634, allocations: 6.29 MB / 0.5969 GB, free: 9.062 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.5634, allocations: 0 / 0.5969 GB, free: 9.062 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.791e-05/0.5634, allocations: 4 kB / 0.5969 GB, free: 9.059 MB / 394.7 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.0008706/0.5643, allocations: 0.5603 MB / 0.5974 GB, free: 8.477 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/0.5644, allocations: 8.031 kB / 0.5974 GB, free: 8.469 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002812/0.5647, allocations: 71.45 kB / 0.5975 GB, free: 8.398 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000327/0.565, allocations: 251.5 kB / 0.5977 GB, free: 8.129 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.243e-05/0.565, allocations: 16 kB / 0.5978 GB, free: 8.113 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.988e-05/0.5651, allocations: 35.14 kB / 0.5978 GB, free: 8.082 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000326/0.5654, allocations: 164.3 kB / 0.598 GB, free: 7.973 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004561/0.5659, allocations: 311.9 kB / 0.5982 GB, free: 7.699 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.157e-05/0.5659, allocations: 15.23 kB / 0.5983 GB, free: 7.688 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.442e-05/0.566, allocations: 0 / 0.5983 GB, free: 7.688 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.352e-05/0.566, allocations: 12 kB / 0.5983 GB, free: 7.676 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002116/0.5681, allocations: 1.651 MB / 0.5999 GB, free: 6.105 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003357/0.5685, allocations: 226.8 kB / 0.6001 GB, free: 5.852 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001227/0.5686, allocations: 86.06 kB / 0.6002 GB, free: 5.762 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.595e-05/0.5686, allocations: 11.94 kB / 0.6002 GB, free: 5.75 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.57e-05/0.5687, allocations: 45.89 kB / 0.6002 GB, free: 5.699 MB / 394.7 MB Notification: Performance of pre-optimization done (n=26): time 1.653e-06/0.5687, allocations: 0 / 0.6002 GB, free: 5.699 MB / 394.7 MB Notification: Performance of matching and sorting (n=26): time 0.0004103/0.5691, allocations: 172.5 kB / 0.6004 GB, free: 5.547 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.21e-05/0.5692, allocations: 209 kB / 0.6006 GB, free: 5.297 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001976/0.5694, allocations: 214.4 kB / 0.6008 GB, free: 5.113 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.176e-05/0.5694, allocations: 25.7 kB / 0.6008 GB, free: 5.082 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001325/0.5696, allocations: 240.5 kB / 0.6011 GB, free: 4.875 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.403e-05/0.5697, allocations: 116.5 kB / 0.6012 GB, free: 4.777 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.203e-05/0.5697, allocations: 0 / 0.6012 GB, free: 4.777 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.5698, allocations: 346.6 kB / 0.6015 GB, free: 4.445 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001322/0.57, allocations: 68.06 kB / 0.6016 GB, free: 4.402 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003252/0.5703, allocations: 398 kB / 0.6019 GB, free: 3.898 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002138/0.5705, allocations: 146.3 kB / 0.6021 GB, free: 3.793 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.917e-06/0.5705, allocations: 7.984 kB / 0.6021 GB, free: 3.785 MB / 394.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0006482/0.5712, allocations: 430.9 kB / 0.6025 GB, free: 3.418 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/0.5712, allocations: 8 kB / 0.6025 GB, free: 3.41 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.416e-05/0.5712, allocations: 12 kB / 0.6025 GB, free: 3.398 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.732e-05/0.5713, allocations: 19.95 kB / 0.6025 GB, free: 3.379 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004189/0.5717, allocations: 154.9 kB / 0.6027 GB, free: 3.234 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.083e-05/0.5717, allocations: 24.31 kB / 0.6027 GB, free: 3.211 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002668/0.572, allocations: 59.42 kB / 0.6028 GB, free: 3.152 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.26e-05/0.572, allocations: 31.44 kB / 0.6028 GB, free: 3.125 MB / 394.7 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 () * 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.0001007/0.5721, allocations: 128.2 kB / 0.6029 GB, free: 2.996 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001327/0.5723, allocations: 27.72 kB / 0.603 GB, free: 2.969 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.941e-05/0.5723, allocations: 31.95 kB / 0.603 GB, free: 2.953 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.943e-06/0.5724, allocations: 7.953 kB / 0.603 GB, free: 2.945 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.666e-06/0.5724, allocations: 4 kB / 0.603 GB, free: 2.941 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.637e-06/0.5724, allocations: 3.984 kB / 0.603 GB, free: 2.938 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001176/0.5736, allocations: 0.5862 MB / 0.6036 GB, free: 2.363 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.5736, allocations: 4 kB / 0.6036 GB, free: 2.359 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000434/0.574, allocations: 87.5 kB / 0.6037 GB, free: 2.277 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.202e-06/0.574, allocations: 4 kB / 0.6037 GB, free: 2.273 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.986e-05/0.5741, allocations: 11.95 kB / 0.6037 GB, free: 2.262 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.5741, allocations: 8 kB / 0.6037 GB, free: 2.254 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.5741, allocations: 4 kB / 0.6037 GB, free: 2.25 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008557/0.575, allocations: 0.8844 MB / 0.6045 GB, free: 1.34 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.426e-05/0.5751, allocations: 105.2 kB / 0.6046 GB, free: 1.219 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.551e-05/0.5751, allocations: 4 kB / 0.6047 GB, free: 1.215 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003257/0.5755, allocations: 7.984 kB / 0.6047 GB, free: 1.207 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.962e-05/0.5756, allocations: 27.89 kB / 0.6047 GB, free: 1.184 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.786e-05/0.5756, allocations: 11.95 kB / 0.6047 GB, free: 1.172 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0001554/0.5757, allocations: 161.9 kB / 0.6049 GB, free: 1.043 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5758, allocations: 0 / 0.6049 GB, free: 1.043 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007596/0.5765, allocations: 95.69 kB / 0.6049 GB, free: 0.9492 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 18 (inertia5.phi,inertia5.w,inertia6.phi,inertia6.w,inertia3.phi,inertia3.w,inertia4.phi,inertia4.w,inertia2.phi,inertia2.w,inertia1.phi,inertia1.w,J6.phi,J6.w,J4.phi,J4.w,J2.phi,J2.w) * Number of discrete variables: 0 () * Number of discrete 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.0001456/0.5767, allocations: 104.2 kB / 0.605 GB, free: 0.8438 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0004589/0.5771, allocations: 228.6 kB / 0.6053 GB, free: 0.668 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.5772, allocations: 0 / 0.6053 GB, free: 0.668 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001048/0.5773, allocations: 80.92 kB / 0.6053 GB, free: 0.6055 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006159/0.5779, allocations: 46.27 kB / 0.6054 GB, free: 0.5664 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002391/0.5803, allocations: 1.51 MB / 0.6069 GB, free: 15.04 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004557/0.5808, allocations: 0.8069 MB / 0.6076 GB, free: 14.21 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.000202/0.581, allocations: 39.25 kB / 0.6077 GB, free: 14.17 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.216e-05/0.581, allocations: 31.44 kB / 0.6077 GB, free: 14.14 MB / 410.7 MB Notification: Performance of SimCode: time 5.51e-07/0.581, allocations: 0 / 0.6077 GB, free: 14.14 MB / 410.7 MB Notification: Performance of Templates: time 0.006536/0.5876, allocations: 2.513 MB / 0.6102 GB, free: 11.67 MB / 410.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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","../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches