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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001139/0.001138, allocations: 186.9 kB / 17.97 MB, free: 3.797 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.329/1.329, allocations: 222.9 MB / 241.6 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009813/0.0009813, allocations: 110.2 kB / 291.9 MB, free: 10.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.4404/0.4404, allocations: 44.13 MB / 386.1 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001072/0.001072, allocations: 59.92 kB / 457.7 MB, free: 2.305 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3964/0.3975, allocations: 60.8 MB / 0.5064 GB, free: 38.42 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.005004/0.4026, allocations: 2.863 MB / 0.5092 GB, free: 36.42 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001205/0.4038, allocations: 0.7026 MB / 0.5099 GB, free: 35.9 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001958/0.404, allocations: 5.75 kB / 0.5099 GB, free: 35.9 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002125/0.4042, allocations: 42.47 kB / 0.5099 GB, free: 35.88 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002835/0.4046, allocations: 110.9 kB / 0.51 GB, free: 35.8 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003096/0.4049, allocations: 73.16 kB / 0.5101 GB, free: 35.75 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004404/0.4053, allocations: 420.1 kB / 0.5105 GB, free: 35.55 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002607/0.4056, allocations: 113.9 kB / 0.5106 GB, free: 35.5 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002037/0.4058, allocations: 163.2 kB / 0.5108 GB, free: 35.42 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002625/0.4061, allocations: 166.6 kB / 0.5109 GB, free: 35.34 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.619e-05/0.4062, allocations: 21.62 kB / 0.5109 GB, free: 35.34 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.06e-05/0.4063, allocations: 23.59 kB / 0.511 GB, free: 35.34 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.098e-05/0.4064, allocations: 67.56 kB / 0.511 GB, free: 35.3 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002201/0.4066, allocations: 185.1 kB / 0.5112 GB, free: 35.2 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004815/0.4071, allocations: 414.1 kB / 0.5116 GB, free: 35.03 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.213e-06/0.4071, allocations: 3.938 kB / 0.5116 GB, free: 35.03 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.324e-06/0.4071, allocations: 4 kB / 0.5116 GB, free: 35.02 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.454e-06/0.4071, allocations: 0 / 0.5116 GB, free: 35.02 MB / 378.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.001181/0.4083, allocations: 0.6347 MB / 0.5122 GB, free: 34.51 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.229e-05/0.4084, allocations: 11.03 kB / 0.5122 GB, free: 34.51 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001129/0.4085, allocations: 45.75 kB / 0.5123 GB, free: 34.48 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003644/0.4089, allocations: 280.6 kB / 0.5125 GB, free: 34.22 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.976e-05/0.4089, allocations: 33.62 kB / 0.5126 GB, free: 34.2 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.286e-05/0.409, allocations: 39.81 kB / 0.5126 GB, free: 34.18 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007616/0.4098, allocations: 393.9 kB / 0.513 GB, free: 33.96 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.247e-05/0.4099, allocations: 13.72 kB / 0.513 GB, free: 33.95 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.943e-05/0.4099, allocations: 14.91 kB / 0.513 GB, free: 33.94 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.318e-05/0.4099, allocations: 8.5 kB / 0.513 GB, free: 33.94 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005114/0.4104, allocations: 219.9 kB / 0.5132 GB, free: 33.88 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002478/0.4129, allocations: 1.728 MB / 0.5149 GB, free: 32.5 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005006/0.4135, allocations: 260.1 kB / 0.5152 GB, free: 32.29 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002078/0.4137, allocations: 92.73 kB / 0.5153 GB, free: 32.22 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.392e-05/0.4137, allocations: 11.06 kB / 0.5153 GB, free: 32.21 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3e-05/0.4138, allocations: 46.72 kB / 0.5153 GB, free: 32.16 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 2.876e-06/0.4138, allocations: 3.984 kB / 0.5153 GB, free: 32.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=26): time 0.0009275/0.4147, allocations: 257.2 kB / 0.5156 GB, free: 32.06 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.652e-05/0.4148, allocations: 222.7 kB / 0.5158 GB, free: 31.8 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002936/0.4151, allocations: 270.2 kB / 0.516 GB, free: 31.64 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.029e-05/0.4151, allocations: 32.52 kB / 0.5161 GB, free: 31.61 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001286/0.4153, allocations: 241 kB / 0.5163 GB, free: 31.4 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.126e-05/0.4154, allocations: 109.2 kB / 0.5164 GB, free: 31.32 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001418/0.4155, allocations: 100.3 kB / 0.5165 GB, free: 31.26 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.801e-05/0.4156, allocations: 348.8 kB / 0.5168 GB, free: 30.93 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002735/0.4159, allocations: 95.53 kB / 0.5169 GB, free: 30.9 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004743/0.4164, allocations: 433.7 kB / 0.5173 GB, free: 30.42 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000808/0.4172, allocations: 0.5658 MB / 0.5179 GB, free: 29.85 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.062e-05/0.4172, allocations: 7.219 kB / 0.5179 GB, free: 29.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001232/0.4185, allocations: 0.5255 MB / 0.5184 GB, free: 29.62 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.508e-05/0.4185, allocations: 8.656 kB / 0.5184 GB, free: 29.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.759e-05/0.4185, allocations: 14.28 kB / 0.5184 GB, free: 29.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.413e-05/0.4186, allocations: 17.31 kB / 0.5184 GB, free: 29.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006373/0.4192, allocations: 145.5 kB / 0.5186 GB, free: 29.61 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.481e-05/0.4193, allocations: 26.38 kB / 0.5186 GB, free: 29.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004667/0.4198, allocations: 70.38 kB / 0.5187 GB, free: 29.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.828e-05/0.4198, allocations: 36.78 kB / 0.5187 GB, free: 29.55 MB / 378.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001743/0.42, allocations: 180 kB / 0.5189 GB, free: 29.38 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000238/0.4203, allocations: 29.22 kB / 0.5189 GB, free: 29.37 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.899e-05/0.4204, allocations: 37.53 kB / 0.5189 GB, free: 29.34 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.505e-06/0.4204, allocations: 2.844 kB / 0.5189 GB, free: 29.34 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.638e-06/0.4204, allocations: 7.344 kB / 0.519 GB, free: 29.34 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.4204, allocations: 6.156 kB / 0.519 GB, free: 29.34 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001747/0.4222, allocations: 0.6548 MB / 0.5196 GB, free: 28.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.4222, allocations: 2.844 kB / 0.5196 GB, free: 28.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006913/0.4229, allocations: 88.48 kB / 0.5197 GB, free: 28.83 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.162e-06/0.4229, allocations: 5.875 kB / 0.5197 GB, free: 28.83 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.169e-05/0.423, allocations: 8.75 kB / 0.5197 GB, free: 28.83 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.553e-06/0.423, allocations: 10.94 kB / 0.5197 GB, free: 28.82 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.423, allocations: 6.969 kB / 0.5197 GB, free: 28.82 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003126/0.4261, allocations: 2.511 MB / 0.5222 GB, free: 26.86 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.661e-05/0.4262, allocations: 101.5 kB / 0.5223 GB, free: 26.75 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.385e-05/0.4263, allocations: 12.72 kB / 0.5223 GB, free: 26.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000607/0.4269, allocations: 12.78 kB / 0.5223 GB, free: 26.74 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.433e-05/0.427, allocations: 26.27 kB / 0.5223 GB, free: 26.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.357e-05/0.427, allocations: 11.66 kB / 0.5223 GB, free: 26.73 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001886/0.4272, allocations: 179.9 kB / 0.5225 GB, free: 26.62 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.4272, allocations: 3.938 kB / 0.5225 GB, free: 26.62 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001431/0.4287, allocations: 138.9 kB / 0.5226 GB, free: 26.59 MB / 378.7 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.0001156/0.4288, allocations: 109.1 kB / 0.5227 GB, free: 26.49 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006637/0.4295, allocations: 289.9 kB / 0.523 GB, free: 26.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.4295, allocations: 0 / 0.523 GB, free: 26.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002199/0.4297, allocations: 87.89 kB / 0.5231 GB, free: 26.38 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001638/0.4314, allocations: 75.52 kB / 0.5232 GB, free: 26.36 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003021/0.4344, allocations: 1.886 MB / 0.525 GB, free: 24.82 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002939/0.4347, allocations: 0.7989 MB / 0.5258 GB, free: 24.12 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002734/0.435, allocations: 52.11 kB / 0.5258 GB, free: 24.11 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.291e-05/0.4351, allocations: 27.97 kB / 0.5259 GB, free: 24.1 MB / 378.7 MB Notification: Performance of SimCode: time 6.01e-07/0.4351, allocations: 0 / 0.5259 GB, free: 24.1 MB / 378.7 MB Notification: Performance of Templates: time 0.008543/0.4437, allocations: 3.118 MB / 0.5289 GB, free: 23.86 MB / 378.7 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@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/Directions2/Directions2.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches