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.LossyGearDemo1.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_3_1_cpp_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.192/1.192, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003748/0.0003749, allocations: 4 kB / 158.3 MB, free: 15.14 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06334/0.06375, allocations: 25.18 MB / 183.5 MB, free: 5.914 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.002709/0.06652, allocations: 1.566 MB / 185.1 MB, free: 4.344 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.001612/0.06816, allocations: 0.6677 MB / 185.8 MB, free: 3.672 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001271/0.06832, allocations: 7.938 kB / 185.8 MB, free: 3.664 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001903/0.06852, allocations: 27.83 kB / 185.8 MB, free: 3.637 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000226/0.06876, allocations: 75.78 kB / 185.9 MB, free: 3.562 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007215/0.0695, allocations: 127.7 kB / 186 MB, free: 3.438 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004558/0.06997, allocations: 215.6 kB / 186.2 MB, free: 3.227 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002184/0.0702, allocations: 69.41 kB / 186.3 MB, free: 3.16 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002817/0.0705, allocations: 127.5 kB / 186.4 MB, free: 3.035 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002937/0.07081, allocations: 147.5 kB / 186.5 MB, free: 2.891 MB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 5.778e-05/0.07088, allocations: 16 kB / 186.5 MB, free: 2.875 MB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002587/0.07115, allocations: 79.81 kB / 186.6 MB, free: 2.797 MB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001094/0.07128, allocations: 59.8 kB / 186.7 MB, free: 2.738 MB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 9.56e-05/0.07139, allocations: 65.58 kB / 186.7 MB, free: 2.668 MB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004601/0.07186, allocations: 267.3 kB / 187 MB, free: 2.406 MB / 154.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.07188, allocations: 0 / 187 MB, free: 2.406 MB / 154.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.07189, allocations: 0 / 187 MB, free: 2.406 MB / 154.7 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.07191, allocations: 4 kB / 187 MB, free: 2.402 MB / 154.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001402/0.07332, allocations: 0.5458 MB / 187.6 MB, free: 1.809 MB / 154.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/0.07338, allocations: 11.97 kB / 187.6 MB, free: 1.797 MB / 154.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001077/0.0735, allocations: 66.47 kB / 187.6 MB, free: 1.723 MB / 154.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.177e-05/0.0736, allocations: 31.62 kB / 187.7 MB, free: 1.691 MB / 154.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000399/0.07401, allocations: 246.6 kB / 187.9 MB, free: 1.41 MB / 154.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.335e-05/0.07407, allocations: 16.56 kB / 187.9 MB, free: 1.395 MB / 154.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.191e-05/0.07416, allocations: 27.91 kB / 187.9 MB, free: 1.367 MB / 154.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001006/0.07518, allocations: 343.5 kB / 188.3 MB, free: 1.016 MB / 154.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.62e-05/0.07523, allocations: 4 kB / 188.3 MB, free: 1.012 MB / 154.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.575e-05/0.07528, allocations: 8 kB / 188.3 MB, free: 1.004 MB / 154.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.583e-05/0.07535, allocations: 16 kB / 188.3 MB, free: 0.9883 MB / 154.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001052/0.07641, allocations: 286.1 kB / 188.6 MB, free: 0.7109 MB / 154.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002566/0.07903, allocations: 0.8752 MB / 189.5 MB, free: 15.77 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001121/0.0802, allocations: 354.4 kB / 189.8 MB, free: 15.42 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.791e-05/0.08028, allocations: 4 kB / 189.8 MB, free: 15.41 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.117e-05/0.08033, allocations: 35.16 kB / 189.9 MB, free: 15.37 MB / 170.7 MB Notification: Performance of pre-optimization done (n=36): time 3.546e-06/0.08035, allocations: 0 / 189.9 MB, free: 15.37 MB / 170.7 MB Notification: Performance of matching and sorting (n=42): time 0.00666/0.08702, allocations: 1.843 MB / 191.7 MB, free: 13.41 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.812e-05/0.08715, allocations: 84.89 kB / 191.8 MB, free: 13.31 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003521/0.08752, allocations: 219.4 kB / 192 MB, free: 13.09 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 5.58e-05/0.08759, allocations: 33.7 kB / 192 MB, free: 13.05 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001534/0.08775, allocations: 195.2 kB / 192.2 MB, free: 12.86 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001847/0.08795, allocations: 138.1 kB / 192.3 MB, free: 12.72 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.218e-05/0.088, allocations: 4 kB / 192.4 MB, free: 12.71 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.08815, allocations: 330.8 kB / 192.7 MB, free: 12.38 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006279/0.08879, allocations: 172.7 kB / 192.8 MB, free: 12.21 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006488/0.08946, allocations: 215.7 kB / 193.1 MB, free: 11.99 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006026/0.09008, allocations: 168 kB / 193.2 MB, free: 11.83 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.09009, allocations: 0 / 193.2 MB, free: 11.83 MB / 170.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001671/0.09178, allocations: 0.5291 MB / 193.7 MB, free: 11.29 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.505e-05/0.09182, allocations: 4 kB / 193.8 MB, free: 11.29 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.09184, allocations: 0 / 193.8 MB, free: 11.29 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007959/0.09265, allocations: 158.6 kB / 193.9 MB, free: 11.13 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005011/0.09316, allocations: 63.95 kB / 194 MB, free: 11.07 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004815/0.098, allocations: 2.334 MB / 196.3 MB, free: 8.602 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004479/0.0985, allocations: 31.97 kB / 196.3 MB, free: 8.57 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.624e-05/0.09858, allocations: 19.98 kB / 196.4 MB, free: 8.551 MB / 170.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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: 0 * Non-linear torn systems: 1 {2 16} Notification: Performance of prepare postOptimizeDAE: time 0.0002835/0.09888, allocations: 149.8 kB / 196.5 MB, free: 8.395 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.924e-05/0.09898, allocations: 31.67 kB / 196.5 MB, free: 8.363 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001213/0.09911, allocations: 42.98 kB / 196.6 MB, free: 8.32 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.765e-06/0.09913, allocations: 4 kB / 196.6 MB, free: 8.316 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.09914, allocations: 0 / 196.6 MB, free: 8.316 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.352e-06/0.09916, allocations: 0 / 196.6 MB, free: 8.316 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002928/0.1021, allocations: 1.094 MB / 197.7 MB, free: 7.16 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.61e-06/0.1021, allocations: 3.938 kB / 197.7 MB, free: 7.156 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005305/0.1027, allocations: 63.91 kB / 197.7 MB, free: 7.094 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006976/0.1034, allocations: 152.7 kB / 197.9 MB, free: 6.941 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.354e-05/0.1035, allocations: 8 kB / 197.9 MB, free: 6.934 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004463/0.1079, allocations: 2.237 MB / 200.1 MB, free: 4.562 MB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.108, allocations: 4.062 kB / 200.1 MB, free: 4.559 MB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002488/0.1105, allocations: 0.8177 MB / 201 MB, free: 3.719 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002399/0.1108, allocations: 128.8 kB / 201.1 MB, free: 3.574 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.997e-05/0.1109, allocations: 12 kB / 201.1 MB, free: 3.562 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004156/0.1113, allocations: 39.98 kB / 201.1 MB, free: 3.523 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002608/0.1116, allocations: 63.88 kB / 201.2 MB, free: 3.461 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.391e-05/0.1117, allocations: 19.98 kB / 201.2 MB, free: 3.441 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0002149/0.1119, allocations: 148.5 kB / 201.4 MB, free: 3.297 MB / 170.7 MB Notification: Performance of sort global known variables: time 4.5e-07/0.1119, allocations: 3.938 kB / 201.4 MB, free: 3.293 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0007381/0.1126, allocations: 116 kB / 201.5 MB, free: 3.18 MB / 170.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 26 * 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: 0 * Non-linear torn systems: 1 {2 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.003193/0.1159, allocations: 1.428 MB / 202.9 MB, free: 1.719 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.002798/0.1187, allocations: 0.5903 MB / 203.5 MB, free: 1.113 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/0.1188, allocations: 4 kB / 203.5 MB, free: 1.109 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001819/0.1206, allocations: 403.2 kB / 203.9 MB, free: 0.6992 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006499/0.1213, allocations: 36 kB / 203.9 MB, free: 0.6641 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1472/0.2685, allocations: 2.105 MB / 206 MB, free: 23.61 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003191/0.2689, allocations: 0.7822 MB / 206.8 MB, free: 22.91 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002642/0.2692, allocations: 90.86 kB / 206.9 MB, free: 22.91 MB / 170.7 MB Notification: Performance of SimCode: time 1.102e-06/0.2692, allocations: 0 / 206.9 MB, free: 22.91 MB / 170.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.124/3.393, allocations: 5.769 MB / 212.7 MB, free: 21.29 MB / 170.7 MB