Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem.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) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_SpringDamperSystem",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.673/1.673, allocations: 171.2 MB / 186.8 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003732/0.0003733, allocations: 15.98 kB / 233.3 MB, free: 2.926 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07988/0.0803, allocations: 38.76 MB / 272.1 MB, free: 12.08 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3659/0.4462, allocations: 84.73 MB / 356.8 MB, free: 4.895 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000341/0.4466, allocations: 87.64 kB / 356.9 MB, free: 4.848 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.701/1.148, allocations: 91.57 MB / 448.5 MB, free: 71.82 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.544e-06/1.148, allocations: 0 / 448.5 MB, free: 71.82 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002418/1.148, allocations: 94.02 kB / 448.6 MB, free: 71.82 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1644 * Number of variables: 1644 Notification: Performance of Generate backend data structure: time 0.02446/1.172, allocations: 4.867 MB / 453.5 MB, free: 69.85 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/1.173, allocations: 11.72 kB / 453.5 MB, free: 69.85 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003717/1.176, allocations: 0.8349 MB / 454.3 MB, free: 69.77 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02101/1.197, allocations: 2.67 MB / 457 MB, free: 69.47 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01934/1.217, allocations: 5.562 MB / 462.5 MB, free: 68.88 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004294/1.217, allocations: 355.3 kB / 462.9 MB, free: 68.86 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002491/1.22, allocations: 460.6 kB / 463.3 MB, free: 68.86 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03835/1.258, allocations: 12.42 MB / 475.8 MB, free: 65.7 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002755/1.258, allocations: 74.73 kB / 475.8 MB, free: 65.7 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001896/1.26, allocations: 230.8 kB / 476.1 MB, free: 65.69 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002776/1.263, allocations: 1.171 MB / 477.2 MB, free: 65.68 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03371/1.297, allocations: 10.18 MB / 487.4 MB, free: 63.61 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07116/1.368, allocations: 52.32 MB / 0.5271 GB, free: 16.75 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01757/1.386, allocations: 4.082 MB / 0.5311 GB, free: 12.54 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01532/1.401, allocations: 7.393 MB / 0.5383 GB, free: 4.949 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.091e-05/1.401, allocations: 51.56 kB / 0.5383 GB, free: 4.887 MB / 346.7 MB Notification: Performance of pre-optimization done (n=165): time 6.422e-06/1.401, allocations: 0 / 0.5383 GB, free: 4.887 MB / 346.7 MB Notification: Performance of matching and sorting (n=188): time 0.07546/1.477, allocations: 16.3 MB / 0.5542 GB, free: 4.336 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00182/1.479, allocations: 1.613 MB / 0.5558 GB, free: 2.559 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2554/1.734, allocations: 3.76 MB / 0.5595 GB, free: 80.81 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005208/1.735, allocations: 51.81 kB / 0.5595 GB, free: 80.78 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003415/1.738, allocations: 3.306 MB / 0.5628 GB, free: 79.66 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001432/1.739, allocations: 0.748 MB / 0.5635 GB, free: 79.27 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008838/1.74, allocations: 132.3 kB / 0.5636 GB, free: 79.27 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0005878/1.741, allocations: 0.5917 MB / 0.5642 GB, free: 78.94 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007366/1.748, allocations: 2.217 MB / 0.5664 GB, free: 78.93 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01081/1.759, allocations: 6.274 MB / 0.5725 GB, free: 73.68 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01/1.769, allocations: 3.624 MB / 0.576 GB, free: 73.66 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002336/1.77, allocations: 39.03 kB / 0.5761 GB, free: 73.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=863) (initialization): time 0.02714/1.797, allocations: 8.794 MB / 0.5847 GB, free: 72.87 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001235/1.797, allocations: 67.84 kB / 0.5847 GB, free: 72.87 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008527/1.805, allocations: 2.679 MB / 0.5873 GB, free: 72.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004825/1.81, allocations: 0.9974 MB / 0.5883 GB, free: 72.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009709/1.82, allocations: 1.594 MB / 0.5899 GB, free: 72.63 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005041/1.825, allocations: 4.039 MB / 0.5938 GB, free: 69.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008746/1.834, allocations: 0.5005 MB / 0.5943 GB, free: 69.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001633/1.836, allocations: 404.2 kB / 0.5947 GB, free: 69.96 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 659 * Number of states: 0 () * Number of discrete variables: 42 (damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],p2.boxColor[3],p2.boxColor[2],p2.boxColor[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],bar2.color[3],bar2.color[2],bar2.color[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (828): * Single equations (assignments): 819 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006349/1.842, allocations: 2.183 MB / 0.5968 GB, free: 69.39 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001018/1.843, allocations: 374.6 kB / 0.5972 GB, free: 69.19 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01087/1.854, allocations: 3.195 MB / 0.6003 GB, free: 68.11 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00896/1.863, allocations: 2.659 MB / 0.6029 GB, free: 67.31 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-05/1.863, allocations: 5.906 kB / 0.6029 GB, free: 67.31 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.066e-05/1.863, allocations: 12.83 kB / 0.6029 GB, free: 67.31 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03141/1.895, allocations: 10.01 MB / 0.6127 GB, free: 63.39 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.692e-05/1.895, allocations: 13.59 kB / 0.6127 GB, free: 63.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002789/1.897, allocations: 345.8 kB / 0.613 GB, free: 63.36 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004921/1.902, allocations: 0.9799 MB / 0.614 GB, free: 63.2 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002689/1.903, allocations: 54.91 kB / 0.614 GB, free: 63.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006814/1.909, allocations: 4.679 MB / 0.6186 GB, free: 60.06 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001049/1.911, allocations: 1.484 MB / 0.6201 GB, free: 58.61 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01424/1.925, allocations: 7.21 MB / 0.6271 GB, free: 54.17 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002254/1.927, allocations: 0.6581 MB / 0.6277 GB, free: 53.77 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000723/1.928, allocations: 47.86 kB / 0.6278 GB, free: 53.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003251/1.931, allocations: 172.7 kB / 0.628 GB, free: 53.72 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004944/1.932, allocations: 163.4 kB / 0.6281 GB, free: 53.67 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002061/1.932, allocations: 71.59 kB / 0.6282 GB, free: 53.66 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00705/1.939, allocations: 2.62 MB / 0.6307 GB, free: 52.78 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.52e-07/1.939, allocations: 0 / 0.6307 GB, free: 52.78 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00805/1.947, allocations: 1.103 MB / 0.6318 GB, free: 52.66 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 56 * Number of states: 14 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3],p2.s,p2.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 (164): * Single equations (assignments): 157 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0157/1.963, allocations: 10.85 MB / 0.6424 GB, free: 42.29 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01536/1.978, allocations: 5.667 MB / 0.6479 GB, free: 37.36 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.657e-05/1.978, allocations: 0 / 0.6479 GB, free: 37.36 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006356/1.985, allocations: 2.148 MB / 0.65 GB, free: 35.47 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003606/1.988, allocations: 452.7 kB / 0.6505 GB, free: 35.08 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3972/2.386, allocations: 137 MB / 0.7842 GB, free: 28.57 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007666/2.393, allocations: 3.502 MB / 0.7876 GB, free: 27.77 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004893/2.398, allocations: 2.092 MB / 0.7897 GB, free: 27.76 MB / 394.7 MB Notification: Performance of SimCode: time 1.022e-06/2.398, allocations: 0.875 kB / 0.7897 GB, free: 27.76 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.024/7.422, allocations: 157.3 MB / 0.9433 GB, free: 51.77 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringDamperSystem_res.mat does not exist to compare? outputFormat=mat