Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.Friction.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.892/1.892, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005534/0.0005535, allocations: 15.98 kB / 233.3 MB, free: 2.934 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1021, allocations: 38.76 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3747/0.4768, allocations: 70.79 MB / 342.9 MB, free: 3.078 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003004/0.4772, allocations: 69.97 kB / 343 MB, free: 3.043 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03561/0.5128, allocations: 7.479 MB / 350.4 MB, free: 12.62 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.5129, allocations: 0 / 350.4 MB, free: 12.62 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.81e-05/0.5129, allocations: 8 kB / 350.4 MB, free: 12.61 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.002146/0.5151, allocations: 0.7366 MB / 351.2 MB, free: 11.85 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.982e-05/0.5152, allocations: 8.031 kB / 351.2 MB, free: 11.84 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002046/0.5154, allocations: 89.11 kB / 351.3 MB, free: 11.77 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001623/0.5155, allocations: 55.34 kB / 351.3 MB, free: 11.72 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005768/0.5161, allocations: 315.3 kB / 351.6 MB, free: 11.39 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.882e-05/0.5162, allocations: 35.94 kB / 351.7 MB, free: 11.37 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001291/0.5163, allocations: 38.78 kB / 351.7 MB, free: 11.34 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00143/0.5178, allocations: 488.4 kB / 352.2 MB, free: 11 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.191e-05/0.5178, allocations: 3.984 kB / 352.2 MB, free: 11 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.182e-05/0.5179, allocations: 17.62 kB / 352.2 MB, free: 10.99 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.482e-05/0.5179, allocations: 8 kB / 352.2 MB, free: 10.98 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001626/0.5196, allocations: 492.8 kB / 352.7 MB, free: 10.64 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003502/0.5231, allocations: 1.184 MB / 353.9 MB, free: 9.637 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001303/0.5245, allocations: 392.7 kB / 354.3 MB, free: 9.371 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.012e-05/0.5245, allocations: 8.438 kB / 354.3 MB, free: 9.363 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.225e-05/0.5246, allocations: 42.52 kB / 354.3 MB, free: 9.316 MB / 282.7 MB Notification: Performance of pre-optimization done (n=50): time 3.437e-06/0.5246, allocations: 3.938 kB / 354.3 MB, free: 9.312 MB / 282.7 MB Notification: Performance of matching and sorting (n=56): time 0.008911/0.5335, allocations: 2.487 MB / 356.8 MB, free: 7.164 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.741e-05/0.5336, allocations: 55.97 kB / 356.9 MB, free: 7.098 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004267/0.5341, allocations: 249 kB / 357.1 MB, free: 6.891 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001213/0.5342, allocations: 39.2 kB / 357.1 MB, free: 6.855 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001688/0.5344, allocations: 245.4 kB / 357.4 MB, free: 6.641 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002464/0.5346, allocations: 192.7 kB / 357.6 MB, free: 6.48 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.69e-05/0.5347, allocations: 11.25 kB / 357.6 MB, free: 6.477 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.5349, allocations: 335.2 kB / 357.9 MB, free: 6.152 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008444/0.5357, allocations: 242.6 kB / 358.1 MB, free: 5.992 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008966/0.5366, allocations: 296.5 kB / 358.4 MB, free: 5.789 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007218/0.5374, allocations: 207.2 kB / 358.6 MB, free: 5.66 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.5374, allocations: 0 / 358.6 MB, free: 5.66 MB / 282.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00319/0.5406, allocations: 0.8855 MB / 359.5 MB, free: 4.973 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.021e-05/0.5406, allocations: 8 kB / 359.5 MB, free: 4.965 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.5407, allocations: 0 / 359.5 MB, free: 4.965 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001522/0.5422, allocations: 0.5253 MB / 360.1 MB, free: 4.531 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000724/0.5429, allocations: 94.89 kB / 360.1 MB, free: 4.441 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001968/0.5449, allocations: 1.381 MB / 361.5 MB, free: 3.141 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001008/0.546, allocations: 107 kB / 361.6 MB, free: 3.047 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001007/0.5461, allocations: 23.86 kB / 361.7 MB, free: 3.027 MB / 282.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: 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 56 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.0003644/0.5465, allocations: 168 kB / 361.8 MB, free: 2.883 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001276/0.5466, allocations: 39.53 kB / 361.9 MB, free: 2.844 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001588/0.5468, allocations: 61.05 kB / 361.9 MB, free: 2.82 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.434e-05/0.5468, allocations: 7.953 kB / 361.9 MB, free: 2.812 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/0.5468, allocations: 0 / 361.9 MB, free: 2.812 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.227e-05/0.5468, allocations: 3.984 kB / 361.9 MB, free: 2.809 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004932/0.5518, allocations: 1.587 MB / 363.5 MB, free: 1.473 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.199e-05/0.5518, allocations: 12.03 kB / 363.5 MB, free: 1.461 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000753/0.5526, allocations: 83.89 kB / 363.6 MB, free: 1.379 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001411/0.554, allocations: 0.5013 MB / 364.1 MB, free: 0.9609 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.823e-05/0.5541, allocations: 15.8 kB / 364.1 MB, free: 0.9531 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001982/0.5561, allocations: 1.369 MB / 365.5 MB, free: 15.65 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.933e-06/0.5562, allocations: 3.938 kB / 365.5 MB, free: 15.64 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003955/0.5601, allocations: 1.257 MB / 366.8 MB, free: 14.61 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003728/0.5606, allocations: 174.4 kB / 366.9 MB, free: 14.44 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001359/0.5607, allocations: 21.88 kB / 366.9 MB, free: 14.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007852/0.5615, allocations: 78.42 kB / 367 MB, free: 14.36 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003556/0.5619, allocations: 117.6 kB / 367.1 MB, free: 14.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.493e-05/0.562, allocations: 26.67 kB / 367.2 MB, free: 14.23 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003062/0.5623, allocations: 203.8 kB / 367.4 MB, free: 14.07 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5623, allocations: 0 / 367.4 MB, free: 14.07 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007162/0.563, allocations: 130.1 kB / 367.5 MB, free: 13.96 MB / 298.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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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.004571/0.5676, allocations: 2.215 MB / 369.7 MB, free: 11.98 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002083/0.5698, allocations: 0.5834 MB / 370.3 MB, free: 11.55 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.993e-06/0.5698, allocations: 0 / 370.3 MB, free: 11.55 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001158/0.571, allocations: 342 kB / 370.6 MB, free: 11.31 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008055/0.5718, allocations: 65.45 kB / 370.7 MB, free: 11.27 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01275/0.5846, allocations: 3.963 MB / 374.7 MB, free: 7.754 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005083/0.5851, allocations: 0.8365 MB / 375.5 MB, free: 6.891 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003512/0.5855, allocations: 134 kB / 375.6 MB, free: 6.844 MB / 298.7 MB Notification: Performance of SimCode: time 1.743e-06/0.5855, allocations: 0 / 375.6 MB, free: 6.844 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.96/3.546, allocations: 9.651 MB / 385.3 MB, free: 13.25 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat