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.LineForceWithTwoMasses.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.LineForceWithTwoMasses,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_MultiBody_Forces_LineForceWithTwoMasses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.168/2.168, allocations: 235.1 MB / 243 MB, free: 9.586 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.317e-05/2.314e-05, allocations: 4 kB / 303.3 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3629/0.3629, allocations: 54.85 MB / 358.1 MB, free: 14.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2077/0.5707, allocations: 105.1 MB / 463.2 MB, free: 5.691 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002858/0.5711, allocations: 75.95 kB / 463.3 MB, free: 5.617 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8265/1.398, allocations: 133.1 MB / 0.5824 GB, free: 0.9062 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.665e-06/1.398, allocations: 0 / 0.5824 GB, free: 0.9062 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005535/1.398, allocations: 136 kB / 0.5825 GB, free: 0.7734 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2299 * Number of variables: 2299 Notification: Performance of Generate backend data structure: time 0.03288/1.431, allocations: 7.039 MB / 0.5894 GB, free: 9.656 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.852e-05/1.431, allocations: 12.03 kB / 0.5894 GB, free: 9.645 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05815/1.489, allocations: 7.561 MB / 0.5968 GB, free: 2.062 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03757/1.527, allocations: 9.798 MB / 0.6064 GB, free: 8.18 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004879/1.528, allocations: 208 kB / 0.6066 GB, free: 7.977 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003646/1.531, allocations: 399.7 kB / 0.6069 GB, free: 7.586 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02809/1.559, allocations: 9.687 MB / 0.6164 GB, free: 13.89 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3696/1.929, allocations: 14.23 MB / 0.6303 GB, free: 67.45 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006486/1.93, allocations: 93.89 kB / 0.6304 GB, free: 67.45 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002667/1.932, allocations: 45.55 kB / 0.6304 GB, free: 67.45 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004354/1.937, allocations: 1.582 MB / 0.632 GB, free: 67.43 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1371/2.074, allocations: 73.68 MB / 0.7039 GB, free: 24.71 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01504/2.089, allocations: 5.226 MB / 0.709 GB, free: 23.69 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01082/2.1, allocations: 3.768 MB / 0.7127 GB, free: 22.02 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005106/2.105, allocations: 2.261 MB / 0.7149 GB, free: 19.97 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001238/2.105, allocations: 66.98 kB / 0.715 GB, free: 19.91 MB / 458.7 MB Notification: Performance of pre-optimization done (n=301): time 1.127e-05/2.105, allocations: 6.25 kB / 0.715 GB, free: 19.91 MB / 458.7 MB Notification: Performance of matching and sorting (n=381): time 0.1922/2.297, allocations: 40.66 MB / 0.7547 GB, free: 6.484 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001481/2.298, allocations: 287.2 kB / 0.755 GB, free: 6.191 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01428/2.312, allocations: 4.628 MB / 0.7595 GB, free: 3.699 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00118/2.313, allocations: 29.7 kB / 0.7595 GB, free: 3.664 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005528/2.319, allocations: 4.627 MB / 0.764 GB, free: 15.58 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003396/2.322, allocations: 1.354 MB / 0.7654 GB, free: 14.36 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00166/2.324, allocations: 3.469 kB / 0.7654 GB, free: 14.36 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001325/2.325, allocations: 0.709 MB / 0.7661 GB, free: 13.75 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01446/2.34, allocations: 3.649 MB / 0.7696 GB, free: 10.48 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02334/2.363, allocations: 8.918 MB / 0.7783 GB, free: 15.71 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01933/2.383, allocations: 5.58 MB / 0.7838 GB, free: 11.1 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000332/2.383, allocations: 52 kB / 0.7838 GB, free: 11.05 MB / 490.7 MB Notification: Performance of matching and sorting (n=1240) (initialization): time 0.07873/2.462, allocations: 15.37 MB / 0.7988 GB, free: 14.5 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001742/2.462, allocations: 84 kB / 0.7989 GB, free: 14.42 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003285/2.462, allocations: 188 kB / 0.7991 GB, free: 14.23 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02458/2.487, allocations: 4.074 MB / 0.8031 GB, free: 11.4 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01939/2.506, allocations: 2.107 MB / 0.8051 GB, free: 9.562 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4637/2.97, allocations: 21.23 MB / 0.8259 GB, free: 108 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01118/2.981, allocations: 387.4 kB / 0.8262 GB, free: 108 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002475/2.984, allocations: 0.5447 MB / 0.8268 GB, free: 108 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 852 * Number of states: 0 () * Number of discrete variables: 63 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[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],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (1121): * Single equations (assignments): 1116 * 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 {(2,100.0%) 43,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003579/2.987, allocations: 0.58 MB / 0.8273 GB, free: 107.9 MB / 0.4948 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03737/3.025, allocations: 9.838 MB / 0.8369 GB, free: 107.8 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002166/3.027, allocations: 0.5426 MB / 0.8375 GB, free: 107.8 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03819/3.065, allocations: 9.567 MB / 0.8468 GB, free: 107.5 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.414e-05/3.065, allocations: 40 kB / 0.8469 GB, free: 107.5 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.57e-05/3.065, allocations: 18.94 kB / 0.8469 GB, free: 107.5 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.727e-05/3.066, allocations: 23.27 kB / 0.8469 GB, free: 107.5 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06521/3.131, allocations: 18.14 MB / 0.8646 GB, free: 106.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.345e-05/3.131, allocations: 3.469 kB / 0.8646 GB, free: 106.4 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005298/3.136, allocations: 0.5295 MB / 0.8651 GB, free: 106.4 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02063/3.157, allocations: 3.522 MB / 0.8686 GB, free: 105.9 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009909/3.158, allocations: 15.67 kB / 0.8686 GB, free: 105.9 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04435/3.202, allocations: 17.66 MB / 0.8858 GB, free: 98.11 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.39e-05/3.202, allocations: 2.781 kB / 0.8858 GB, free: 98.11 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0521/3.255, allocations: 14.3 MB / 0.8998 GB, free: 92.74 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00452/3.259, allocations: 1.085 MB / 0.9009 GB, free: 92.15 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001843/3.261, allocations: 8.906 kB / 0.9009 GB, free: 92.15 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005959/3.267, allocations: 172.7 kB / 0.901 GB, free: 92.15 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001648/3.269, allocations: 235.4 kB / 0.9013 GB, free: 92.11 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000582/3.269, allocations: 97.22 kB / 0.9014 GB, free: 92.09 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.007826/3.277, allocations: 3.124 MB / 0.9044 GB, free: 90.99 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.172e-06/3.277, allocations: 0 / 0.9044 GB, free: 90.99 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01256/3.29, allocations: 1.609 MB / 0.906 GB, free: 90.35 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * 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 (284): * Single equations (assignments): 279 * 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 {(2,100.0%) 43,(1,100.0%) 35} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04374/3.334, allocations: 15.52 MB / 0.9211 GB, free: 77.29 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02148/3.355, allocations: 9.228 MB / 0.9301 GB, free: 69.37 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.055e-05/3.355, allocations: 0 / 0.9301 GB, free: 69.37 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.00891/3.364, allocations: 3.668 MB / 0.9337 GB, free: 66.1 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006107/3.37, allocations: 0.5913 MB / 0.9343 GB, free: 65.62 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05131/3.422, allocations: 15.76 MB / 0.9497 GB, free: 52.22 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01211/3.434, allocations: 5.015 MB / 0.9546 GB, free: 48.05 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008712/3.443, allocations: 3.315 MB / 0.9578 GB, free: 44.73 MB / 0.4948 GB Notification: Performance of SimCode: time 1.914e-06/3.443, allocations: 0 / 0.9578 GB, free: 44.73 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 6.042/9.484, allocations: 183.8 MB / 1.137 GB, free: 21.75 MB / 0.4948 GB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.LineForceWithTwoMasses_res.mat does not exist to compare? outputFormat=mat