Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Torque3.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.Torque3,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_Torque3",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.46/2.46, allocations: 235 MB / 248.1 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.618e-05/4.63e-05, allocations: 8 kB / 309.8 MB, free: 1.227 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5105/0.5106, allocations: 54.84 MB / 364.6 MB, free: 5.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2055/0.7162, allocations: 103.9 MB / 468.5 MB, free: 8.559 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002871/0.7166, allocations: 76.62 kB / 468.6 MB, free: 8.484 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.21/1.926, allocations: 223.7 MB / 0.6761 GB, free: 15.3 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.525e-06/1.927, allocations: 3.938 kB / 0.6761 GB, free: 15.29 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0008049/1.927, allocations: 240 kB / 0.6763 GB, free: 15.06 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: 4184 * Number of variables: 4184 Notification: Performance of Generate backend data structure: time 0.04939/1.977, allocations: 11.38 MB / 0.6874 GB, free: 3.582 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.51e-05/1.977, allocations: 12.03 kB / 0.6874 GB, free: 3.57 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01024/1.987, allocations: 2.072 MB / 0.6894 GB, free: 1.484 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.09793/2.085, allocations: 12.64 MB / 0.7018 GB, free: 4.812 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.4351/2.52, allocations: 12.54 MB / 0.714 GB, free: 50.64 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001278/2.522, allocations: 0.9069 MB / 0.7149 GB, free: 50.61 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007275/2.529, allocations: 1.202 MB / 0.7161 GB, free: 50.6 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09758/2.626, allocations: 28.16 MB / 0.7436 GB, free: 45.12 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001131/2.628, allocations: 130.9 kB / 0.7437 GB, free: 45.11 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007024/2.635, allocations: 0.5581 MB / 0.7442 GB, free: 45.11 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.006602/2.641, allocations: 2.683 MB / 0.7469 GB, free: 45.08 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07756/2.719, allocations: 23.22 MB / 0.7695 GB, free: 44.76 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2281/2.947, allocations: 116.9 MB / 0.8837 GB, free: 3.977 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.07632/3.024, allocations: 13.79 MB / 0.8972 GB, free: 9.457 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02163/3.045, allocations: 7.874 MB / 0.9049 GB, free: 2.25 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.512/3.557, allocations: 2.339 MB / 0.9072 GB, free: 110.1 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002157/3.558, allocations: 101.5 kB / 0.9073 GB, free: 110 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=559): time 1.882e-05/3.558, allocations: 0.5312 kB / 0.9073 GB, free: 110 MB / 0.5261 GB Notification: Performance of matching and sorting (n=643): time 0.2582/3.816, allocations: 53.32 MB / 0.9593 GB, free: 102.1 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001464/3.816, allocations: 332.7 kB / 0.9597 GB, free: 101.8 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02448/3.841, allocations: 8.969 MB / 0.9684 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.001959/3.843, allocations: 126.8 kB / 0.9685 GB, free: 101.1 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.006824/3.849, allocations: 7.305 MB / 0.9757 GB, free: 97.17 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.004246/3.854, allocations: 2.348 MB / 0.978 GB, free: 95.77 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003172/3.857, allocations: 290.6 kB / 0.9782 GB, free: 95.77 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.00173/3.859, allocations: 0.9103 MB / 0.9791 GB, free: 95.43 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01781/3.877, allocations: 6.387 MB / 0.9854 GB, free: 95.4 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02359/3.9, allocations: 13.96 MB / 0.999 GB, free: 85 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03079/3.931, allocations: 9.358 MB / 1.008 GB, free: 82.07 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0004046/3.932, allocations: 76.25 kB / 1.008 GB, free: 82.07 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1861) (initialization): time 0.102/4.033, allocations: 22.82 MB / 1.03 GB, free: 70.39 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003979/4.034, allocations: 120 kB / 1.031 GB, free: 70.27 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006745/4.035, allocations: 260 kB / 1.031 GB, free: 70.02 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02443/4.059, allocations: 3.264 MB / 1.034 GB, free: 67.61 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.03081/4.09, allocations: 3.502 MB / 1.037 GB, free: 64.68 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04271/4.133, allocations: 22.56 MB / 1.059 GB, free: 44.38 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02644/4.159, allocations: 0.8726 MB / 1.06 GB, free: 43.67 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004792/4.164, allocations: 0.8136 MB / 1.061 GB, free: 42.9 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1201 * Number of states: 0 () * Number of discrete variables: 105 (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],body4.color[3],body4.color[2],body4.color[1],body4.body.sphereColor[3],body4.body.sphereColor[2],body4.body.sphereColor[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],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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1741): * Single equations (assignments): 1734 * 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 {(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.008914/4.173, allocations: 1.175 MB / 1.062 GB, free: 41.72 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005485/4.179, allocations: 0.941 MB / 1.063 GB, free: 40.77 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06773/4.246, allocations: 14.44 MB / 1.077 GB, free: 29.03 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001607/4.247, allocations: 71.94 kB / 1.077 GB, free: 28.96 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000118/4.247, allocations: 20 kB / 1.077 GB, free: 28.94 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002415/4.247, allocations: 30.23 kB / 1.077 GB, free: 28.94 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5986/4.846, allocations: 31.75 MB / 1.108 GB, free: 90.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001059/4.846, allocations: 6.281 kB / 1.108 GB, free: 90.07 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01391/4.86, allocations: 1.218 MB / 1.11 GB, free: 90.07 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01451/4.874, allocations: 2.825 MB / 1.112 GB, free: 90.03 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002127/4.877, allocations: 120.6 kB / 1.112 GB, free: 90.03 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04436/4.921, allocations: 21.06 MB / 1.133 GB, free: 84.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.187e-06/4.921, allocations: 13.44 kB / 1.133 GB, free: 84.7 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06284/4.984, allocations: 23.75 MB / 1.156 GB, free: 81.74 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009194/4.993, allocations: 2.04 MB / 1.158 GB, free: 81.64 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004876/4.998, allocations: 111 kB / 1.158 GB, free: 81.64 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01264/5.011, allocations: 491 kB / 1.159 GB, free: 81.64 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003243/5.014, allocations: 391.6 kB / 1.159 GB, free: 81.63 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002043/5.016, allocations: 165.4 kB / 1.159 GB, free: 81.63 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.01836/5.035, allocations: 6.415 MB / 1.166 GB, free: 81.3 MB / 0.5261 GB Notification: Performance of sort global known variables: time 8.42e-07/5.035, allocations: 1.781 kB / 1.166 GB, free: 81.3 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.02083/5.055, allocations: 2.935 MB / 1.168 GB, free: 81.3 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * Number of states: 16 (Revolute5.phi,Revolute5.w,Revolute6.phi,Revolute6.w,Revolute7.phi,Revolute7.w,Revolute8.phi,Revolute8.w,Revolute1.phi,Revolute1.w,Revolute2.phi,Revolute2.w,Revolute3.phi,Revolute3.w,Revolute4.phi,Revolute4.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (554): * Single equations (assignments): 547 * 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.06802/5.123, allocations: 24.96 MB / 1.193 GB, free: 70.6 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.04922/5.173, allocations: 16.03 MB / 1.209 GB, free: 65.28 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.567e-05/5.173, allocations: 0 / 1.209 GB, free: 65.28 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.02148/5.194, allocations: 7.052 MB / 1.215 GB, free: 61.73 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01191/5.206, allocations: 1.2 MB / 1.217 GB, free: 60.73 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09925/5.306, allocations: 29.16 MB / 1.245 GB, free: 35.88 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02156/5.327, allocations: 8.319 MB / 1.253 GB, free: 29.89 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01701/5.344, allocations: 5.974 MB / 1.259 GB, free: 24.34 MB / 0.5261 GB Notification: Performance of SimCode: time 1.893e-06/5.344, allocations: 0 / 1.259 GB, free: 24.34 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 8.598/13.94, allocations: 418.8 MB / 1.668 GB, free: 40.49 MB / 0.573 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Torque3_res.mat does not exist to compare? outputFormat=mat