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.PendulumWithSpringDamper.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.PendulumWithSpringDamper,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_PendulumWithSpringDamper",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.67/1.67, allocations: 171.1 MB / 186.7 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004843/0.0004844, allocations: 12 kB / 233.3 MB, free: 2.93 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08082/0.08135, allocations: 38.77 MB / 272.1 MB, free: 12.08 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4183/0.4997, allocations: 87.14 MB / 359.3 MB, free: 2.992 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003306/0.5001, allocations: 89.95 kB / 359.3 MB, free: 2.945 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5704/1.071, allocations: 73.92 MB / 433.3 MB, free: 74.48 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.755e-06/1.071, allocations: 1.125 kB / 433.3 MB, free: 74.48 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002346/1.071, allocations: 71.44 kB / 433.3 MB, free: 74.48 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: 1322 * Number of variables: 1322 Notification: Performance of Generate backend data structure: time 0.01595/1.087, allocations: 3.591 MB / 436.9 MB, free: 73.65 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.641e-05/1.087, allocations: 11.78 kB / 436.9 MB, free: 73.65 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003431/1.09, allocations: 0.6731 MB / 437.6 MB, free: 73.58 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01827/1.109, allocations: 2.259 MB / 439.9 MB, free: 73.34 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01706/1.126, allocations: 3.91 MB / 443.8 MB, free: 72.86 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004838/1.126, allocations: 280.3 kB / 444 MB, free: 72.85 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002223/1.129, allocations: 357.8 kB / 444.4 MB, free: 72.85 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03999/1.169, allocations: 10.35 MB / 454.8 MB, free: 70.29 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002989/1.169, allocations: 59.09 kB / 454.8 MB, free: 70.28 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001862/1.171, allocations: 178.7 kB / 455 MB, free: 70.28 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003155/1.174, allocations: 0.9819 MB / 456 MB, free: 70.27 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03801/1.212, allocations: 8.642 MB / 464.6 MB, free: 70.2 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06408/1.276, allocations: 44.02 MB / 0.4967 GB, free: 37.84 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01601/1.292, allocations: 3.561 MB / 0.5002 GB, free: 36.46 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01608/1.308, allocations: 7.144 MB / 0.5072 GB, free: 32.5 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.435e-05/1.308, allocations: 50.61 kB / 0.5072 GB, free: 32.44 MB / 346.7 MB Notification: Performance of pre-optimization done (n=139): time 5.761e-06/1.309, allocations: 4 kB / 0.5072 GB, free: 32.44 MB / 346.7 MB Notification: Performance of matching and sorting (n=155): time 0.08673/1.395, allocations: 17 MB / 0.5238 GB, free: 18.43 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.233e-05/1.395, allocations: 149.5 kB / 0.524 GB, free: 18.26 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005883/1.401, allocations: 3.094 MB / 0.527 GB, free: 15.64 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000386/1.402, allocations: 46.88 kB / 0.527 GB, free: 15.59 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001783/1.403, allocations: 2.677 MB / 0.5296 GB, free: 13.14 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008163/1.404, allocations: 0.6024 MB / 0.5302 GB, free: 12.54 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003813/1.405, allocations: 108 kB / 0.5303 GB, free: 12.44 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003012/1.405, allocations: 0.5342 MB / 0.5309 GB, free: 11.89 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004574/1.41, allocations: 1.927 MB / 0.5327 GB, free: 9.961 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006176/1.416, allocations: 5.293 MB / 0.5379 GB, free: 2.965 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006997/1.423, allocations: 3.102 MB / 0.5409 GB, free: 15.86 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.793e-05/1.423, allocations: 36 kB / 0.541 GB, free: 15.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=708) (initialization): time 0.02822/1.451, allocations: 7.977 MB / 0.5488 GB, free: 7.84 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001332/1.451, allocations: 56 kB / 0.5488 GB, free: 7.785 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002122/1.452, allocations: 120 kB / 0.5489 GB, free: 7.668 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007741/1.459, allocations: 1.308 MB / 0.5502 GB, free: 6.359 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008055/1.467, allocations: 1.259 MB / 0.5514 GB, free: 5.098 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2719/1.739, allocations: 6.288 MB / 0.5576 GB, free: 77.45 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006963/1.747, allocations: 350.8 kB / 0.5579 GB, free: 77.45 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001553/1.748, allocations: 334.1 kB / 0.5582 GB, free: 77.45 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 547 * Number of states: 0 () * Number of discrete variables: 33 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],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],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 (665): * Single equations (assignments): 661 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005329/1.753, allocations: 1.785 MB / 0.56 GB, free: 77.33 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008382/1.754, allocations: 299.8 kB / 0.5603 GB, free: 77.33 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01323/1.768, allocations: 3.309 MB / 0.5635 GB, free: 77.23 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.52e-05/1.768, allocations: 16.88 kB / 0.5635 GB, free: 77.23 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.195e-05/1.768, allocations: 4.688 kB / 0.5635 GB, free: 77.23 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.12e-05/1.768, allocations: 12.23 kB / 0.5635 GB, free: 77.23 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02362/1.791, allocations: 7.368 MB / 0.5707 GB, free: 76.78 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.367e-05/1.791, allocations: 3.703 kB / 0.5707 GB, free: 76.78 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002297/1.794, allocations: 239.7 kB / 0.571 GB, free: 76.78 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006455/1.8, allocations: 1.112 MB / 0.572 GB, free: 76.77 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003927/1.801, allocations: 29.94 kB / 0.5721 GB, free: 76.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0132/1.814, allocations: 5.916 MB / 0.5778 GB, free: 75.45 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/1.814, allocations: 1.438 kB / 0.5778 GB, free: 75.45 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01606/1.83, allocations: 5.648 MB / 0.5834 GB, free: 74.93 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002121/1.832, allocations: 0.5735 MB / 0.5839 GB, free: 74.8 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000943/1.833, allocations: 32.16 kB / 0.584 GB, free: 74.8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003032/1.836, allocations: 110.3 kB / 0.5841 GB, free: 74.8 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005858/1.837, allocations: 84.77 kB / 0.5841 GB, free: 74.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001835/1.837, allocations: 42.19 kB / 0.5842 GB, free: 74.8 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.005713/1.843, allocations: 2.151 MB / 0.5863 GB, free: 74.65 MB / 362.7 MB Notification: Performance of sort global known variables: time 9.82e-07/1.843, allocations: 0 / 0.5863 GB, free: 74.65 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006521/1.849, allocations: 0.8943 MB / 0.5872 GB, free: 74.57 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,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 (119): * Single equations (assignments): 115 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01721/1.867, allocations: 6.474 MB / 0.5935 GB, free: 71.73 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01201/1.879, allocations: 4.691 MB / 0.5981 GB, free: 70.43 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.364e-06/1.879, allocations: 0 / 0.5981 GB, free: 70.43 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003859/1.883, allocations: 1.493 MB / 0.5995 GB, free: 69.86 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002636/1.885, allocations: 320.7 kB / 0.5998 GB, free: 69.71 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3562/2.242, allocations: 112.4 MB / 0.7096 GB, free: 98.78 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005974/2.248, allocations: 2.899 MB / 0.7124 GB, free: 98.02 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004035/2.252, allocations: 1.588 MB / 0.7139 GB, free: 98.01 MB / 394.7 MB Notification: Performance of SimCode: time 1.182e-06/2.252, allocations: 0 / 0.7139 GB, free: 98.01 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.164/6.416, allocations: 83.35 MB / 0.7953 GB, free: 48.45 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.PendulumWithSpringDamper_res.mat does not exist to compare? outputFormat=mat