Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.First.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.First,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Mechanics_Rotational_Examples_First",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.918/1.918, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003578/0.0003579, allocations: 15.94 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09839/0.09879, allocations: 44.5 MB / 308.5 MB, free: 0.9062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4254/0.5242, allocations: 73.15 MB / 381.7 MB, free: 14.45 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003232/0.5246, allocations: 71.67 kB / 381.8 MB, free: 14.45 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01602/0.5407, allocations: 3.837 MB / 385.6 MB, free: 13.9 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.575e-06/0.5407, allocations: 2.844 kB / 385.6 MB, free: 13.9 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.794e-05/0.5408, allocations: 3.812 kB / 385.6 MB, free: 13.9 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0008748/0.5416, allocations: 497.5 kB / 386.1 MB, free: 13.48 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.211e-05/0.5417, allocations: 9.406 kB / 386.1 MB, free: 13.48 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.117e-05/0.5418, allocations: 55.41 kB / 386.1 MB, free: 13.44 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.178e-05/0.5419, allocations: 29.72 kB / 386.2 MB, free: 13.42 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000316/0.5422, allocations: 239.8 kB / 386.4 MB, free: 13.2 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.568e-05/0.5422, allocations: 16.53 kB / 386.4 MB, free: 13.2 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.096e-05/0.5423, allocations: 21.47 kB / 386.4 MB, free: 13.2 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005223/0.5429, allocations: 193.4 kB / 386.6 MB, free: 13.15 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.492e-05/0.5429, allocations: 5.281 kB / 386.6 MB, free: 13.15 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.994e-05/0.5429, allocations: 8.625 kB / 386.6 MB, free: 13.15 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.255e-05/0.543, allocations: 11.22 kB / 386.7 MB, free: 13.14 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004316/0.5434, allocations: 138.7 kB / 386.8 MB, free: 13.14 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001206/0.5446, allocations: 0.6241 MB / 387.4 MB, free: 12.83 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004521/0.5451, allocations: 185.5 kB / 387.6 MB, free: 12.8 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.157e-05/0.5451, allocations: 2.594 kB / 387.6 MB, free: 12.8 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.378e-05/0.5452, allocations: 31.91 kB / 387.6 MB, free: 12.76 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 2.785e-06/0.5452, allocations: 0 / 387.6 MB, free: 12.76 MB / 314.7 MB Notification: Performance of matching and sorting (n=32): time 0.002686/0.5479, allocations: 1.078 MB / 388.7 MB, free: 12.23 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.461e-05/0.548, allocations: 61.86 kB / 388.8 MB, free: 12.16 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001966/0.5482, allocations: 164.6 kB / 388.9 MB, free: 12.06 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.43e-05/0.5482, allocations: 30.52 kB / 389 MB, free: 12.03 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.289e-05/0.5483, allocations: 201.6 kB / 389.2 MB, free: 11.86 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.193e-05/0.5484, allocations: 110.2 kB / 389.3 MB, free: 11.79 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.623e-05/0.5484, allocations: 4.781 kB / 389.3 MB, free: 11.79 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.553e-05/0.5485, allocations: 326.3 kB / 389.6 MB, free: 11.48 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000215/0.5487, allocations: 68.42 kB / 389.7 MB, free: 11.48 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002662/0.549, allocations: 107.7 kB / 389.8 MB, free: 11.45 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002542/0.5493, allocations: 83.36 kB / 389.8 MB, free: 11.45 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.5493, allocations: 0 / 389.8 MB, free: 11.45 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0006899/0.55, allocations: 300.3 kB / 390.1 MB, free: 11.38 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.55, allocations: 4.469 kB / 390.1 MB, free: 11.38 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.865e-06/0.55, allocations: 0 / 390.1 MB, free: 11.38 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002281/0.5503, allocations: 41.75 kB / 390.2 MB, free: 11.37 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004098/0.5507, allocations: 58.06 kB / 390.2 MB, free: 11.37 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001597/0.5523, allocations: 1.578 MB / 391.8 MB, free: 10.02 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002307/0.5525, allocations: 16.22 kB / 391.8 MB, free: 10.02 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.258e-05/0.5526, allocations: 7.938 kB / 391.8 MB, free: 10.02 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * Array equations: 0 * 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%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001715/0.5528, allocations: 144.1 kB / 392 MB, free: 9.895 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.524e-05/0.5529, allocations: 19.38 kB / 392 MB, free: 9.887 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.857e-05/0.553, allocations: 29.59 kB / 392 MB, free: 9.879 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.553, allocations: 3.938 kB / 392 MB, free: 9.879 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.345e-06/0.553, allocations: 0 / 392 MB, free: 9.879 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.553, allocations: 1.547 kB / 392 MB, free: 9.879 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001416/0.5544, allocations: 0.7976 MB / 392.8 MB, free: 9.473 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.5544, allocations: 0 / 392.8 MB, free: 9.473 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004681/0.5549, allocations: 61.72 kB / 392.9 MB, free: 9.469 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001644/0.5551, allocations: 34.52 kB / 392.9 MB, free: 9.457 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.502e-05/0.5551, allocations: 11.16 kB / 392.9 MB, free: 9.457 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001155/0.5563, allocations: 1.392 MB / 394.3 MB, free: 8.18 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.5563, allocations: 3.938 kB / 394.3 MB, free: 8.18 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009285/0.5573, allocations: 0.5161 MB / 394.8 MB, free: 7.934 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.232e-05/0.5574, allocations: 100.4 kB / 394.9 MB, free: 7.824 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.559e-05/0.5574, allocations: 8.922 kB / 395 MB, free: 7.824 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002168/0.5576, allocations: 12.84 kB / 395 MB, free: 7.82 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.112e-05/0.5577, allocations: 26.58 kB / 395 MB, free: 7.816 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.974e-05/0.5577, allocations: 7.594 kB / 395 MB, free: 7.816 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001294/0.5579, allocations: 135.3 kB / 395.1 MB, free: 7.738 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5579, allocations: 0 / 395.1 MB, free: 7.738 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005445/0.5584, allocations: 71.88 kB / 395.2 MB, free: 7.734 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (inertia3.phi,inertia3.w,damper.phi_rel,damper.w_rel) * 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 (29): * Single equations (assignments): 28 * Array equations: 0 * 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%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001175/0.5596, allocations: 1.27 MB / 396.5 MB, free: 6.758 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008082/0.5605, allocations: 340.8 kB / 396.8 MB, free: 6.633 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.5605, allocations: 0 / 396.8 MB, free: 6.633 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004738/0.561, allocations: 244.1 kB / 397 MB, free: 6.512 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004976/0.5615, allocations: 47.08 kB / 397.1 MB, free: 6.5 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003266/0.5648, allocations: 2.003 MB / 399.1 MB, free: 5.336 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000232/0.565, allocations: 0.7688 MB / 399.9 MB, free: 4.625 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001552/0.5652, allocations: 73.12 kB / 399.9 MB, free: 4.617 MB / 314.7 MB Notification: Performance of SimCode: time 9.11e-07/0.5652, allocations: 0 / 399.9 MB, free: 4.617 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.754/3.319, allocations: 4.772 MB / 404.7 MB, free: 4.289 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.First_res.mat does not exist to compare? outputFormat=mat