Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.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.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directInertia.inertia.phi|directInertia.inertia.w|inertia2a.phi|inertia2a.w|inertia2b.phi|inertia2b.w|inertia3a.phi|inertia3a.w|inertia3b.phi|inertia3b.w",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs") Notification: Performance of loadModel(Modelica): time 2.19/2.19, allocations: 194.8 MB / 211.7 MB, free: 2.879 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003559/0.0003562, allocations: 8 kB / 264.5 MB, free: 12.92 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09876/0.09915, allocations: 44.5 MB / 309 MB, free: 356 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4847/0.5839, allocations: 76.72 MB / 385.8 MB, free: 15.39 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002701/0.5843, allocations: 80 kB / 385.8 MB, free: 15.39 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04513/0.6294, allocations: 11.86 MB / 397.7 MB, free: 14.33 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.086e-06/0.6295, allocations: 3.938 kB / 397.7 MB, free: 14.32 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.516e-05/0.6295, allocations: 23.31 kB / 397.7 MB, free: 14.32 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: 216 * Number of variables: 216 Notification: Performance of Generate backend data structure: time 0.002032/0.6316, allocations: 0.9124 MB / 398.6 MB, free: 13.73 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.6316, allocations: 15.75 kB / 398.7 MB, free: 13.73 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002215/0.6319, allocations: 89.47 kB / 398.7 MB, free: 13.68 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009861/0.6329, allocations: 0.5045 MB / 399.3 MB, free: 13.4 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.485e-05/0.633, allocations: 63.81 kB / 399.3 MB, free: 13.4 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001717/0.6331, allocations: 85.84 kB / 399.4 MB, free: 13.39 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002235/0.6354, allocations: 0.8267 MB / 400.2 MB, free: 13.23 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.399e-05/0.6355, allocations: 12.28 kB / 400.2 MB, free: 13.22 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.744e-05/0.6356, allocations: 35.62 kB / 400.3 MB, free: 13.22 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.318e-05/0.6356, allocations: 23.36 kB / 400.3 MB, free: 13.22 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001691/0.6373, allocations: 0.5258 MB / 400.8 MB, free: 13.12 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00484/0.6422, allocations: 3.066 MB / 403.9 MB, free: 11.07 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009671/0.6432, allocations: 305.1 kB / 404.2 MB, free: 10.95 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002121/0.6434, allocations: 243.1 kB / 404.4 MB, free: 10.67 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.66e-05/0.6435, allocations: 42.38 kB / 404.5 MB, free: 10.62 MB / 314.7 MB Notification: Performance of pre-optimization done (n=32): time 3.888e-06/0.6435, allocations: 0 / 404.5 MB, free: 10.62 MB / 314.7 MB Notification: Performance of matching and sorting (n=37): time 0.003712/0.6472, allocations: 1.586 MB / 406.1 MB, free: 9.57 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.447e-05/0.6473, allocations: 106.8 kB / 406.2 MB, free: 9.445 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000445/0.6478, allocations: 328.7 kB / 406.5 MB, free: 9.285 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.347e-05/0.6478, allocations: 32.92 kB / 406.5 MB, free: 9.254 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002099/0.648, allocations: 413.8 kB / 406.9 MB, free: 8.957 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001107/0.6482, allocations: 135 kB / 407 MB, free: 8.863 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.761e-05/0.6482, allocations: 10.12 kB / 407.1 MB, free: 8.863 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.918e-05/0.6483, allocations: 357.9 kB / 407.4 MB, free: 8.531 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004127/0.6487, allocations: 126.2 kB / 407.5 MB, free: 8.512 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004634/0.6492, allocations: 276.6 kB / 407.8 MB, free: 8.301 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004748/0.6497, allocations: 166.9 kB / 408 MB, free: 8.281 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.82e-06/0.6497, allocations: 3.875 kB / 408 MB, free: 8.281 MB / 314.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001297/0.651, allocations: 0.5049 MB / 408.5 MB, free: 8.133 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.424e-05/0.6511, allocations: 7.75 kB / 408.5 MB, free: 8.133 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.285e-05/0.6511, allocations: 3.953 kB / 408.5 MB, free: 8.133 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002618/0.6514, allocations: 35.19 kB / 408.5 MB, free: 8.121 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007143/0.6521, allocations: 124.5 kB / 408.6 MB, free: 8.098 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003688/0.6525, allocations: 0.562 MB / 409.2 MB, free: 7.559 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004324/0.6529, allocations: 34.02 kB / 409.2 MB, free: 7.547 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.439e-05/0.653, allocations: 23.19 kB / 409.3 MB, free: 7.547 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * 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 (62): * Single equations (assignments): 61 * 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 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.000479/0.6535, allocations: 224.9 kB / 409.5 MB, free: 7.418 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001298/0.6536, allocations: 42.78 kB / 409.5 MB, free: 7.395 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008976/0.6545, allocations: 313.3 kB / 409.8 MB, free: 7.293 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.317e-06/0.6546, allocations: 3.75 kB / 409.8 MB, free: 7.293 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.406e-06/0.6546, allocations: 3.938 kB / 409.8 MB, free: 7.289 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/0.6546, allocations: 8 kB / 409.8 MB, free: 7.281 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002193/0.6568, allocations: 1.108 MB / 410.9 MB, free: 6.664 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.202e-06/0.6568, allocations: 0 / 410.9 MB, free: 6.664 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007697/0.6576, allocations: 89.73 kB / 411 MB, free: 6.648 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000195/0.6578, allocations: 31.78 kB / 411.1 MB, free: 6.637 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.773e-05/0.6579, allocations: 15.22 kB / 411.1 MB, free: 6.633 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003148/0.6582, allocations: 0.5546 MB / 411.6 MB, free: 6.098 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.6582, allocations: 0 / 411.6 MB, free: 6.098 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001357/0.6596, allocations: 0.7611 MB / 412.4 MB, free: 5.672 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001043/0.6597, allocations: 116.2 kB / 412.5 MB, free: 5.551 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.278e-05/0.6598, allocations: 14.97 kB / 412.5 MB, free: 5.551 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003842/0.6602, allocations: 14.86 kB / 412.5 MB, free: 5.547 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.501e-05/0.6603, allocations: 35.55 kB / 412.6 MB, free: 5.527 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.739e-05/0.6604, allocations: 15.16 kB / 412.6 MB, free: 5.527 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003242/0.6607, allocations: 221.5 kB / 412.8 MB, free: 5.418 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.6607, allocations: 0 / 412.8 MB, free: 5.418 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008412/0.6616, allocations: 131.5 kB / 412.9 MB, free: 5.41 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w,inertia2a.w,torqueToAngle2a.phi,inertia2b.phi,inertia2b.w,directInertia.inertia.w,directInertia.torqueToAngle.phi) * 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 (35): * Single equations (assignments): 34 * 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 {1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002157/0.6618, allocations: 128.9 kB / 413.1 MB, free: 5.309 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001134/0.6629, allocations: 354.4 kB / 413.4 MB, free: 5.242 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.663, allocations: 0 / 413.4 MB, free: 5.242 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005057/0.6635, allocations: 166.8 kB / 413.6 MB, free: 5.211 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007054/0.6642, allocations: 65.31 kB / 413.6 MB, free: 5.191 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003828/0.668, allocations: 2.066 MB / 415.7 MB, free: 3.664 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005325/0.6686, allocations: 0.9477 MB / 416.6 MB, free: 2.852 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0003704/0.669, allocations: 50.5 kB / 416.7 MB, free: 2.82 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001198/0.6691, allocations: 30.88 kB / 416.7 MB, free: 2.812 MB / 314.7 MB Notification: Performance of SimCode: time 1.152e-06/0.6692, allocations: 0 / 416.7 MB, free: 2.812 MB / 314.7 MB Notification: Performance of Templates: time 0.01315/0.6823, allocations: 3.623 MB / 420.3 MB, free: 1.039 MB / 314.7 MB