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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.352/2.352, allocations: 235.1 MB / 243 MB, free: 9.598 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.02e-05/2.038e-05, allocations: 0 / 303.3 MB, free: 13.19 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3672/0.3672, allocations: 54.84 MB / 358.1 MB, free: 14.94 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1977/0.565, allocations: 104.2 MB / 462.3 MB, free: 6.598 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002905/0.5654, allocations: 83.95 kB / 462.4 MB, free: 6.516 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7753/1.341, allocations: 108.4 MB / 0.5574 GB, free: 10.68 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.555e-06/1.341, allocations: 4 kB / 0.5574 GB, free: 10.67 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004266/1.341, allocations: 112 kB / 0.5575 GB, free: 10.56 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: 1937 * Number of variables: 1937 Notification: Performance of Generate backend data structure: time 0.02494/1.366, allocations: 5.869 MB / 0.5632 GB, free: 4.621 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.389e-05/1.366, allocations: 8.031 kB / 0.5632 GB, free: 4.613 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04986/1.416, allocations: 6.896 MB / 0.57 GB, free: 13.7 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02885/1.445, allocations: 7.063 MB / 0.5769 GB, free: 6.551 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004116/1.446, allocations: 180 kB / 0.577 GB, free: 6.375 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003027/1.449, allocations: 335.8 kB / 0.5773 GB, free: 6.047 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02295/1.472, allocations: 8.101 MB / 0.5853 GB, free: 13.94 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03522/1.507, allocations: 12.04 MB / 0.597 GB, free: 0.7656 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004668/1.507, allocations: 67.41 kB / 0.5971 GB, free: 0.6992 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002753/1.51, allocations: 36 kB / 0.5971 GB, free: 0.6641 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003545/1.514, allocations: 1.364 MB / 0.5984 GB, free: 15.3 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4456/1.959, allocations: 60.59 MB / 0.6576 GB, free: 58.52 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007712/1.967, allocations: 4.362 MB / 0.6619 GB, free: 57.86 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005551/1.973, allocations: 3.05 MB / 0.6649 GB, free: 57.82 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0278/2.001, allocations: 12.36 MB / 0.6769 GB, free: 55.02 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.431e-05/2.001, allocations: 63.34 kB / 0.677 GB, free: 54.98 MB / 458.7 MB Notification: Performance of pre-optimization done (n=226): time 6.503e-06/2.001, allocations: 0 / 0.677 GB, free: 54.98 MB / 458.7 MB Notification: Performance of matching and sorting (n=264): time 0.09154/2.092, allocations: 24.84 MB / 0.7012 GB, free: 47.54 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001049/2.092, allocations: 265 kB / 0.7015 GB, free: 47.26 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008767/2.101, allocations: 3.851 MB / 0.7053 GB, free: 45.87 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006187/2.102, allocations: 28.55 kB / 0.7053 GB, free: 45.84 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003263/2.105, allocations: 3.916 MB / 0.7091 GB, free: 42.97 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001461/2.107, allocations: 0.9626 MB / 0.71 GB, free: 42.25 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008635/2.108, allocations: 3.5 kB / 0.71 GB, free: 42.25 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0005335/2.108, allocations: 0.6282 MB / 0.7107 GB, free: 41.81 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005763/2.114, allocations: 2.428 MB / 0.713 GB, free: 40.94 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008694/2.123, allocations: 6.881 MB / 0.7198 GB, free: 34.06 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009016/2.132, allocations: 4.035 MB / 0.7237 GB, free: 32.86 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002251/2.132, allocations: 50.03 kB / 0.7237 GB, free: 32.86 MB / 458.7 MB Notification: Performance of matching and sorting (n=993) (initialization): time 0.02345/2.155, allocations: 8.632 MB / 0.7322 GB, free: 27.28 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001153/2.156, allocations: 72 kB / 0.7322 GB, free: 27.21 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002108/2.156, allocations: 163.2 kB / 0.7324 GB, free: 27.05 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002068/2.158, allocations: 0.597 MB / 0.733 GB, free: 26.54 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0113/2.169, allocations: 1.789 MB / 0.7347 GB, free: 24.99 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008109/2.177, allocations: 5.42 MB / 0.74 GB, free: 19.87 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008417/2.186, allocations: 264.4 kB / 0.7403 GB, free: 19.66 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001902/2.188, allocations: 451.4 kB / 0.7407 GB, free: 19.22 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 723 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (943): * Single equations (assignments): 938 * 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.002838/2.191, allocations: 0.5144 MB / 0.7412 GB, free: 18.71 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01063/2.201, allocations: 3.934 MB / 0.745 GB, free: 15.27 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001492/2.203, allocations: 442 kB / 0.7455 GB, free: 14.84 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01072/2.214, allocations: 3.79 MB / 0.7492 GB, free: 11.67 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.004e-05/2.214, allocations: 29.09 kB / 0.7492 GB, free: 11.64 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.576e-05/2.214, allocations: 4 kB / 0.7492 GB, free: 11.64 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.811e-05/2.214, allocations: 13.36 kB / 0.7492 GB, free: 11.64 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02634/2.24, allocations: 9.006 MB / 0.758 GB, free: 4.324 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-05/2.24, allocations: 0 / 0.758 GB, free: 4.324 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004547/2.245, allocations: 466.3 kB / 0.7585 GB, free: 3.961 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001632/2.247, allocations: 338.7 kB / 0.7588 GB, free: 3.703 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004973/2.247, allocations: 11.42 kB / 0.7588 GB, free: 3.695 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007368/2.255, allocations: 4.757 MB / 0.7634 GB, free: 15.11 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/2.255, allocations: 0 / 0.7634 GB, free: 15.11 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01808/2.273, allocations: 6.889 MB / 0.7702 GB, free: 8.906 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003324/2.276, allocations: 0.7847 MB / 0.7709 GB, free: 8.16 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001587/2.278, allocations: 3.625 kB / 0.7709 GB, free: 8.16 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004439/2.282, allocations: 121.2 kB / 0.771 GB, free: 8.094 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000932/2.283, allocations: 148.5 kB / 0.7712 GB, free: 8 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003848/2.284, allocations: 71.8 kB / 0.7713 GB, free: 7.934 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007525/2.291, allocations: 2.587 MB / 0.7738 GB, free: 5.691 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.102e-06/2.291, allocations: 0 / 0.7738 GB, free: 5.691 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009179/2.3, allocations: 1.107 MB / 0.7749 GB, free: 4.59 MB / 474.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (225): * Single equations (assignments): 220 * 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.01791/2.318, allocations: 7.685 MB / 0.7824 GB, free: 13.6 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.01564/2.334, allocations: 6.07 MB / 0.7883 GB, free: 8.07 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 8.276e-06/2.334, allocations: 0 / 0.7883 GB, free: 8.07 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005318/2.339, allocations: 2.12 MB / 0.7904 GB, free: 6.113 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004591/2.344, allocations: 471.6 kB / 0.7908 GB, free: 5.715 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0483/2.392, allocations: 12.46 MB / 0.803 GB, free: 11.72 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01353/2.406, allocations: 4.221 MB / 0.8071 GB, free: 8.594 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01038/2.416, allocations: 2.668 MB / 0.8097 GB, free: 6.129 MB / 0.4948 GB Notification: Performance of SimCode: time 1.603e-06/2.416, allocations: 0 / 0.8097 GB, free: 6.129 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.609/8.025, allocations: 149.2 MB / 0.9554 GB, free: 39.04 MB / 0.4948 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