Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Mechanics.Rotational.Examples.Friction.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_3_1_cpp_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.21/1.21, allocations: 111.2 MB / 119.1 MB, free: 11.18 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.816e-05/1.827e-05, allocations: 0 / 148.2 MB, free: 6.121 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05525/0.05529, allocations: 25.17 MB / 173.4 MB, free: 12.91 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2477/0.3031, allocations: 36.25 MB / 209.6 MB, free: 4.605 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002512/0.3034, allocations: 62.42 kB / 209.7 MB, free: 4.605 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0299/0.3333, allocations: 6.771 MB / 216.5 MB, free: 3.34 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3334, allocations: 0 / 216.5 MB, free: 3.34 MB / 170.7 MB Notification: Performance of Transformations before backend: time 2.213e-05/0.3334, allocations: 7.75 kB / 216.5 MB, free: 3.34 MB / 170.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 93 * Number of variables: 93 Notification: Performance of Generate backend data structure: time 0.001772/0.3352, allocations: 0.6905 MB / 217.2 MB, free: 2.805 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.98e-05/0.3352, allocations: 7.75 kB / 217.2 MB, free: 2.805 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001404/0.3354, allocations: 50.69 kB / 217.2 MB, free: 2.781 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004554/0.3359, allocations: 291.6 kB / 217.5 MB, free: 2.527 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.892e-05/0.3359, allocations: 11.62 kB / 217.5 MB, free: 2.527 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.776e-05/0.336, allocations: 23.38 kB / 217.5 MB, free: 2.527 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009959/0.337, allocations: 401.1 kB / 217.9 MB, free: 2.48 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008893/0.3379, allocations: 390.2 kB / 218.3 MB, free: 2.359 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.098e-05/0.338, allocations: 11.77 kB / 218.3 MB, free: 2.352 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.904e-05/0.3381, allocations: 3.953 kB / 218.3 MB, free: 2.348 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.185e-05/0.3381, allocations: 11.66 kB / 218.3 MB, free: 2.344 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003007/0.3411, allocations: 1.052 MB / 219.4 MB, free: 1.781 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008458/0.342, allocations: 313.9 kB / 219.7 MB, free: 1.738 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004949/0.3425, allocations: 224.3 kB / 219.9 MB, free: 1.715 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.927e-05/0.3426, allocations: 7.094 kB / 219.9 MB, free: 1.715 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.23e-05/0.3426, allocations: 41.5 kB / 220 MB, free: 1.672 MB / 170.7 MB Notification: Performance of pre-optimization done (n=45): time 3.687e-06/0.3426, allocations: 0 / 220 MB, free: 1.672 MB / 170.7 MB Notification: Performance of matching and sorting (n=51): time 0.004315/0.347, allocations: 1.528 MB / 221.5 MB, free: 0.957 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.833e-05/0.347, allocations: 55.72 kB / 221.5 MB, free: 0.8945 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002821/0.3473, allocations: 212.6 kB / 221.8 MB, free: 0.7734 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 6.672e-05/0.3474, allocations: 37.3 kB / 221.8 MB, free: 0.7422 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001175/0.3475, allocations: 243.9 kB / 222 MB, free: 0.5391 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001567/0.3477, allocations: 168.4 kB / 222.2 MB, free: 424 kB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.794e-05/0.3478, allocations: 3.938 kB / 222.2 MB, free: 424 kB / 170.7 MB Notification: Performance of setup shared object (initialization): time 7.303e-05/0.3478, allocations: 325.5 kB / 222.5 MB, free: 100 kB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004493/0.3483, allocations: 200.7 kB / 222.7 MB, free: 92 kB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004911/0.3488, allocations: 245.9 kB / 222.9 MB, free: 52 kB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005561/0.3494, allocations: 167.6 kB / 223.1 MB, free: 24 kB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.3494, allocations: 4 kB / 223.1 MB, free: 20 kB / 170.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002033/0.3514, allocations: 0.6444 MB / 223.8 MB, free: 15.88 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.513e-05/0.3515, allocations: 3.719 kB / 223.8 MB, free: 15.88 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.31e-05/0.3515, allocations: 0 / 223.8 MB, free: 15.88 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001347/0.3529, allocations: 0.5113 MB / 224.3 MB, free: 15.74 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006797/0.3536, allocations: 83.95 kB / 224.4 MB, free: 15.72 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002042/0.3556, allocations: 1.458 MB / 225.8 MB, free: 14.61 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009228/0.3566, allocations: 89.69 kB / 225.9 MB, free: 14.59 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.541e-05/0.3567, allocations: 22.95 kB / 225.9 MB, free: 14.58 MB / 186.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 50 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 8,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002753/0.357, allocations: 116 kB / 226 MB, free: 14.47 MB / 186.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001756/0.3588, allocations: 0.556 MB / 226.6 MB, free: 14.32 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001119/0.3589, allocations: 34.62 kB / 226.6 MB, free: 14.31 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001601/0.3591, allocations: 49.47 kB / 226.7 MB, free: 14.29 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/0.3591, allocations: 11.5 kB / 226.7 MB, free: 14.29 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.3591, allocations: 0 / 226.7 MB, free: 14.29 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.12e-05/0.3591, allocations: 3.984 kB / 226.7 MB, free: 14.29 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003475/0.3626, allocations: 1.256 MB / 227.9 MB, free: 13.7 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.602e-06/0.3627, allocations: 0 / 227.9 MB, free: 13.7 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006575/0.3633, allocations: 81.05 kB / 228 MB, free: 13.68 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001218/0.3646, allocations: 0.4942 MB / 228.5 MB, free: 13.54 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.66e-05/0.3647, allocations: 11.39 kB / 228.5 MB, free: 13.54 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001838/0.3665, allocations: 1.407 MB / 229.9 MB, free: 12.42 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.188e-06/0.3666, allocations: 7.719 kB / 229.9 MB, free: 12.42 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002402/0.369, allocations: 0.9994 MB / 230.9 MB, free: 12.02 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003397/0.3694, allocations: 151.8 kB / 231.1 MB, free: 11.89 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001243/0.3695, allocations: 17.77 kB / 231.1 MB, free: 11.89 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007185/0.3702, allocations: 69.58 kB / 231.2 MB, free: 11.86 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003426/0.3706, allocations: 115.4 kB / 231.3 MB, free: 11.8 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.203e-05/0.3707, allocations: 22.67 kB / 231.3 MB, free: 11.79 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0002178/0.3709, allocations: 170.8 kB / 231.5 MB, free: 11.7 MB / 186.7 MB Notification: Performance of sort global known variables: time 4.9e-07/0.3709, allocations: 0 / 231.5 MB, free: 11.7 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0006343/0.3716, allocations: 108.2 kB / 231.6 MB, free: 11.69 MB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 36 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002906/0.3745, allocations: 1.875 MB / 233.5 MB, free: 10.44 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.001313/0.3759, allocations: 492.5 kB / 233.9 MB, free: 10.4 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.3759, allocations: 0 / 233.9 MB, free: 10.4 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007378/0.3766, allocations: 280.9 kB / 234.2 MB, free: 10.37 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007383/0.3774, allocations: 52.86 kB / 234.3 MB, free: 10.35 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006169/0.3836, allocations: 1.388 MB / 235.7 MB, free: 9.535 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004885/0.3841, allocations: 0.822 MB / 236.5 MB, free: 8.777 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002825/0.3844, allocations: 119.5 kB / 236.6 MB, free: 8.758 MB / 186.7 MB Notification: Performance of SimCode: time 1.052e-06/0.3844, allocations: 0 / 236.6 MB, free: 8.758 MB / 186.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.366/3.75, allocations: 8.935 MB / 245.5 MB, free: 28 kB / 186.7 MB