Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.Directions2.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001398/0.001398, allocations: 174.2 kB / 17.41 MB, free: 4.414 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.511/1.511, allocations: 225.7 MB / 243.9 MB, free: 10.2 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007838/0.0007836, allocations: 102.2 kB / 295.1 MB, free: 9.727 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3357/0.3357, allocations: 44.32 MB / 390.5 MB, free: 38.34 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003319/0.0003319, allocations: 8 kB / 463.2 MB, free: 476 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3766/0.377, allocations: 61.89 MB / 0.5127 GB, free: 38 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.Directions2): time 0.003405/0.3805, allocations: 2.404 MB / 0.5151 GB, free: 36.28 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00102/0.3815, allocations: 0.6781 MB / 0.5157 GB, free: 35.79 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001555/0.3817, allocations: 9.969 kB / 0.5158 GB, free: 35.78 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001612/0.3819, allocations: 38.33 kB / 0.5158 GB, free: 35.76 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001878/0.3821, allocations: 105.2 kB / 0.5159 GB, free: 35.69 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002393/0.3823, allocations: 78.03 kB / 0.516 GB, free: 35.64 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003318/0.3827, allocations: 411.5 kB / 0.5164 GB, free: 35.43 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002177/0.3829, allocations: 115.3 kB / 0.5165 GB, free: 35.38 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001669/0.3831, allocations: 146.7 kB / 0.5166 GB, free: 35.31 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001777/0.3832, allocations: 166.1 kB / 0.5168 GB, free: 35.23 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.926e-05/0.3833, allocations: 21.75 kB / 0.5168 GB, free: 35.23 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.344e-05/0.3834, allocations: 20.62 kB / 0.5168 GB, free: 35.23 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.019e-05/0.3834, allocations: 60.91 kB / 0.5169 GB, free: 35.19 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001647/0.3836, allocations: 209.7 kB / 0.5171 GB, free: 35.06 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003063/0.3839, allocations: 395.3 kB / 0.5174 GB, free: 34.93 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.3839, allocations: 3.938 kB / 0.5174 GB, free: 34.93 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.3839, allocations: 0 / 0.5174 GB, free: 34.93 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.214e-06/0.3839, allocations: 4 kB / 0.5174 GB, free: 34.93 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.0007904/0.3847, allocations: 0.5797 MB / 0.518 GB, free: 34.44 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.469e-05/0.3848, allocations: 9.094 kB / 0.518 GB, free: 34.44 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.829e-05/0.3849, allocations: 46.88 kB / 0.5181 GB, free: 34.42 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002757/0.3851, allocations: 275.3 kB / 0.5183 GB, free: 34.16 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.287e-05/0.3852, allocations: 29.33 kB / 0.5184 GB, free: 34.14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.401e-05/0.3853, allocations: 42.38 kB / 0.5184 GB, free: 34.12 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006003/0.3859, allocations: 399.5 kB / 0.5188 GB, free: 33.9 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.5e-05/0.3859, allocations: 6.641 kB / 0.5188 GB, free: 33.89 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.249e-05/0.3859, allocations: 17.2 kB / 0.5188 GB, free: 33.88 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.388e-05/0.386, allocations: 9.688 kB / 0.5188 GB, free: 33.88 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004095/0.3864, allocations: 235.6 kB / 0.519 GB, free: 33.81 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001877/0.3883, allocations: 1.732 MB / 0.5207 GB, free: 32.44 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003418/0.3886, allocations: 269.2 kB / 0.521 GB, free: 32.21 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000129/0.3888, allocations: 96.36 kB / 0.5211 GB, free: 32.14 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.909e-05/0.3888, allocations: 2.969 kB / 0.5211 GB, free: 32.14 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.723e-05/0.3888, allocations: 48.62 kB / 0.5211 GB, free: 32.09 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 1.563e-06/0.3888, allocations: 0 / 0.5211 GB, free: 32.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=26): time 0.0006487/0.3895, allocations: 272.8 kB / 0.5214 GB, free: 31.99 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.268e-05/0.3895, allocations: 212.3 kB / 0.5216 GB, free: 31.73 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002001/0.3897, allocations: 269.8 kB / 0.5218 GB, free: 31.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.641e-05/0.3898, allocations: 32.77 kB / 0.5219 GB, free: 31.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.638e-05/0.3899, allocations: 235.9 kB / 0.5221 GB, free: 31.34 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.808e-05/0.3899, allocations: 118.3 kB / 0.5222 GB, free: 31.25 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.471e-05/0.39, allocations: 14.88 kB / 0.5222 GB, free: 31.23 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.076e-05/0.39, allocations: 350.3 kB / 0.5226 GB, free: 30.9 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001674/0.3902, allocations: 98.38 kB / 0.5227 GB, free: 30.88 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002892/0.3905, allocations: 429.7 kB / 0.5231 GB, free: 30.4 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004911/0.391, allocations: 0.5733 MB / 0.5236 GB, free: 29.83 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.391, allocations: 2.625 kB / 0.5236 GB, free: 29.83 MB / 378.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.0006593/0.3917, allocations: 0.5345 MB / 0.5241 GB, free: 29.6 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.3917, allocations: 8.844 kB / 0.5242 GB, free: 29.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.262e-05/0.3917, allocations: 15.72 kB / 0.5242 GB, free: 29.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.854e-05/0.3918, allocations: 19.69 kB / 0.5242 GB, free: 29.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003892/0.3922, allocations: 151.7 kB / 0.5243 GB, free: 29.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.866e-05/0.3922, allocations: 22.38 kB / 0.5244 GB, free: 29.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002463/0.3924, allocations: 67.66 kB / 0.5244 GB, free: 29.53 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.187e-05/0.3925, allocations: 33.69 kB / 0.5245 GB, free: 29.52 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.0001247/0.3926, allocations: 181.6 kB / 0.5246 GB, free: 29.36 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001259/0.3928, allocations: 32.59 kB / 0.5247 GB, free: 29.34 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.758e-05/0.3928, allocations: 33.61 kB / 0.5247 GB, free: 29.32 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.3928, allocations: 5.812 kB / 0.5247 GB, free: 29.32 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.74e-06/0.3928, allocations: 0 / 0.5247 GB, free: 29.32 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/0.3928, allocations: 6.312 kB / 0.5247 GB, free: 29.32 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009816/0.3938, allocations: 0.6534 MB / 0.5253 GB, free: 28.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.399e-06/0.3938, allocations: 6.062 kB / 0.5253 GB, free: 28.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004126/0.3943, allocations: 90.59 kB / 0.5254 GB, free: 28.81 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/0.3943, allocations: 3.156 kB / 0.5254 GB, free: 28.81 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.175e-05/0.3943, allocations: 9.906 kB / 0.5254 GB, free: 28.81 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.3943, allocations: 10.88 kB / 0.5255 GB, free: 28.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/0.3943, allocations: 3.25 kB / 0.5255 GB, free: 28.8 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005183/0.3948, allocations: 0.8427 MB / 0.5263 GB, free: 28.12 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.634e-05/0.3949, allocations: 108.8 kB / 0.5264 GB, free: 28 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.989e-05/0.395, allocations: 10.84 kB / 0.5264 GB, free: 28 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003101/0.3953, allocations: 19.72 kB / 0.5264 GB, free: 27.99 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.453e-05/0.3953, allocations: 21.83 kB / 0.5264 GB, free: 27.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.391e-05/0.3953, allocations: 13.02 kB / 0.5264 GB, free: 27.98 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001176/0.3955, allocations: 180.8 kB / 0.5266 GB, free: 27.88 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3955, allocations: 0 / 0.5266 GB, free: 27.88 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005839/0.3961, allocations: 107.2 kB / 0.5267 GB, free: 27.85 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 9.427e-05/0.3962, allocations: 110.2 kB / 0.5268 GB, free: 27.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004116/0.3966, allocations: 291.1 kB / 0.5271 GB, free: 27.67 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3966, allocations: 0 / 0.5271 GB, free: 27.67 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001383/0.3967, allocations: 98.09 kB / 0.5272 GB, free: 27.64 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009391/0.3977, allocations: 73.58 kB / 0.5273 GB, free: 27.61 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001853/0.3996, allocations: 1.924 MB / 0.5291 GB, free: 26.14 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002445/0.3998, allocations: 0.7924 MB / 0.5299 GB, free: 25.45 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000152/0.4, allocations: 42.33 kB / 0.53 GB, free: 25.43 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.184e-05/0.4, allocations: 28.28 kB / 0.53 GB, free: 25.43 MB / 378.7 MB Notification: Performance of SimCode: time 2.21e-07/0.4, allocations: 7.875 kB / 0.53 GB, free: 25.42 MB / 378.7 MB Notification: Performance of Templates: time 0.005501/0.4055, allocations: 2.74 MB / 0.5327 GB, free: 25.23 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/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