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.002477/0.002477, allocations: 196.7 kB / 18.1 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.457/1.457, allocations: 226.5 MB / 245.4 MB, free: 6.516 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009215/0.0009215, allocations: 99.14 kB / 297.5 MB, free: 6.688 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3811/0.3811, allocations: 44.82 MB / 394.3 MB, free: 35.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000367/0.0003671, allocations: 8 kB / 467.9 MB, free: 12.06 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4344/0.4348, allocations: 62.97 MB / 0.5184 GB, free: 37.56 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1268/0.5616, allocations: 88.98 MB / 0.6053 GB, free: 340 kB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002938/0.562, allocations: 71.95 kB / 0.6054 GB, free: 272 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02288/0.5849, allocations: 6.332 MB / 0.6116 GB, free: 9.91 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.268e-06/0.585, allocations: 0 / 0.6116 GB, free: 9.91 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.799e-05/0.585, allocations: 8 kB / 0.6116 GB, free: 9.902 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.001422/0.5864, allocations: 0.5815 MB / 0.6121 GB, free: 9.266 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.785e-05/0.5865, allocations: 8.031 kB / 0.6121 GB, free: 9.258 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003871/0.5869, allocations: 60.45 kB / 0.6122 GB, free: 9.199 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000475/0.5874, allocations: 281.2 kB / 0.6125 GB, free: 8.883 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.385e-05/0.5875, allocations: 29.38 kB / 0.6125 GB, free: 8.855 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001185/0.5876, allocations: 40.28 kB / 0.6125 GB, free: 8.816 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001004/0.5886, allocations: 398.7 kB / 0.6129 GB, free: 8.391 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.319e-05/0.5887, allocations: 12.09 kB / 0.6129 GB, free: 8.379 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.471e-05/0.5888, allocations: 19.94 kB / 0.613 GB, free: 8.359 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.69e-05/0.5888, allocations: 11.94 kB / 0.613 GB, free: 8.348 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006849/0.5895, allocations: 227.7 kB / 0.6132 GB, free: 8.125 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003304/0.5928, allocations: 1.711 MB / 0.6149 GB, free: 6.305 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006235/0.5935, allocations: 262.3 kB / 0.6151 GB, free: 5.984 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002484/0.5937, allocations: 98.11 kB / 0.6152 GB, free: 5.867 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.735e-05/0.5938, allocations: 8 kB / 0.6152 GB, free: 5.859 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.699e-05/0.5939, allocations: 54.48 kB / 0.6153 GB, free: 5.797 MB / 426.7 MB Notification: Performance of pre-optimization done (n=26): time 3.446e-06/0.5939, allocations: 0 / 0.6153 GB, free: 5.797 MB / 426.7 MB Notification: Performance of matching and sorting (n=26): time 0.001013/0.5949, allocations: 269.4 kB / 0.6155 GB, free: 5.527 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001712/0.5951, allocations: 213.6 kB / 0.6157 GB, free: 5.27 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004018/0.5955, allocations: 274.9 kB / 0.616 GB, free: 4.992 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.754e-05/0.5956, allocations: 29.7 kB / 0.616 GB, free: 4.957 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002068/0.5958, allocations: 231.3 kB / 0.6162 GB, free: 4.727 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001316/0.5959, allocations: 118.5 kB / 0.6163 GB, free: 4.609 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.034e-05/0.596, allocations: 8 kB / 0.6163 GB, free: 4.602 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001981/0.5962, allocations: 355.1 kB / 0.6167 GB, free: 4.246 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002985/0.5965, allocations: 101.2 kB / 0.6168 GB, free: 4.148 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005658/0.5971, allocations: 432.8 kB / 0.6172 GB, free: 3.566 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001064/0.5982, allocations: 0.5744 MB / 0.6178 GB, free: 2.832 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.631e-05/0.5982, allocations: 4 kB / 0.6178 GB, free: 2.828 MB / 426.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001419/0.5996, allocations: 0.5325 MB / 0.6183 GB, free: 2.289 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.514e-05/0.5997, allocations: 10.5 kB / 0.6183 GB, free: 2.281 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.958e-05/0.5997, allocations: 12 kB / 0.6183 GB, free: 2.27 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.535e-05/0.5997, allocations: 16 kB / 0.6183 GB, free: 2.254 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00065/0.6004, allocations: 151.7 kB / 0.6185 GB, free: 2.105 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.39e-05/0.6005, allocations: 19.94 kB / 0.6185 GB, free: 2.086 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005209/0.601, allocations: 75.52 kB / 0.6186 GB, free: 2.012 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.726e-05/0.6011, allocations: 32 kB / 0.6186 GB, free: 1.98 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.0002998/0.6014, allocations: 177.5 kB / 0.6188 GB, free: 1.797 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002293/0.6016, allocations: 35.62 kB / 0.6188 GB, free: 1.762 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.876e-05/0.6017, allocations: 33.78 kB / 0.6188 GB, free: 1.727 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.385e-06/0.6017, allocations: 4 kB / 0.6188 GB, free: 1.723 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.825e-05/0.6018, allocations: 3.984 kB / 0.6188 GB, free: 1.719 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.151e-05/0.6018, allocations: 4 kB / 0.6188 GB, free: 1.715 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002042/0.6038, allocations: 0.6552 MB / 0.6195 GB, free: 0.9961 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.6039, allocations: 0 / 0.6195 GB, free: 0.9961 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006373/0.6045, allocations: 91.89 kB / 0.6196 GB, free: 0.9062 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.28e-05/0.6045, allocations: 4 kB / 0.6196 GB, free: 0.9023 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.568e-05/0.6046, allocations: 8.625 kB / 0.6196 GB, free: 0.8945 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.128e-05/0.6046, allocations: 7.984 kB / 0.6196 GB, free: 0.8867 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.886e-06/0.6046, allocations: 11.94 kB / 0.6196 GB, free: 0.875 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001008/0.6056, allocations: 0.8371 MB / 0.6204 GB, free: 12 kB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001595/0.6058, allocations: 112.8 kB / 0.6205 GB, free: 15.88 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.54e-05/0.6059, allocations: 8 kB / 0.6205 GB, free: 15.88 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004883/0.6064, allocations: 16 kB / 0.6205 GB, free: 15.86 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.07e-05/0.6065, allocations: 27.84 kB / 0.6206 GB, free: 15.83 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.563e-05/0.6065, allocations: 11.98 kB / 0.6206 GB, free: 15.82 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.000247/0.6068, allocations: 178 kB / 0.6207 GB, free: 15.65 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6068, allocations: 0 / 0.6207 GB, free: 15.65 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001289/0.6081, allocations: 107.8 kB / 0.6208 GB, free: 15.54 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.0001964/0.6083, allocations: 119.2 kB / 0.621 GB, free: 15.42 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0008444/0.6091, allocations: 289.4 kB / 0.6212 GB, free: 15.14 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.351e-06/0.6092, allocations: 1.438 kB / 0.6212 GB, free: 15.14 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002412/0.6094, allocations: 96.27 kB / 0.6213 GB, free: 15.04 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001414/0.6108, allocations: 70.97 kB / 0.6214 GB, free: 14.97 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002639/0.6135, allocations: 1.891 MB / 0.6232 GB, free: 13.03 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004765/0.614, allocations: 0.8031 MB / 0.624 GB, free: 12.2 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0002202/0.6142, allocations: 47.25 kB / 0.6241 GB, free: 12.16 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.928e-05/0.6143, allocations: 27.44 kB / 0.6241 GB, free: 12.13 MB / 442.7 MB Notification: Performance of SimCode: time 5.71e-07/0.6143, allocations: 3.938 kB / 0.6241 GB, free: 12.12 MB / 442.7 MB Notification: Performance of Templates: time 0.006701/0.621, allocations: 2.681 MB / 0.6267 GB, free: 9.465 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/jenkins1/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