Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.Prismatic.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.Joints.Prismatic,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_MultiBody_Joints_Prismatic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.902/1.902, allocations: 209.2 MB / 224.8 MB, free: 1.367 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004494/0.0004495, allocations: 12 kB / 282.7 MB, free: 9.648 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1078, allocations: 48.7 MB / 331.4 MB, free: 8.855 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4273/0.5351, allocations: 88.77 MB / 420.1 MB, free: 12.21 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002897/0.5355, allocations: 78.19 kB / 420.2 MB, free: 12.14 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6567/1.192, allocations: 84.62 MB / 0.493 GB, free: 92.43 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.226e-06/1.192, allocations: 0 / 0.493 GB, free: 92.43 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002175/1.192, allocations: 72.75 kB / 0.4931 GB, free: 92.43 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: 1554 * Number of variables: 1554 Notification: Performance of Generate backend data structure: time 0.01525/1.208, allocations: 3.649 MB / 0.4966 GB, free: 90.74 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.631e-05/1.208, allocations: 8.125 kB / 0.4966 GB, free: 90.74 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003758/1.212, allocations: 0.7874 MB / 0.4974 GB, free: 90.66 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02741/1.239, allocations: 3.5 MB / 0.5008 GB, free: 90.39 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01683/1.256, allocations: 4.202 MB / 0.5049 GB, free: 89.9 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005911/1.257, allocations: 301.7 kB / 0.5052 GB, free: 89.89 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003014/1.26, allocations: 389.3 kB / 0.5056 GB, free: 89.89 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03202/1.292, allocations: 9.943 MB / 0.5153 GB, free: 88.64 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002918/1.292, allocations: 31.92 kB / 0.5153 GB, free: 88.64 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002587/1.295, allocations: 180.2 kB / 0.5155 GB, free: 88.64 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00281/1.297, allocations: 1.159 MB / 0.5166 GB, free: 88.63 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02644/1.324, allocations: 9.427 MB / 0.5258 GB, free: 87.26 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06278/1.387, allocations: 32.44 MB / 0.5575 GB, free: 67.18 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008727/1.396, allocations: 3.362 MB / 0.5608 GB, free: 65.36 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001386/1.397, allocations: 1.301 MB / 0.5621 GB, free: 64.19 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.423e-05/1.397, allocations: 47.38 kB / 0.5621 GB, free: 64.14 MB / 410.7 MB Notification: Performance of pre-optimization done (n=187): time 6.372e-06/1.397, allocations: 4 kB / 0.5621 GB, free: 64.14 MB / 410.7 MB Notification: Performance of matching and sorting (n=193): time 0.03357/1.431, allocations: 10.29 MB / 0.5722 GB, free: 54.8 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.671e-05/1.431, allocations: 94.36 kB / 0.5723 GB, free: 54.7 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004535/1.435, allocations: 2.346 MB / 0.5746 GB, free: 52.7 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003388/1.436, allocations: 49.7 kB / 0.5746 GB, free: 52.65 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001919/1.438, allocations: 2.736 MB / 0.5773 GB, free: 50.19 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009629/1.439, allocations: 0.7057 MB / 0.578 GB, free: 49.57 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004637/1.439, allocations: 92 kB / 0.5781 GB, free: 49.48 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000331/1.44, allocations: 0.5275 MB / 0.5786 GB, free: 49 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003685/1.443, allocations: 1.533 MB / 0.5801 GB, free: 47.71 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005795/1.449, allocations: 4.409 MB / 0.5844 GB, free: 42.2 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005689/1.455, allocations: 2.62 MB / 0.5869 GB, free: 39.88 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.135e-05/1.455, allocations: 28 kB / 0.587 GB, free: 39.85 MB / 410.7 MB Notification: Performance of matching and sorting (n=653) (initialization): time 0.01435/1.469, allocations: 5.817 MB / 0.5926 GB, free: 34.13 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.273e-05/1.469, allocations: 52.94 kB / 0.5927 GB, free: 34.08 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001236/1.47, allocations: 106.7 kB / 0.5928 GB, free: 33.98 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004709/1.47, allocations: 192.8 kB / 0.593 GB, free: 33.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00614/1.476, allocations: 1.084 MB / 0.594 GB, free: 32.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001847/1.478, allocations: 1.701 MB / 0.5957 GB, free: 30.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004442/1.483, allocations: 204 kB / 0.5959 GB, free: 30.68 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001035/1.484, allocations: 303.5 kB / 0.5962 GB, free: 30.39 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 464 * Number of states: 0 () * Number of discrete variables: 24 (frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],axis.color[3],axis.color[2],axis.color[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (601): * Single equations (assignments): 594 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005133/1.489, allocations: 2.024 MB / 0.5982 GB, free: 28.35 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005455/1.489, allocations: 248.7 kB / 0.5984 GB, free: 28.1 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006272/1.496, allocations: 2.526 MB / 0.6009 GB, free: 25.55 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.858e-05/1.496, allocations: 20 kB / 0.6009 GB, free: 25.54 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/1.496, allocations: 4 kB / 0.6009 GB, free: 25.53 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.73e-05/1.496, allocations: 7.938 kB / 0.6009 GB, free: 25.52 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02015/1.516, allocations: 8.179 MB / 0.6089 GB, free: 17.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-05/1.516, allocations: 12 kB / 0.6089 GB, free: 17.17 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002033/1.518, allocations: 255.6 kB / 0.6091 GB, free: 16.92 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002565/1.518, allocations: 64.7 kB / 0.6092 GB, free: 16.85 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000222/1.519, allocations: 43.95 kB / 0.6092 GB, free: 16.81 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001444/1.52, allocations: 1.516 MB / 0.6107 GB, free: 15.17 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.116e-05/1.52, allocations: 15.94 kB / 0.6107 GB, free: 15.15 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00812/1.528, allocations: 4.898 MB / 0.6155 GB, free: 9.824 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001653/1.53, allocations: 0.5094 MB / 0.616 GB, free: 9.293 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006141/1.531, allocations: 35.98 kB / 0.616 GB, free: 9.258 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001555/1.532, allocations: 63 kB / 0.6161 GB, free: 9.199 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003394/1.533, allocations: 116.7 kB / 0.6162 GB, free: 9.082 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001747/1.533, allocations: 67.98 kB / 0.6163 GB, free: 9.016 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003525/1.536, allocations: 1.6 MB / 0.6178 GB, free: 7.406 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.41e-07/1.536, allocations: 0 / 0.6178 GB, free: 7.406 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005694/1.542, allocations: 0.8222 MB / 0.6186 GB, free: 6.586 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (prismatic.s,prismatic.v) * 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 (142): * Single equations (assignments): 135 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009668/1.552, allocations: 8.265 MB / 0.6267 GB, free: 14 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01333/1.565, allocations: 3.844 MB / 0.6305 GB, free: 10.16 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.243e-05/1.565, allocations: 5.812 kB / 0.6305 GB, free: 10.16 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004625/1.57, allocations: 1.239 MB / 0.6317 GB, free: 8.91 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00362/1.574, allocations: 308.2 kB / 0.632 GB, free: 8.617 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3759/1.95, allocations: 95.48 MB / 0.7252 GB, free: 17.79 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008222/1.958, allocations: 3.278 MB / 0.7284 GB, free: 17.02 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004338/1.962, allocations: 1.796 MB / 0.7302 GB, free: 17.01 MB / 426.7 MB Notification: Performance of SimCode: time 1.543e-06/1.962, allocations: 0 / 0.7302 GB, free: 17.01 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.342/6.304, allocations: 86.12 MB / 0.8143 GB, free: 104.6 MB / 442.7 MB TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.Prismatic_res.mat does not exist to compare? outputFormat=mat