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: translateModel(Modelica.Mechanics.Rotational.Examples.First,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|damper.phi_rel|damper.w_rel|inertia3.phi|inertia3.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.First") Notification: Performance of loadModel(Modelica): time 2.009/2.009, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003631/0.0003633, allocations: 11.98 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1035, allocations: 44.51 MB / 309 MB, free: 1.047 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4093/0.5129, allocations: 73.13 MB / 382.1 MB, free: 14.85 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002736/0.5132, allocations: 79.34 kB / 382.2 MB, free: 14.85 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01545/0.5287, allocations: 3.84 MB / 386 MB, free: 14.3 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.316e-06/0.5288, allocations: 0 / 386 MB, free: 14.3 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.742e-05/0.5288, allocations: 6.547 kB / 386 MB, free: 14.3 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.0008121/0.5296, allocations: 490.1 kB / 386.5 MB, free: 13.88 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/0.5297, allocations: 13.31 kB / 386.5 MB, free: 13.88 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.474e-05/0.5298, allocations: 25.41 kB / 386.5 MB, free: 13.87 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003/0.5301, allocations: 248.9 kB / 386.8 MB, free: 13.63 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.673e-05/0.5301, allocations: 15.34 kB / 386.8 MB, free: 13.63 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.52e-05/0.5302, allocations: 20.72 kB / 386.8 MB, free: 13.63 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005188/0.5307, allocations: 193.2 kB / 387 MB, free: 13.59 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.354e-05/0.5308, allocations: 1.281 kB / 387 MB, free: 13.59 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.13e-05/0.5308, allocations: 8.531 kB / 387 MB, free: 13.59 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/0.5308, allocations: 5.344 kB / 387 MB, free: 13.59 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004415/0.5313, allocations: 146.2 kB / 387.2 MB, free: 13.59 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001237/0.5325, allocations: 0.6223 MB / 387.8 MB, free: 13.27 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004324/0.533, allocations: 181.6 kB / 388 MB, free: 13.24 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.079e-05/0.533, allocations: 2.594 kB / 388 MB, free: 13.24 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.633e-05/0.5331, allocations: 35.53 kB / 388 MB, free: 13.2 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 2.124e-06/0.5331, allocations: 0 / 388 MB, free: 13.2 MB / 314.7 MB Notification: Performance of matching and sorting (n=32): time 0.002716/0.5358, allocations: 1.082 MB / 389.1 MB, free: 12.67 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.436e-05/0.5359, allocations: 58.08 kB / 389.1 MB, free: 12.6 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002241/0.5361, allocations: 180 kB / 389.3 MB, free: 12.5 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.458e-05/0.5362, allocations: 30.64 kB / 389.4 MB, free: 12.47 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.807e-05/0.5362, allocations: 200.6 kB / 389.5 MB, free: 12.3 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.794e-05/0.5363, allocations: 112 kB / 389.7 MB, free: 12.23 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.686e-05/0.5364, allocations: 4.656 kB / 389.7 MB, free: 12.23 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.224e-05/0.5365, allocations: 330.4 kB / 390 MB, free: 11.91 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000227/0.5367, allocations: 69.83 kB / 390.1 MB, free: 11.91 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002577/0.537, allocations: 105.8 kB / 390.2 MB, free: 11.89 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002639/0.5372, allocations: 87.02 kB / 390.2 MB, free: 11.88 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.5373, allocations: 4 kB / 390.2 MB, free: 11.88 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0007788/0.538, allocations: 290.1 kB / 390.5 MB, free: 11.81 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.029e-05/0.5381, allocations: 5.5 kB / 390.5 MB, free: 11.81 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.5381, allocations: 0 / 390.5 MB, free: 11.81 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002636/0.5384, allocations: 43.94 kB / 390.6 MB, free: 11.8 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004357/0.5388, allocations: 66.5 kB / 390.6 MB, free: 11.8 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001603/0.5404, allocations: 1.581 MB / 392.2 MB, free: 10.45 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002548/0.5407, allocations: 9.375 kB / 392.2 MB, free: 10.45 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.413e-05/0.5408, allocations: 14.03 kB / 392.2 MB, free: 10.44 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.0001868/0.541, allocations: 135.3 kB / 392.4 MB, free: 10.32 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.771e-05/0.541, allocations: 21.84 kB / 392.4 MB, free: 10.32 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.712e-05/0.5411, allocations: 31.5 kB / 392.4 MB, free: 10.31 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.5411, allocations: 7.812 kB / 392.4 MB, free: 10.3 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.107e-06/0.5411, allocations: 0 / 392.4 MB, free: 10.3 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.043e-06/0.5411, allocations: 2.953 kB / 392.4 MB, free: 10.3 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001432/0.5426, allocations: 0.8023 MB / 393.2 MB, free: 9.895 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.5426, allocations: 0 / 393.2 MB, free: 9.895 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005375/0.5432, allocations: 54.52 kB / 393.3 MB, free: 9.895 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001876/0.5434, allocations: 36.34 kB / 393.3 MB, free: 9.883 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.827e-05/0.5434, allocations: 12.16 kB / 393.3 MB, free: 9.879 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001221/0.5446, allocations: 1.391 MB / 394.7 MB, free: 8.605 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.5447, allocations: 4.062 kB / 394.7 MB, free: 8.602 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009481/0.5456, allocations: 487 kB / 395.2 MB, free: 8.41 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.684e-05/0.5457, allocations: 101.8 kB / 395.3 MB, free: 8.305 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.531e-05/0.5458, allocations: 6.969 kB / 395.3 MB, free: 8.305 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002152/0.546, allocations: 9.047 kB / 395.3 MB, free: 8.305 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.163e-05/0.5461, allocations: 23.39 kB / 395.3 MB, free: 8.301 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.946e-05/0.5461, allocations: 7.812 kB / 395.4 MB, free: 8.301 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001349/0.5463, allocations: 134.5 kB / 395.5 MB, free: 8.227 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5463, allocations: 7.938 kB / 395.5 MB, free: 8.219 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005312/0.5468, allocations: 65.28 kB / 395.6 MB, free: 8.219 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.0001494/0.547, allocations: 111 kB / 395.7 MB, free: 8.125 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008188/0.5478, allocations: 334.2 kB / 396 MB, free: 8.004 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.5478, allocations: 0 / 396 MB, free: 8.004 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004545/0.5483, allocations: 249.6 kB / 396.2 MB, free: 7.875 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000505/0.5488, allocations: 43.53 kB / 396.3 MB, free: 7.867 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001752/0.5506, allocations: 0.9043 MB / 397.2 MB, free: 7.285 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002673/0.5509, allocations: 0.7605 MB / 397.9 MB, free: 6.586 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001003/0.551, allocations: 24.16 kB / 398 MB, free: 6.578 MB / 314.7 MB Notification: Performance of SimCode: time 1.312e-06/0.551, allocations: 0 / 398 MB, free: 6.578 MB / 314.7 MB Notification: Performance of Templates: time 0.007236/0.5582, allocations: 3.689 MB / 401.7 MB, free: 6.352 MB / 314.7 MB