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.001441/0.001441, allocations: 113.8 kB / 17.78 MB, free: 5.285 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.0016/0.0016, allocations: 179.1 kB / 18.71 MB, free: 4.367 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.456/1.456, allocations: 222.9 MB / 242.4 MB, free: 15.07 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.3972/0.3972, allocations: 44.18 MB / 336.7 MB, free: 2.672 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001396, allocations: 59.91 kB / 470.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4235/0.425, allocations: 60.83 MB / 0.5189 GB, free: 3.617 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004031/0.429, allocations: 2.826 MB / 0.5217 GB, free: 1.629 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001223/0.4303, allocations: 0.6977 MB / 0.5223 GB, free: 1.117 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001657/0.4304, allocations: 10.72 kB / 0.5223 GB, free: 1.113 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002236/0.4307, allocations: 54.84 kB / 0.5224 GB, free: 1.078 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002352/0.4309, allocations: 125.2 kB / 0.5225 GB, free: 0.9883 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002893/0.4312, allocations: 93.27 kB / 0.5226 GB, free: 0.9336 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005036/0.4317, allocations: 437.2 kB / 0.523 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003029/0.4321, allocations: 136.3 kB / 0.5232 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002521/0.4323, allocations: 172.7 kB / 0.5233 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002712/0.4326, allocations: 173.9 kB / 0.5235 GB, free: 496 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.312e-05/0.4327, allocations: 37.31 kB / 0.5235 GB, free: 492 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.558e-05/0.4327, allocations: 34.12 kB / 0.5236 GB, free: 492 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.12e-05/0.4328, allocations: 77.48 kB / 0.5236 GB, free: 436 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001906/0.433, allocations: 200.6 kB / 0.5238 GB, free: 316 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005206/0.4335, allocations: 432.6 kB / 0.5242 GB, free: 144 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.4336, allocations: 0 / 0.5242 GB, free: 144 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.4336, allocations: 0 / 0.5242 GB, free: 144 kB / 382.1 MB Notification: Performance of Transformations before backend: time 7.974e-06/0.4336, 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.001006/0.4346, allocations: 0.6484 MB / 0.5249 GB, free: 15.61 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.801e-05/0.4346, allocations: 9.188 kB / 0.5249 GB, free: 15.61 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.699e-05/0.4347, allocations: 41.16 kB / 0.5249 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003339/0.4351, allocations: 282.4 kB / 0.5252 GB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.149e-05/0.4351, allocations: 23.89 kB / 0.5252 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.327e-05/0.4352, allocations: 47.41 kB / 0.5253 GB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006933/0.4359, allocations: 392.8 kB / 0.5256 GB, free: 15.08 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.152e-05/0.4359, allocations: 13.14 kB / 0.5256 GB, free: 15.07 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.835e-05/0.436, allocations: 16.44 kB / 0.5257 GB, free: 15.06 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.487e-05/0.436, allocations: 13.66 kB / 0.5257 GB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004776/0.4365, allocations: 219.7 kB / 0.5259 GB, free: 14.99 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002319/0.4388, allocations: 1.715 MB / 0.5276 GB, free: 13.57 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000415/0.4392, allocations: 265.2 kB / 0.5278 GB, free: 13.33 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001585/0.4394, allocations: 99.28 kB / 0.5279 GB, free: 13.24 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.63e-05/0.4394, allocations: 2.812 kB / 0.5279 GB, free: 13.24 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.495e-05/0.4395, allocations: 50.06 kB / 0.5279 GB, free: 13.19 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 1.553e-06/0.4395, allocations: 1.094 kB / 0.528 GB, free: 13.19 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006761/0.4402, allocations: 260.6 kB / 0.5282 GB, free: 13.05 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001106/0.4403, allocations: 218.2 kB / 0.5284 GB, free: 12.79 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002615/0.4406, allocations: 272.9 kB / 0.5287 GB, free: 12.6 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.183e-05/0.4406, allocations: 27.95 kB / 0.5287 GB, free: 12.57 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000151/0.4408, allocations: 240.4 kB / 0.5289 GB, free: 12.34 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.044e-05/0.4408, allocations: 116.5 kB / 0.529 GB, free: 12.24 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001171/0.441, allocations: 100.3 kB / 0.5291 GB, free: 12.18 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001786/0.4412, allocations: 345.7 kB / 0.5295 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001985/0.4414, allocations: 99.83 kB / 0.5296 GB, free: 11.79 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000423/0.4418, allocations: 426 kB / 0.53 GB, free: 11.3 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007183/0.4425, allocations: 0.5681 MB / 0.5305 GB, free: 10.71 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.835e-06/0.4425, allocations: 3.844 kB / 0.5305 GB, free: 10.71 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008542/0.4434, allocations: 0.5307 MB / 0.531 GB, free: 10.43 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.374e-05/0.4434, allocations: 10.62 kB / 0.531 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.814e-05/0.4434, allocations: 11.47 kB / 0.5311 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.656e-05/0.4435, allocations: 15.84 kB / 0.5311 GB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004534/0.4439, allocations: 144 kB / 0.5312 GB, free: 10.4 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.688e-05/0.444, allocations: 23.52 kB / 0.5312 GB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003107/0.4443, allocations: 63.44 kB / 0.5313 GB, free: 10.35 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.064e-05/0.4444, allocations: 39.77 kB / 0.5313 GB, free: 10.34 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.0001638/0.4445, allocations: 184.2 kB / 0.5315 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001601/0.4447, allocations: 36.31 kB / 0.5315 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.292e-05/0.4448, allocations: 33.12 kB / 0.5316 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-06/0.4448, allocations: 4.594 kB / 0.5316 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.879e-06/0.4448, allocations: 3.219 kB / 0.5316 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.995e-06/0.4448, allocations: 1.25 kB / 0.5316 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001207/0.446, allocations: 0.664 MB / 0.5322 GB, free: 9.547 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.62e-06/0.446, allocations: 5.812 kB / 0.5322 GB, free: 9.543 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004479/0.4465, allocations: 84.48 kB / 0.5323 GB, free: 9.527 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.312e-06/0.4465, allocations: 3.125 kB / 0.5323 GB, free: 9.527 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.678e-05/0.4465, allocations: 10.03 kB / 0.5323 GB, free: 9.523 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.127e-05/0.4465, allocations: 11.08 kB / 0.5323 GB, free: 9.516 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/0.4465, allocations: 6.203 kB / 0.5323 GB, free: 9.512 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007282/0.4473, allocations: 0.8381 MB / 0.5332 GB, free: 8.781 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.663e-05/0.4474, allocations: 106.5 kB / 0.5333 GB, free: 8.668 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.625e-05/0.4474, allocations: 9.469 kB / 0.5333 GB, free: 8.664 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003417/0.4478, allocations: 17.8 kB / 0.5333 GB, free: 8.652 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.552e-05/0.4478, allocations: 21.83 kB / 0.5333 GB, free: 8.641 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.77e-05/0.4479, allocations: 11.42 kB / 0.5333 GB, free: 8.637 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001663/0.448, allocations: 183.7 kB / 0.5335 GB, free: 8.512 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.448, allocations: 0 / 0.5335 GB, free: 8.512 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0007276/0.4488, allocations: 98.84 kB / 0.5336 GB, free: 8.492 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.0001319/0.4489, allocations: 108 kB / 0.5337 GB, free: 8.391 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005799/0.4495, allocations: 287.3 kB / 0.534 GB, free: 8.273 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.4495, allocations: 2.219 kB / 0.534 GB, free: 8.273 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001831/0.4497, allocations: 93.36 kB / 0.5341 GB, free: 8.234 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009284/0.4506, allocations: 69.33 kB / 0.5341 GB, free: 8.191 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002159/0.4528, allocations: 1.533 MB / 0.5356 GB, free: 6.926 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004355/0.4533, allocations: 0.7963 MB / 0.5364 GB, free: 6.176 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001518/0.4534, allocations: 49.78 kB / 0.5365 GB, free: 6.145 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.675e-05/0.4535, allocations: 27.75 kB / 0.5365 GB, free: 6.137 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.4535, allocations: 0 / 0.5365 GB, free: 6.137 MB / 398.1 MB Notification: Performance of Templates: time 0.007073/0.4606, allocations: 3 MB / 0.5394 GB, free: 4.676 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