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.001477/0.001476, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.244/1.244, allocations: 227.2 MB / 245 MB, free: 5.895 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009868/0.0009868, allocations: 105 kB / 297.3 MB, free: 5.988 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3006/0.3006, allocations: 45.23 MB / 394.7 MB, free: 31.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002806/0.0002807, allocations: 12 kB / 468.4 MB, free: 7.746 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2933/0.2936, allocations: 63.24 MB / 0.5192 GB, free: 37.63 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1075/0.4011, allocations: 89.12 MB / 0.6062 GB, free: 14.35 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002122/0.4014, allocations: 67.97 kB / 0.6063 GB, free: 14.28 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01659/0.418, allocations: 6.344 MB / 0.6125 GB, free: 7.918 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.418, allocations: 0 / 0.6125 GB, free: 7.918 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.572e-05/0.418, allocations: 8 kB / 0.6125 GB, free: 7.91 MB / 426.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.0007565/0.4188, allocations: 0.5813 MB / 0.6131 GB, free: 7.277 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.441e-05/0.4188, allocations: 12.03 kB / 0.6131 GB, free: 7.266 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002337/0.4191, allocations: 67.45 kB / 0.6131 GB, free: 7.199 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002679/0.4193, allocations: 255.3 kB / 0.6134 GB, free: 6.906 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.639e-05/0.4194, allocations: 29 kB / 0.6134 GB, free: 6.879 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.748e-05/0.4194, allocations: 47.84 kB / 0.6134 GB, free: 6.832 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005474/0.42, allocations: 394.1 kB / 0.6138 GB, free: 6.414 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.153e-05/0.42, allocations: 8 kB / 0.6138 GB, free: 6.406 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.186e-05/0.4201, allocations: 23.94 kB / 0.6138 GB, free: 6.383 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.028e-05/0.4201, allocations: 8 kB / 0.6139 GB, free: 6.375 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003899/0.4205, allocations: 227.7 kB / 0.6141 GB, free: 6.152 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001996/0.4225, allocations: 1.725 MB / 0.6158 GB, free: 4.32 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003835/0.4229, allocations: 258.3 kB / 0.616 GB, free: 4.004 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.025e-05/0.4229, allocations: 4 kB / 0.616 GB, free: 4 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.68e-05/0.423, allocations: 46.62 kB / 0.6161 GB, free: 3.945 MB / 426.7 MB Notification: Performance of pre-optimization done (n=26): time 1.493e-06/0.423, allocations: 0 / 0.6161 GB, free: 3.945 MB / 426.7 MB Notification: Performance of matching and sorting (n=26): time 0.0006378/0.4236, allocations: 277.4 kB / 0.6163 GB, free: 3.668 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001097/0.4237, allocations: 213.6 kB / 0.6165 GB, free: 3.41 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002224/0.424, allocations: 242 kB / 0.6168 GB, free: 3.168 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.964e-05/0.424, allocations: 25.7 kB / 0.6168 GB, free: 3.137 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000152/0.4241, allocations: 239.2 kB / 0.617 GB, free: 2.898 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.672e-05/0.4242, allocations: 118.5 kB / 0.6171 GB, free: 2.781 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.527e-05/0.4242, allocations: 12 kB / 0.6171 GB, free: 2.77 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.4244, allocations: 346.8 kB / 0.6175 GB, free: 2.422 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001775/0.4246, allocations: 97.27 kB / 0.6176 GB, free: 2.328 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003777/0.425, allocations: 433.2 kB / 0.618 GB, free: 1.746 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002656/0.4252, allocations: 171.8 kB / 0.6181 GB, free: 1.578 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.4252, allocations: 4 kB / 0.6181 GB, free: 1.574 MB / 426.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0007552/0.426, allocations: 0.529 MB / 0.6186 GB, free: 1.039 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.077e-05/0.426, allocations: 12 kB / 0.6187 GB, free: 1.027 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.236e-05/0.4261, allocations: 8.5 kB / 0.6187 GB, free: 1.02 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.418e-05/0.4261, allocations: 20 kB / 0.6187 GB, free: 1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004213/0.4265, allocations: 151.7 kB / 0.6188 GB, free: 0.8516 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.796e-05/0.4265, allocations: 15.94 kB / 0.6188 GB, free: 0.8359 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002694/0.4268, allocations: 83.64 kB / 0.6189 GB, free: 0.7539 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.554e-05/0.4269, allocations: 35.94 kB / 0.619 GB, free: 0.7188 MB / 426.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 () * 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.0001631/0.427, allocations: 173.5 kB / 0.6191 GB, free: 0.5391 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001385/0.4272, allocations: 31.72 kB / 0.6192 GB, free: 0.5078 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.541e-05/0.4272, allocations: 37.72 kB / 0.6192 GB, free: 484 kB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.304e-06/0.4273, allocations: 8 kB / 0.6192 GB, free: 476 kB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.4273, allocations: 3.938 kB / 0.6192 GB, free: 472 kB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.798e-06/0.4273, allocations: 7.984 kB / 0.6192 GB, free: 464 kB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001192/0.4285, allocations: 0.6397 MB / 0.6198 GB, free: 15.75 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.4285, allocations: 4 kB / 0.6198 GB, free: 15.74 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004284/0.4289, allocations: 95.88 kB / 0.6199 GB, free: 15.65 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/0.429, allocations: 4 kB / 0.6199 GB, free: 15.64 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.643e-05/0.429, allocations: 11.94 kB / 0.6199 GB, free: 15.63 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.61e-06/0.429, allocations: 12 kB / 0.62 GB, free: 15.62 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.429, allocations: 0 / 0.62 GB, free: 15.62 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008632/0.4299, allocations: 0.9403 MB / 0.6209 GB, free: 14.6 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.562e-05/0.43, allocations: 112.8 kB / 0.621 GB, free: 14.47 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.278e-05/0.43, allocations: 11.95 kB / 0.621 GB, free: 14.46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000316/0.4304, allocations: 12 kB / 0.621 GB, free: 14.45 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.821e-05/0.4304, allocations: 23.97 kB / 0.621 GB, free: 14.43 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.605e-05/0.4304, allocations: 11.98 kB / 0.621 GB, free: 14.41 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0001661/0.4306, allocations: 182 kB / 0.6212 GB, free: 14.24 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4306, allocations: 0 / 0.6212 GB, free: 14.24 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0006974/0.4313, allocations: 99.84 kB / 0.6213 GB, free: 14.14 MB / 442.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 () * 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.0001782/0.4315, allocations: 119.4 kB / 0.6214 GB, free: 14.01 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0004955/0.432, allocations: 293.5 kB / 0.6217 GB, free: 13.73 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.432, allocations: 0 / 0.6217 GB, free: 13.73 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001764/0.4322, allocations: 89.02 kB / 0.6218 GB, free: 13.64 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006253/0.4328, allocations: 71.62 kB / 0.6219 GB, free: 13.57 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002285/0.4351, allocations: 1.887 MB / 0.6237 GB, free: 11.63 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003976/0.4356, allocations: 0.8111 MB / 0.6245 GB, free: 10.8 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0001706/0.4357, allocations: 43.25 kB / 0.6245 GB, free: 10.75 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.976e-05/0.4358, allocations: 27.44 kB / 0.6246 GB, free: 10.73 MB / 442.7 MB Notification: Performance of SimCode: time 5.01e-07/0.4358, allocations: 4 kB / 0.6246 GB, free: 10.72 MB / 442.7 MB Notification: Performance of Templates: time 0.005794/0.4416, allocations: 2.658 MB / 0.6272 GB, free: 8.09 MB / 442.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