Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 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 Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.MultiBody.Forces.LineForceWithMass,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Forces_LineForceWithMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.079/2.079, allocations: 209.2 MB / 224.8 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006118/0.0006119, allocations: 16 kB / 282.7 MB, free: 9.555 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.354/0.3547, allocations: 48.7 MB / 331.4 MB, free: 6.543 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1999/0.5546, allocations: 98.1 MB / 429.5 MB, free: 12.27 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003201/0.555, allocations: 75.97 kB / 429.5 MB, free: 12.2 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7508/1.306, allocations: 110.6 MB / 0.5275 GB, free: 70 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.695e-06/1.306, allocations: 0 / 0.5275 GB, free: 70 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004254/1.306, allocations: 119.9 kB / 0.5276 GB, free: 69.88 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1935 * Number of variables: 1935 Notification: Performance of Generate backend data structure: time 0.02729/1.334, allocations: 6.338 MB / 0.5338 GB, free: 63.46 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.964e-05/1.334, allocations: 12.03 kB / 0.5338 GB, free: 63.45 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005371/1.339, allocations: 0.9801 MB / 0.5348 GB, free: 62.46 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0495/1.389, allocations: 6.888 MB / 0.5415 GB, free: 55.55 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02595/1.415, allocations: 7.098 MB / 0.5484 GB, free: 48.37 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005311/1.415, allocations: 410.8 kB / 0.5488 GB, free: 47.97 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003306/1.419, allocations: 0.5465 MB / 0.5493 GB, free: 47.42 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04473/1.463, allocations: 14.1 MB / 0.5631 GB, free: 32.18 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004037/1.464, allocations: 75.28 kB / 0.5632 GB, free: 32.1 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002701/1.467, allocations: 267.8 kB / 0.5634 GB, free: 31.84 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002908/1.47, allocations: 1.352 MB / 0.5648 GB, free: 30.49 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03767/1.507, allocations: 11.72 MB / 0.5762 GB, free: 18.75 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4507/1.958, allocations: 60.62 MB / 0.6354 GB, free: 57.86 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02879/1.987, allocations: 5.808 MB / 0.6411 GB, free: 57.19 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03499/2.022, allocations: 14.74 MB / 0.6555 GB, free: 53.4 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.166e-05/2.022, allocations: 67.61 kB / 0.6555 GB, free: 53.36 MB / 426.7 MB Notification: Performance of pre-optimization done (n=226): time 6.392e-06/2.022, allocations: 3.844 kB / 0.6555 GB, free: 53.36 MB / 426.7 MB Notification: Performance of matching and sorting (n=263): time 0.1342/2.156, allocations: 25.4 MB / 0.6803 GB, free: 48.59 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/2.157, allocations: 257.3 kB / 0.6806 GB, free: 48.31 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01044/2.167, allocations: 4.444 MB / 0.6849 GB, free: 46.79 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006473/2.168, allocations: 70.86 kB / 0.685 GB, free: 46.73 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003396/2.171, allocations: 3.806 MB / 0.6887 GB, free: 43.71 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001575/2.173, allocations: 0.9877 MB / 0.6897 GB, free: 42.99 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008963/2.174, allocations: 146.2 kB / 0.6898 GB, free: 42.88 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000523/2.174, allocations: 0.6227 MB / 0.6904 GB, free: 42.43 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006458/2.181, allocations: 2.573 MB / 0.6929 GB, free: 41.58 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009519/2.19, allocations: 6.887 MB / 0.6997 GB, free: 34.95 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009364/2.2, allocations: 4.106 MB / 0.7037 GB, free: 33.57 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001709/2.2, allocations: 49.88 kB / 0.7037 GB, free: 33.56 MB / 426.7 MB Notification: Performance of matching and sorting (n=962) (initialization): time 0.02532/2.225, allocations: 9.516 MB / 0.713 GB, free: 27.72 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001123/2.225, allocations: 71.83 kB / 0.7131 GB, free: 27.66 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002454/2.226, allocations: 159.5 kB / 0.7132 GB, free: 27.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002228/2.228, allocations: 0.585 MB / 0.7138 GB, free: 27 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01094/2.239, allocations: 1.735 MB / 0.7155 GB, free: 25.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008977/2.248, allocations: 5.719 MB / 0.7211 GB, free: 20.06 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008599/2.256, allocations: 399.9 kB / 0.7215 GB, free: 19.71 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001929/2.258, allocations: 441.6 kB / 0.7219 GB, free: 19.29 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 693 * Number of states: 0 () * Number of discrete variables: 54 (lineForceWithMass.lineShapeColor[3],lineForceWithMass.lineShapeColor[2],lineForceWithMass.lineShapeColor[1],lineForceWithMass.massColor[3],lineForceWithMass.massColor[2],lineForceWithMass.massColor[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.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 (912): * Single equations (assignments): 907 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 13,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007872/2.266, allocations: 2.627 MB / 0.7244 GB, free: 16.99 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001257/2.268, allocations: 469.9 kB / 0.7249 GB, free: 16.52 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0114/2.279, allocations: 4.014 MB / 0.7288 GB, free: 13.14 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.414e-05/2.279, allocations: 32 kB / 0.7288 GB, free: 13.11 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.939e-05/2.279, allocations: 4 kB / 0.7288 GB, free: 13.11 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.661e-05/2.279, allocations: 10.22 kB / 0.7289 GB, free: 13.11 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03086/2.31, allocations: 10.28 MB / 0.7389 GB, free: 4.715 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.586e-05/2.31, allocations: 0 / 0.7389 GB, free: 4.715 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004574/2.315, allocations: 471 kB / 0.7394 GB, free: 4.344 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001719/2.317, allocations: 347.8 kB / 0.7397 GB, free: 4.086 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005885/2.317, allocations: 50.3 kB / 0.7397 GB, free: 4.039 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007924/2.325, allocations: 5.063 MB / 0.7447 GB, free: 15.16 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.194e-06/2.325, allocations: 7.938 kB / 0.7447 GB, free: 15.15 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01903/2.344, allocations: 7.14 MB / 0.7517 GB, free: 8.766 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003408/2.348, allocations: 0.8203 MB / 0.7525 GB, free: 7.988 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001593/2.349, allocations: 44 kB / 0.7525 GB, free: 7.945 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004476/2.354, allocations: 161.3 kB / 0.7527 GB, free: 7.84 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008834/2.355, allocations: 143.3 kB / 0.7528 GB, free: 7.754 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003057/2.355, allocations: 68.36 kB / 0.7529 GB, free: 7.691 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.01052/2.366, allocations: 3.115 MB / 0.7559 GB, free: 5.148 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.32e-07/2.366, allocations: 4 kB / 0.7559 GB, free: 5.145 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.01037/2.376, allocations: 1.285 MB / 0.7572 GB, free: 3.867 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (224): * Single equations (assignments): 219 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 10,(1,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0205/2.397, allocations: 7.972 MB / 0.7649 GB, free: 12.12 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01827/2.415, allocations: 6.447 MB / 0.7712 GB, free: 5.672 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.497e-06/2.415, allocations: 4 kB / 0.7712 GB, free: 5.668 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006174/2.421, allocations: 2.21 MB / 0.7734 GB, free: 3.445 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005603/2.427, allocations: 0.5644 MB / 0.7739 GB, free: 2.895 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.471/2.898, allocations: 151.5 MB / 0.9219 GB, free: 48.97 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009648/2.908, allocations: 4.227 MB / 0.926 GB, free: 48.14 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006848/2.915, allocations: 2.678 MB / 0.9286 GB, free: 48.13 MB / 490.7 MB Notification: Performance of SimCode: time 2.645e-06/2.915, allocations: 0 / 0.9286 GB, free: 48.13 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.476/8.39, allocations: 151.9 MB / 1.077 GB, free: 123.2 MB / 490.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass_res.mat does not exist to compare? outputFormat=mat