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.001159/0.001159, allocations: 106.4 kB / 17.77 MB, free: 5.273 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.001169/0.001169, allocations: 187.9 kB / 18.71 MB, free: 4.348 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.449/1.449, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2257/0.2257, allocations: 44.19 MB / 336.7 MB, free: 2.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00122/0.00122, allocations: 59.91 kB / 470.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.466/0.4673, allocations: 60.83 MB / 0.5189 GB, free: 3.613 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.005174/0.4725, allocations: 2.824 MB / 0.5216 GB, free: 1.629 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001386/0.474, allocations: 0.6975 MB / 0.5223 GB, free: 1.117 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001836/0.4742, allocations: 10.69 kB / 0.5223 GB, free: 1.113 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002472/0.4744, allocations: 59.69 kB / 0.5224 GB, free: 1.074 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002738/0.4747, allocations: 123.2 kB / 0.5225 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003687/0.4751, allocations: 89.5 kB / 0.5226 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005372/0.4756, allocations: 429 kB / 0.523 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003188/0.476, allocations: 139.6 kB / 0.5231 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002729/0.4763, allocations: 181.7 kB / 0.5233 GB, free: 0.5664 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003119/0.4766, allocations: 178.1 kB / 0.5235 GB, free: 488 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.825e-05/0.4766, allocations: 31.72 kB / 0.5235 GB, free: 488 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.169e-05/0.4767, allocations: 32.66 kB / 0.5235 GB, free: 488 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.933e-05/0.4768, allocations: 75.73 kB / 0.5236 GB, free: 436 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001978/0.477, allocations: 200.9 kB / 0.5238 GB, free: 316 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006294/0.4776, allocations: 432.2 kB / 0.5242 GB, free: 144 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.4777, allocations: 0.6094 kB / 0.5242 GB, free: 144 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.4777, allocations: 0 / 0.5242 GB, free: 144 kB / 382.1 MB Notification: Performance of Transformations before backend: time 9.878e-06/0.4777, allocations: 0 / 0.5242 GB, free: 144 kB / 382.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.001345/0.479, allocations: 0.6504 MB / 0.5249 GB, free: 15.61 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.708e-05/0.4791, allocations: 6.344 kB / 0.5249 GB, free: 15.61 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001083/0.4792, allocations: 41.41 kB / 0.5249 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005092/0.4797, allocations: 278.1 kB / 0.5252 GB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.626e-05/0.4798, allocations: 28.5 kB / 0.5252 GB, free: 15.31 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001172/0.4799, allocations: 47.06 kB / 0.5252 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00101/0.4809, allocations: 393.1 kB / 0.5256 GB, free: 15.07 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.614e-05/0.481, allocations: 4.578 kB / 0.5256 GB, free: 15.07 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.088e-05/0.4811, allocations: 15.59 kB / 0.5256 GB, free: 15.06 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.552e-05/0.4811, allocations: 19.08 kB / 0.5257 GB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007094/0.4818, allocations: 216.6 kB / 0.5259 GB, free: 14.99 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003642/0.4855, allocations: 1.727 MB / 0.5275 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006399/0.4861, allocations: 258.2 kB / 0.5278 GB, free: 13.34 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002386/0.4864, allocations: 95.08 kB / 0.5279 GB, free: 13.26 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.105e-05/0.4864, allocations: 6.688 kB / 0.5279 GB, free: 13.26 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.233e-05/0.4865, allocations: 50.67 kB / 0.5279 GB, free: 13.2 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 3.657e-06/0.4865, allocations: 0 / 0.5279 GB, free: 13.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.0009974/0.4875, allocations: 260.8 kB / 0.5282 GB, free: 13.07 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001502/0.4877, allocations: 218.1 kB / 0.5284 GB, free: 12.81 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004164/0.4881, allocations: 269.6 kB / 0.5287 GB, free: 12.62 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.452e-05/0.4881, allocations: 31.39 kB / 0.5287 GB, free: 12.58 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002552/0.4884, allocations: 242.8 kB / 0.5289 GB, free: 12.36 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001339/0.4886, allocations: 109.9 kB / 0.529 GB, free: 12.26 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002375/0.4888, allocations: 100.1 kB / 0.5291 GB, free: 12.2 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002313/0.489, allocations: 345.5 kB / 0.5294 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003021/0.4894, allocations: 103.3 kB / 0.5295 GB, free: 11.8 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006562/0.49, allocations: 426.8 kB / 0.5299 GB, free: 11.31 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001028/0.4911, allocations: 0.572 MB / 0.5305 GB, free: 10.72 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-05/0.4911, allocations: 3.594 kB / 0.5305 GB, free: 10.72 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001321/0.4924, allocations: 0.5239 MB / 0.531 GB, free: 10.45 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.426e-05/0.4925, allocations: 9.281 kB / 0.531 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.547e-05/0.4925, allocations: 16.12 kB / 0.531 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.645e-05/0.4926, allocations: 15.06 kB / 0.5311 GB, free: 10.45 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007046/0.4933, allocations: 149.5 kB / 0.5312 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.124e-05/0.4933, allocations: 22.61 kB / 0.5312 GB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005282/0.4939, allocations: 68.03 kB / 0.5313 GB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.962e-05/0.4939, allocations: 35.06 kB / 0.5313 GB, free: 10.35 MB / 398.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.0002521/0.4942, allocations: 176.5 kB / 0.5315 GB, free: 10.19 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003148/0.4945, allocations: 35.55 kB / 0.5315 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001051/0.4947, allocations: 38.34 kB / 0.5316 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-05/0.4947, allocations: 4.281 kB / 0.5316 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.465e-05/0.4947, allocations: 2.406 kB / 0.5316 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.094e-05/0.4947, allocations: 1.375 kB / 0.5316 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001927/0.4967, allocations: 0.6604 MB / 0.5322 GB, free: 9.566 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.54e-06/0.4967, allocations: 2.969 kB / 0.5322 GB, free: 9.566 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006775/0.4974, allocations: 91.72 kB / 0.5323 GB, free: 9.543 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.969e-06/0.4974, allocations: 2.781 kB / 0.5323 GB, free: 9.543 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.488e-05/0.4974, allocations: 9.5 kB / 0.5323 GB, free: 9.539 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.123e-05/0.4974, allocations: 10.84 kB / 0.5323 GB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.626e-06/0.4975, allocations: 6.719 kB / 0.5323 GB, free: 9.527 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001044/0.4985, allocations: 0.8313 MB / 0.5331 GB, free: 8.805 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001142/0.4986, allocations: 109.8 kB / 0.5333 GB, free: 8.688 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.772e-05/0.4987, allocations: 13.61 kB / 0.5333 GB, free: 8.68 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005434/0.4993, allocations: 12.53 kB / 0.5333 GB, free: 8.672 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.507e-05/0.4994, allocations: 19.09 kB / 0.5333 GB, free: 8.664 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.486e-05/0.4994, allocations: 15.03 kB / 0.5333 GB, free: 8.656 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002479/0.4997, allocations: 184.1 kB / 0.5335 GB, free: 8.531 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4997, allocations: 0 / 0.5335 GB, free: 8.531 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001182/0.5009, allocations: 98.28 kB / 0.5336 GB, free: 8.512 MB / 398.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.0001624/0.5011, allocations: 104.3 kB / 0.5337 GB, free: 8.414 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000838/0.5019, allocations: 296.5 kB / 0.534 GB, free: 8.289 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.5019, allocations: 320 / 0.534 GB, free: 8.289 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002534/0.5022, allocations: 93.05 kB / 0.534 GB, free: 8.25 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001654/0.5039, allocations: 85.2 kB / 0.5341 GB, free: 8.199 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004165/0.508, allocations: 1.537 MB / 0.5356 GB, free: 6.93 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006679/0.5087, allocations: 0.7924 MB / 0.5364 GB, free: 6.184 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003074/0.5091, allocations: 43.02 kB / 0.5364 GB, free: 6.16 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001015/0.5092, allocations: 27.31 kB / 0.5365 GB, free: 6.152 MB / 398.1 MB Notification: Performance of SimCode: time 1.162e-06/0.5092, allocations: 0 / 0.5365 GB, free: 6.152 MB / 398.1 MB Notification: Performance of Templates: time 0.01312/0.5223, allocations: 3.049 MB / 0.5394 GB, free: 4.645 MB / 398.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