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.001478/0.001478, allocations: 118.4 kB / 17.79 MB, free: 5.254 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.001648/0.001648, allocations: 183.8 kB / 18.72 MB, free: 4.332 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.559/1.559, 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.2127/0.2127, allocations: 44.19 MB / 336.8 MB, free: 2.66 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 59.91 kB / 470.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4112/0.4125, allocations: 60.82 MB / 0.5189 GB, free: 3.621 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.004389/0.4169, allocations: 2.851 MB / 0.5217 GB, free: 1.617 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001277/0.4182, allocations: 0.6956 MB / 0.5224 GB, free: 1.109 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001936/0.4184, allocations: 6.406 kB / 0.5224 GB, free: 1.109 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002168/0.4186, allocations: 59.48 kB / 0.5224 GB, free: 1.07 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000261/0.4189, allocations: 132.2 kB / 0.5225 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003261/0.4192, allocations: 90.27 kB / 0.5226 GB, free: 0.9219 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004113/0.4196, allocations: 428.9 kB / 0.523 GB, free: 0.707 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002164/0.4198, allocations: 102.9 kB / 0.5231 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002141/0.42, allocations: 171.6 kB / 0.5233 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00021/0.4202, allocations: 177.8 kB / 0.5235 GB, free: 496 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.251e-05/0.4203, allocations: 32.88 kB / 0.5235 GB, free: 496 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.834e-05/0.4204, allocations: 33.19 kB / 0.5235 GB, free: 496 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.64e-05/0.4204, allocations: 82.81 kB / 0.5236 GB, free: 436 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001705/0.4206, allocations: 192.8 kB / 0.5238 GB, free: 324 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006243/0.4212, allocations: 438.9 kB / 0.5242 GB, free: 144 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.708e-06/0.4212, allocations: 1.188 kB / 0.5242 GB, free: 144 kB / 382.1 MB Notification: Performance of FrontEnd: time 3.246e-06/0.4212, allocations: 0 / 0.5242 GB, free: 144 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.303e-05/0.4213, 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.001331/0.4226, allocations: 0.6528 MB / 0.5249 GB, free: 15.61 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.629e-05/0.4226, allocations: 13.59 kB / 0.5249 GB, free: 15.6 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001309/0.4228, allocations: 48.03 kB / 0.5249 GB, free: 15.58 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005585/0.4233, allocations: 275.9 kB / 0.5252 GB, free: 15.31 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.437e-05/0.4234, allocations: 28.03 kB / 0.5252 GB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.343e-05/0.4235, allocations: 43.16 kB / 0.5252 GB, free: 15.28 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008165/0.4243, allocations: 396.2 kB / 0.5256 GB, free: 15.06 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.238e-05/0.4243, allocations: 7.125 kB / 0.5256 GB, free: 15.06 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.538e-05/0.4244, allocations: 17.19 kB / 0.5256 GB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.096e-05/0.4244, allocations: 13.16 kB / 0.5257 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005109/0.4249, allocations: 220.9 kB / 0.5259 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002485/0.4274, allocations: 1.719 MB / 0.5276 GB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004233/0.4278, allocations: 255.7 kB / 0.5278 GB, free: 13.32 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001543/0.428, allocations: 92.33 kB / 0.5279 GB, free: 13.24 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.74e-05/0.428, allocations: 6.688 kB / 0.5279 GB, free: 13.23 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.807e-05/0.428, allocations: 46.69 kB / 0.5279 GB, free: 13.18 MB / 398.1 MB Notification: Performance of pre-optimization done (n=26): time 1.974e-06/0.428, allocations: 0 / 0.5279 GB, free: 13.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.0006479/0.4287, allocations: 268.9 kB / 0.5282 GB, free: 13.04 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.175e-05/0.4288, allocations: 214.1 kB / 0.5284 GB, free: 12.79 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002441/0.429, allocations: 273.5 kB / 0.5287 GB, free: 12.59 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.192e-05/0.429, allocations: 31.08 kB / 0.5287 GB, free: 12.55 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001328/0.4292, allocations: 244.8 kB / 0.5289 GB, free: 12.33 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.716e-05/0.4292, allocations: 125.8 kB / 0.529 GB, free: 12.22 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001255/0.4294, allocations: 99.64 kB / 0.5291 GB, free: 12.15 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.4295, allocations: 347.2 kB / 0.5295 GB, free: 11.81 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001949/0.4297, allocations: 94.39 kB / 0.5296 GB, free: 11.77 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003919/0.4301, allocations: 430.8 kB / 0.53 GB, free: 11.27 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006288/0.4307, allocations: 0.5721 MB / 0.5305 GB, free: 10.68 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/0.4307, allocations: 3.344 kB / 0.5305 GB, free: 10.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0008095/0.4315, allocations: 0.5232 MB / 0.531 GB, free: 10.41 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.322e-05/0.4315, allocations: 10.28 kB / 0.531 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.978e-05/0.4315, allocations: 15.72 kB / 0.5311 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.035e-05/0.4316, allocations: 16.28 kB / 0.5311 GB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004278/0.432, allocations: 144.6 kB / 0.5312 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.797e-05/0.432, allocations: 22.92 kB / 0.5312 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003171/0.4324, allocations: 71.38 kB / 0.5313 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.151e-05/0.4324, allocations: 40.25 kB / 0.5313 GB, free: 10.31 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.0001741/0.4326, allocations: 171.6 kB / 0.5315 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001459/0.4327, allocations: 31.81 kB / 0.5315 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.514e-05/0.4328, allocations: 42.88 kB / 0.5316 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.642e-06/0.4328, allocations: 5.031 kB / 0.5316 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.658e-06/0.4328, allocations: 5.219 kB / 0.5316 GB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.105e-06/0.4328, allocations: 10.39 kB / 0.5316 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001214/0.434, allocations: 0.6512 MB / 0.5322 GB, free: 9.523 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.027e-06/0.434, allocations: 2.156 kB / 0.5322 GB, free: 9.523 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004379/0.4345, allocations: 89.33 kB / 0.5323 GB, free: 9.504 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.761e-06/0.4345, allocations: 2.562 kB / 0.5323 GB, free: 9.504 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.656e-05/0.4345, allocations: 13.73 kB / 0.5323 GB, free: 9.496 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.801e-06/0.4345, allocations: 6.969 kB / 0.5323 GB, free: 9.492 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/0.4345, allocations: 2.812 kB / 0.5323 GB, free: 9.492 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006962/0.4352, allocations: 0.8418 MB / 0.5332 GB, free: 8.758 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.917e-05/0.4353, allocations: 106.8 kB / 0.5333 GB, free: 8.645 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.809e-05/0.4353, allocations: 13.75 kB / 0.5333 GB, free: 8.637 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003322/0.4356, allocations: 8.172 kB / 0.5333 GB, free: 8.633 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.986e-05/0.4357, allocations: 22.92 kB / 0.5333 GB, free: 8.621 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.743e-05/0.4357, allocations: 19.48 kB / 0.5333 GB, free: 8.609 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001621/0.4359, allocations: 182.8 kB / 0.5335 GB, free: 8.484 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4359, allocations: 1.75 kB / 0.5335 GB, free: 8.484 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008152/0.4367, allocations: 98.11 kB / 0.5336 GB, free: 8.465 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.0001644/0.4369, allocations: 102.8 kB / 0.5337 GB, free: 8.367 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006379/0.4375, allocations: 288.2 kB / 0.534 GB, free: 8.242 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.4375, allocations: 0 / 0.534 GB, free: 8.242 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002085/0.4377, allocations: 82.19 kB / 0.5341 GB, free: 8.211 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001012/0.4387, allocations: 78.48 kB / 0.5341 GB, free: 8.164 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002227/0.441, allocations: 1.551 MB / 0.5356 GB, free: 6.883 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000377/0.4413, allocations: 0.7962 MB / 0.5364 GB, free: 6.133 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000173/0.4415, allocations: 42.36 kB / 0.5365 GB, free: 6.109 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.439e-05/0.4416, allocations: 31.8 kB / 0.5365 GB, free: 6.098 MB / 398.1 MB Notification: Performance of SimCode: time 6.41e-07/0.4416, allocations: 0 / 0.5365 GB, free: 6.098 MB / 398.1 MB Notification: Performance of Templates: time 0.007106/0.4487, allocations: 3.042 MB / 0.5395 GB, free: 4.59 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