Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Forces.Torque2.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque2,fileNamePrefix="ModelicaTest_3_2_1_ModelicaTest_MultiBody_Forces_Torque2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo): time 0.0108/0.01081, allocations: 102.6 kB / 15.05 MB, free: 6.027 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo): time 0.001166/0.001166, allocations: 173.2 kB / 15.94 MB, free: 5.961 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo): time 1.566/1.566, allocations: 170.9 MB / 187.5 MB, free: 1.008 MB / 154.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo): time 0.2814/0.2814, allocations: 38.1 MB / 265.1 MB, free: 3.969 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006377/0.0006379, allocations: 12 kB / 323.6 MB, free: 29.65 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09352/0.0942, allocations: 48.71 MB / 372.3 MB, free: 12.86 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.MultiBody.Forces.Torque2): time 0.5186/0.6128, allocations: 156.6 MB / 0.5165 GB, free: 7.266 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.1126/0.7256, allocations: 33.34 MB / 0.549 GB, free: 5.824 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.04239/0.768, allocations: 0.7639 MB / 0.5498 GB, free: 5.059 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.03284/0.8009, allocations: 8.107 MB / 0.5577 GB, free: 12.91 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.09393/0.8949, allocations: 21.97 MB / 0.5791 GB, free: 6.887 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01465/0.9096, allocations: 1.65 MB / 0.5807 GB, free: 5.234 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.5484/1.458, allocations: 36.31 MB / 0.6162 GB, free: 24.44 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04454/1.503, allocations: 15.59 MB / 0.6314 GB, free: 23.13 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01005/1.513, allocations: 3.073 MB / 0.6344 GB, free: 23.13 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01011/1.523, allocations: 4.178 MB / 0.6385 GB, free: 23.11 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004418/1.527, allocations: 451.5 kB / 0.6389 GB, free: 23.11 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007552/1.535, allocations: 1.204 MB / 0.6401 GB, free: 23.11 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.01104/1.546, allocations: 5.038 MB / 0.645 GB, free: 23.11 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00816/1.554, allocations: 2.521 MB / 0.6475 GB, free: 23.08 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02945/1.584, allocations: 16.97 MB / 0.6641 GB, free: 14.63 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/1.584, allocations: 0 / 0.6641 GB, free: 14.63 MB / 458.7 MB Notification: Performance of FrontEnd: time 3.787e-06/1.584, allocations: 0 / 0.6641 GB, free: 14.63 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.00103/1.585, allocations: 0 / 0.6641 GB, free: 14.63 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4446 * Number of variables: 4446 Notification: Performance of Generate backend data structure: time 0.05954/1.645, allocations: 13.43 MB / 0.6772 GB, free: 2.363 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.598e-05/1.645, allocations: 8.031 kB / 0.6772 GB, free: 2.355 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00986/1.655, allocations: 2.079 MB / 0.6792 GB, free: 1.137 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1802/1.835, allocations: 14.95 MB / 0.6938 GB, free: 3.508 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03525/1.87, allocations: 9.2 MB / 0.7028 GB, free: 12.99 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001331/1.872, allocations: 0.7442 MB / 0.7035 GB, free: 12.58 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006679/1.878, allocations: 0.9928 MB / 0.7045 GB, free: 11.93 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1071/1.985, allocations: 29.89 MB / 0.7337 GB, free: 5.008 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001024/1.986, allocations: 112.2 kB / 0.7338 GB, free: 4.949 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005929/1.992, allocations: 468.3 kB / 0.7342 GB, free: 4.824 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.01362/2.006, allocations: 5.056 MB / 0.7392 GB, free: 0.7227 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09349/2.1, allocations: 24.89 MB / 0.7635 GB, free: 15.29 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.8795/2.979, allocations: 111.9 MB / 0.8727 GB, free: 170.9 MB / 0.5418 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06825/3.047, allocations: 14.13 MB / 0.8865 GB, free: 167.5 MB / 0.5418 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06204/3.11, allocations: 19.93 MB / 0.906 GB, free: 156.2 MB / 0.5418 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.625e-05/3.11, allocations: 92.91 kB / 0.9061 GB, free: 156.2 MB / 0.5418 GB Notification: Performance of pre-optimization done (n=562): time 1.029e-05/3.11, allocations: 3.812 kB / 0.9061 GB, free: 156.2 MB / 0.5418 GB Notification: Performance of matching and sorting (n=646): time 0.332/3.442, allocations: 71.67 MB / 0.9761 GB, free: 86.61 MB / 0.5418 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001574/3.442, allocations: 377.4 kB / 0.9764 GB, free: 86.18 MB / 0.5418 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03151/3.473, allocations: 12.61 MB / 0.9888 GB, free: 73.6 MB / 0.5418 GB Notification: Performance of collectPreVariables (initialization): time 0.002462/3.476, allocations: 123.2 kB / 0.9889 GB, free: 73.47 MB / 0.5418 GB Notification: Performance of collectInitialEqns (initialization): time 0.009023/3.485, allocations: 8.488 MB / 0.9972 GB, free: 64.99 MB / 0.5418 GB Notification: Performance of collectInitialBindings (initialization): time 0.004847/3.49, allocations: 2.377 MB / 0.9995 GB, free: 62.63 MB / 0.5418 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003571/3.494, allocations: 310.6 kB / 0.9998 GB, free: 62.33 MB / 0.5418 GB Notification: Performance of setup shared object (initialization): time 0.002022/3.496, allocations: 0.9672 MB / 1.001 GB, free: 61.36 MB / 0.5418 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01995/3.516, allocations: 6.964 MB / 1.008 GB, free: 54.39 MB / 0.5418 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02571/3.541, allocations: 15.34 MB / 1.023 GB, free: 35.29 MB / 0.5418 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02473/3.566, allocations: 10.12 MB / 1.032 GB, free: 25.24 MB / 0.5418 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002716/3.567, allocations: 84 kB / 1.032 GB, free: 25.16 MB / 0.5418 GB Notification: Performance of matching and sorting (n=2027) (initialization): time 0.4271/3.994, allocations: 25.28 MB / 1.057 GB, free: 203.3 MB / 0.5418 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002949/3.994, allocations: 131.5 kB / 1.057 GB, free: 203.3 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005724/3.995, allocations: 294.7 kB / 1.058 GB, free: 203.3 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01813/4.013, allocations: 3.521 MB / 1.061 GB, free: 203.2 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0273/4.04, allocations: 3.695 MB / 1.065 GB, free: 203.2 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05023/4.09, allocations: 24.58 MB / 1.089 GB, free: 195.7 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02048/4.111, allocations: 0.9191 MB / 1.09 GB, free: 195.4 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004425/4.115, allocations: 0.8875 MB / 1.09 GB, free: 195.3 MB / 0.5418 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1333 * Number of states: 0 () * Number of discrete variables: 117 (fixed8.color[3],fixed8.color[2],fixed8.color[1],fixed7.color[3],fixed7.color[2],fixed7.color[1],Revolute8.cylinderColor[3],Revolute8.cylinderColor[2],Revolute8.cylinderColor[1],Revolute7.cylinderColor[3],Revolute7.cylinderColor[2],Revolute7.cylinderColor[1],Revolute6.cylinderColor[3],Revolute6.cylinderColor[2],Revolute6.cylinderColor[1],torque4.connectionLineColor[3],torque4.connectionLineColor[2],torque4.connectionLineColor[1],torque4.torqueColor[3],torque4.torqueColor[2],torque4.torqueColor[1],torque4.forceColor[3],torque4.forceColor[2],torque4.forceColor[1],torque3.connectionLineColor[3],torque3.connectionLineColor[2],torque3.connectionLineColor[1],torque3.torqueColor[3],torque3.torqueColor[2],torque3.torqueColor[1],torque3.forceColor[3],torque3.forceColor[2],torque3.forceColor[1],fixedRotation1.color[3],fixedRotation1.color[2],fixedRotation1.color[1],fixed6.color[3],fixed6.color[2],fixed6.color[1],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[1],fixed5.color[3],fixed5.color[2],fixed5.color[1],body3.color[3],body3.color[2],body3.color[1],body3.body.sphereColor[3],body3.body.sphereColor[2],body3.body.sphereColor[1],Revolute5.cylinderColor[3],Revolute5.cylinderColor[2],Revolute5.cylinderColor[1],fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1887): * Single equations (assignments): 1876 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01937/4.135, allocations: 5.732 MB / 1.096 GB, free: 193.2 MB / 0.5418 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004445/4.139, allocations: 1.079 MB / 1.097 GB, free: 193.2 MB / 0.5418 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04734/4.187, allocations: 15.17 MB / 1.112 GB, free: 187.7 MB / 0.5418 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001118/4.187, allocations: 66.31 kB / 1.112 GB, free: 187.7 MB / 0.5418 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.285e-05/4.187, allocations: 17.25 kB / 1.112 GB, free: 187.7 MB / 0.5418 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001847/4.187, allocations: 30.19 kB / 1.112 GB, free: 187.7 MB / 0.5418 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1004/4.288, allocations: 33.22 MB / 1.144 GB, free: 165.8 MB / 0.5418 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001015/4.288, allocations: 12 kB / 1.144 GB, free: 165.8 MB / 0.5418 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01167/4.299, allocations: 1.175 MB / 1.146 GB, free: 164.6 MB / 0.5418 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01398/4.314, allocations: 3.056 MB / 1.149 GB, free: 161.6 MB / 0.5418 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002379/4.316, allocations: 124 kB / 1.149 GB, free: 161.5 MB / 0.5418 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04674/4.363, allocations: 23.06 MB / 1.171 GB, free: 138.2 MB / 0.5418 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.437e-05/4.363, allocations: 19.12 kB / 1.171 GB, free: 138.2 MB / 0.5418 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.08299/4.446, allocations: 26.95 MB / 1.198 GB, free: 111.1 MB / 0.5418 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00981/4.456, allocations: 2.248 MB / 1.2 GB, free: 108.8 MB / 0.5418 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004794/4.461, allocations: 120 kB / 1.2 GB, free: 108.7 MB / 0.5418 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01205/4.473, allocations: 439.4 kB / 1.2 GB, free: 108.2 MB / 0.5418 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003006/4.476, allocations: 413.5 kB / 1.201 GB, free: 107.9 MB / 0.5418 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001338/4.477, allocations: 171.9 kB / 1.201 GB, free: 107.7 MB / 0.5418 GB Notification: Performance of sorting global known variables: time 0.0271/4.504, allocations: 8.216 MB / 1.209 GB, free: 99.51 MB / 0.5418 GB Notification: Performance of sort global known variables: time 8.01e-07/4.504, allocations: 5.438 kB / 1.209 GB, free: 99.51 MB / 0.5418 GB Notification: Performance of remove unused functions: time 0.03013/4.534, allocations: 3.161 MB / 1.212 GB, free: 96.36 MB / 0.5418 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 49 * Number of states: 16 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.w,Revolute5.phi,Revolute5.w,Revolute7.phi,Revolute7.w,Revolute6.phi,Revolute6.w,Revolute8.phi,Revolute8.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 (553): * Single equations (assignments): 546 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(4,75.0%) 18,(4,75.0%) 18,(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.07512/4.61, allocations: 28.09 MB / 1.239 GB, free: 67.86 MB / 0.5418 GB Notification: Performance of simCode: created initialization part: time 0.05485/4.664, allocations: 17.17 MB / 1.256 GB, free: 51.24 MB / 0.5418 GB Notification: Performance of simCode: created event and clocks part: time 2.195e-05/4.665, allocations: 5.969 kB / 1.256 GB, free: 51.23 MB / 0.5418 GB Notification: Performance of simCode: created simulation system equations: time 0.02354/4.688, allocations: 7.325 MB / 1.263 GB, free: 43.88 MB / 0.5418 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0123/4.7, allocations: 1.34 MB / 1.265 GB, free: 42.56 MB / 0.5418 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.023/5.723, allocations: 280.1 MB / 1.538 GB, free: 133.6 MB / 0.5574 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02935/5.753, allocations: 8.885 MB / 1.547 GB, free: 132.6 MB / 0.5574 GB Notification: Performance of simCode: alias equations: time 0.0285/5.781, allocations: 5.158 MB / 1.552 GB, free: 132.4 MB / 0.5574 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01905/5.8, allocations: 6.433 MB / 1.558 GB, free: 130.3 MB / 0.5574 GB Notification: Performance of SimCode: time 2.094e-06/5.8, allocations: 0 / 1.558 GB, free: 130.3 MB / 0.5574 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9165/6.717, allocations: 238.3 MB / 1.791 GB, free: 98.29 MB / 0.5574 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003009/6.717, allocations: 194.5 kB / 1.791 GB, free: 98.05 MB / 0.5574 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.39/21.11, allocations: 0 / 1.791 GB, free: 98.05 MB / 0.5574 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_ModelicaTest.MultiBody.Forces.Torque2_res.mat does not exist to compare? outputFormat=mat