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.LineForceWithMass.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.LineForceWithMass,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_LineForceWithMass",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.199/2.199, allocations: 234.9 MB / 250.5 MB, free: 9.555 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006175/0.0006175, allocations: 19.98 kB / 314.5 MB, free: 9.469 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3418/0.3425, allocations: 54.86 MB / 369.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1844/0.527, allocations: 104.9 MB / 474.3 MB, free: 1.52 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003145/0.5273, allocations: 75.97 kB / 474.4 MB, free: 1.445 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7396/1.267, allocations: 110.7 MB / 0.5714 GB, free: 168 kB / 394.7 MB Notification: Performance of FrontEnd: time 3.427e-06/1.267, allocations: 0 / 0.5714 GB, free: 168 kB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004123/1.267, allocations: 108 kB / 0.5715 GB, free: 60 kB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1937 * Number of variables: 1937 Notification: Performance of Generate backend data structure: time 0.02967/1.297, allocations: 6.361 MB / 0.5777 GB, free: 9.617 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.547e-05/1.297, allocations: 12.03 kB / 0.5777 GB, free: 9.605 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00503/1.302, allocations: 0.9685 MB / 0.5786 GB, free: 8.625 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05284/1.355, allocations: 6.888 MB / 0.5854 GB, free: 1.719 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02768/1.383, allocations: 7.117 MB / 0.5923 GB, free: 10.52 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006069/1.384, allocations: 402.8 kB / 0.5927 GB, free: 10.12 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003204/1.387, allocations: 0.5505 MB / 0.5932 GB, free: 9.57 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0488/1.436, allocations: 14.11 MB / 0.607 GB, free: 10.32 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004356/1.436, allocations: 71.39 kB / 0.6071 GB, free: 10.25 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002787/1.439, allocations: 263.9 kB / 0.6073 GB, free: 9.988 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003433/1.442, allocations: 1.36 MB / 0.6087 GB, free: 8.621 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04161/1.484, allocations: 11.73 MB / 0.6201 GB, free: 12.88 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4311/1.915, allocations: 60.63 MB / 0.6793 GB, free: 41.77 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02715/1.942, allocations: 5.814 MB / 0.685 GB, free: 41.07 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03767/1.98, allocations: 14.74 MB / 0.6994 GB, free: 37.04 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.823e-05/1.98, allocations: 62.22 kB / 0.6995 GB, free: 37 MB / 458.7 MB Notification: Performance of pre-optimization done (n=226): time 7.744e-06/1.98, allocations: 3.719 kB / 0.6995 GB, free: 37 MB / 458.7 MB Notification: Performance of matching and sorting (n=263): time 0.1337/2.114, allocations: 25.39 MB / 0.7243 GB, free: 30.05 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/2.114, allocations: 265.2 kB / 0.7245 GB, free: 29.77 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01424/2.128, allocations: 4.44 MB / 0.7288 GB, free: 28.29 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007953/2.129, allocations: 68.52 kB / 0.7289 GB, free: 28.23 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004908/2.134, allocations: 3.814 MB / 0.7326 GB, free: 25.46 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002073/2.136, allocations: 0.9798 MB / 0.7336 GB, free: 24.74 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001231/2.138, allocations: 150.2 kB / 0.7337 GB, free: 24.63 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0007434/2.138, allocations: 0.6219 MB / 0.7343 GB, free: 24.18 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009612/2.148, allocations: 2.569 MB / 0.7369 GB, free: 23.33 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01271/2.161, allocations: 6.894 MB / 0.7436 GB, free: 16.7 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009371/2.17, allocations: 4.115 MB / 0.7476 GB, free: 15.31 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001416/2.17, allocations: 46.38 kB / 0.7476 GB, free: 15.31 MB / 458.7 MB Notification: Performance of matching and sorting (n=962) (initialization): time 0.02429/2.195, allocations: 9.509 MB / 0.7569 GB, free: 8.66 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001074/2.195, allocations: 74.2 kB / 0.757 GB, free: 8.59 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002209/2.195, allocations: 152 kB / 0.7572 GB, free: 8.441 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002015/2.197, allocations: 0.5851 MB / 0.7577 GB, free: 7.945 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01066/2.208, allocations: 1.734 MB / 0.7594 GB, free: 6.441 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009536/2.217, allocations: 5.73 MB / 0.765 GB, free: 1.008 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008095/2.225, allocations: 399.2 kB / 0.7654 GB, free: 0.6602 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001591/2.227, allocations: 440.6 kB / 0.7658 GB, free: 244 kB / 458.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.01695/2.244, allocations: 3.192 MB / 0.7689 GB, free: 15.36 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001336/2.245, allocations: 469.9 kB / 0.7694 GB, free: 14.89 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01166/2.257, allocations: 4.014 MB / 0.7733 GB, free: 11.51 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.828e-05/2.257, allocations: 28 kB / 0.7733 GB, free: 11.48 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.859e-05/2.257, allocations: 11.56 kB / 0.7733 GB, free: 11.48 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.829e-05/2.257, allocations: 10.55 kB / 0.7733 GB, free: 11.48 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03274/2.29, allocations: 10.28 MB / 0.7834 GB, free: 3.074 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.692e-05/2.29, allocations: 0 / 0.7834 GB, free: 3.074 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004727/2.295, allocations: 464.7 kB / 0.7838 GB, free: 2.707 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001835/2.297, allocations: 354.6 kB / 0.7842 GB, free: 2.445 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005899/2.297, allocations: 47.83 kB / 0.7842 GB, free: 2.402 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00897/2.306, allocations: 5.072 MB / 0.7892 GB, free: 13.56 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/2.306, allocations: 0 / 0.7892 GB, free: 13.56 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01799/2.324, allocations: 7.147 MB / 0.7961 GB, free: 7.168 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003144/2.328, allocations: 0.8292 MB / 0.797 GB, free: 6.387 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001386/2.329, allocations: 36 kB / 0.797 GB, free: 6.352 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0041/2.333, allocations: 162 kB / 0.7971 GB, free: 6.246 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007893/2.334, allocations: 144 kB / 0.7973 GB, free: 6.156 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002982/2.334, allocations: 65.92 kB / 0.7973 GB, free: 6.094 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.008603/2.343, allocations: 3.117 MB / 0.8004 GB, free: 3.551 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.11e-07/2.343, allocations: 3.938 kB / 0.8004 GB, free: 3.547 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009106/2.352, allocations: 1.295 MB / 0.8017 GB, free: 2.262 MB / 490.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.01939/2.372, allocations: 7.987 MB / 0.8095 GB, free: 10.83 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01657/2.388, allocations: 6.441 MB / 0.8157 GB, free: 4.391 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.458e-06/2.388, allocations: 3.25 kB / 0.8157 GB, free: 4.391 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.005791/2.394, allocations: 2.211 MB / 0.8179 GB, free: 2.16 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00481/2.399, allocations: 0.5627 MB / 0.8185 GB, free: 1.613 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4602/2.859, allocations: 151.5 MB / 0.9664 GB, free: 14.31 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009478/2.869, allocations: 4.229 MB / 0.9705 GB, free: 13.47 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006883/2.876, allocations: 2.683 MB / 0.9731 GB, free: 13.46 MB / 0.5105 GB Notification: Performance of SimCode: time 1.493e-06/2.876, allocations: 0 / 0.9731 GB, free: 13.46 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.516/8.391, allocations: 152 MB / 1.122 GB, free: 83.64 MB / 0.5105 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.LineForceWithMass_res.mat does not exist to compare? outputFormat=mat