Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.TestSpeed.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) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.TestSpeed") Notification: Performance of loadModel(ModelicaTest): time 2.025/2.025, allocations: 209.2 MB / 225.4 MB, free: 0.5312 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007224/0.0007224, allocations: 12 kB / 283.1 MB, free: 9.688 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3413/0.3421, allocations: 48.69 MB / 331.8 MB, free: 6.496 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.135/0.4771, allocations: 76.24 MB / 408 MB, free: 2.199 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000257/0.4774, allocations: 79.95 kB / 408.1 MB, free: 2.121 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02169/0.4991, allocations: 4.691 MB / 412.8 MB, free: 13.41 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.064e-06/0.4992, allocations: 0 / 412.8 MB, free: 13.41 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.922e-05/0.4992, allocations: 11.98 kB / 412.8 MB, free: 13.4 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001138/0.5004, allocations: 0.5445 MB / 413.4 MB, free: 12.81 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.5004, allocations: 12.03 kB / 413.4 MB, free: 12.8 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.48e-05/0.5005, allocations: 31.62 kB / 413.4 MB, free: 12.77 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004097/0.501, allocations: 262.4 kB / 413.7 MB, free: 12.47 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.799e-05/0.501, allocations: 16.56 kB / 413.7 MB, free: 12.46 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.918e-05/0.5011, allocations: 31.91 kB / 413.7 MB, free: 12.43 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007593/0.5019, allocations: 285.9 kB / 414 MB, free: 12.12 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.079e-05/0.5019, allocations: 7.891 kB / 414 MB, free: 12.11 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.621e-05/0.502, allocations: 12 kB / 414 MB, free: 12.1 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.096e-05/0.502, allocations: 4 kB / 414 MB, free: 12.1 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007633/0.5027, allocations: 211.7 kB / 414.2 MB, free: 11.89 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002374/0.5051, allocations: 1.306 MB / 415.5 MB, free: 10.48 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000696/0.5059, allocations: 250.5 kB / 415.8 MB, free: 10.2 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.926e-05/0.5059, allocations: 8 kB / 415.8 MB, free: 10.19 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.334e-05/0.506, allocations: 49 kB / 415.8 MB, free: 10.13 MB / 346.7 MB Notification: Performance of pre-optimization done (n=26): time 2.755e-06/0.506, allocations: 0 / 415.8 MB, free: 10.13 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.004259/0.5103, allocations: 1.627 MB / 417.4 MB, free: 8.297 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.04e-05/0.5104, allocations: 136.5 kB / 417.6 MB, free: 8.133 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003318/0.5107, allocations: 228.9 kB / 417.8 MB, free: 7.902 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.091e-05/0.5108, allocations: 33.7 kB / 417.8 MB, free: 7.863 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001493/0.511, allocations: 230.7 kB / 418.1 MB, free: 7.637 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001295/0.5111, allocations: 115.6 kB / 418.2 MB, free: 7.523 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.281e-05/0.5111, allocations: 4 kB / 418.2 MB, free: 7.52 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001325/0.5113, allocations: 330.8 kB / 418.5 MB, free: 7.188 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004723/0.5118, allocations: 112.8 kB / 418.6 MB, free: 7.078 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005745/0.5123, allocations: 249.4 kB / 418.9 MB, free: 6.773 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005758/0.5129, allocations: 148.5 kB / 419 MB, free: 6.629 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.513, allocations: 0 / 419 MB, free: 6.629 MB / 346.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.001327/0.5143, allocations: 400.8 kB / 419.4 MB, free: 6.23 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.59e-05/0.5143, allocations: 8.406 kB / 419.4 MB, free: 6.223 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.518e-05/0.5144, allocations: 8 kB / 419.4 MB, free: 6.215 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.574e-05/0.5144, allocations: 8 kB / 419.4 MB, free: 6.207 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007254/0.5151, allocations: 103.9 kB / 419.5 MB, free: 6.105 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.091e-05/0.5152, allocations: 15.92 kB / 419.5 MB, free: 6.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000404/0.5156, allocations: 39.92 kB / 419.6 MB, free: 6.051 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.783e-05/0.5156, allocations: 12 kB / 419.6 MB, free: 6.039 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (48): * Single equations (assignments): 48 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002585/0.5159, allocations: 157.7 kB / 419.7 MB, free: 5.875 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001375/0.5161, allocations: 35.56 kB / 419.8 MB, free: 5.84 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.531e-05/0.5162, allocations: 29.7 kB / 419.8 MB, free: 5.816 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.696e-06/0.5162, allocations: 4 kB / 419.8 MB, free: 5.812 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.043e-05/0.5162, allocations: 4 kB / 419.8 MB, free: 5.809 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.066e-05/0.5162, allocations: 3.984 kB / 419.8 MB, free: 5.805 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002373/0.5186, allocations: 1.013 MB / 420.8 MB, free: 4.727 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/0.5186, allocations: 0 / 420.8 MB, free: 4.727 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007612/0.5194, allocations: 83.88 kB / 420.9 MB, free: 4.645 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.224e-05/0.5194, allocations: 4 kB / 420.9 MB, free: 4.641 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.614e-05/0.5195, allocations: 8.062 kB / 420.9 MB, free: 4.633 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-05/0.5195, allocations: 7.953 kB / 420.9 MB, free: 4.625 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.5195, allocations: 7.938 kB / 420.9 MB, free: 4.617 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001777/0.5213, allocations: 0.7648 MB / 421.7 MB, free: 3.828 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001871/0.5215, allocations: 116.9 kB / 421.8 MB, free: 3.695 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.959e-05/0.5216, allocations: 12.06 kB / 421.8 MB, free: 3.684 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004585/0.5221, allocations: 31.98 kB / 421.9 MB, free: 3.652 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001041/0.5222, allocations: 27.91 kB / 421.9 MB, free: 3.625 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.857e-05/0.5222, allocations: 8 kB / 421.9 MB, free: 3.617 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002284/0.5225, allocations: 160.5 kB / 422 MB, free: 3.461 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5225, allocations: 0 / 422 MB, free: 3.461 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006775/0.5232, allocations: 68 kB / 422.1 MB, free: 3.395 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.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 (32): * Single equations (assignments): 32 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001618/0.5234, allocations: 115.1 kB / 422.2 MB, free: 3.27 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001144/0.5245, allocations: 295.8 kB / 422.5 MB, free: 2.98 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.5245, allocations: 0.625 kB / 422.5 MB, free: 2.98 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000542/0.5251, allocations: 143.8 kB / 422.7 MB, free: 2.84 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006259/0.5257, allocations: 36.39 kB / 422.7 MB, free: 2.805 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002287/0.528, allocations: 1.107 MB / 423.8 MB, free: 1.648 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004358/0.5285, allocations: 0.7799 MB / 424.6 MB, free: 0.8359 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001709/0.5287, allocations: 35.42 kB / 424.6 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of SimCode: time 1.102e-06/0.5287, allocations: 0 / 424.6 MB, free: 0.8008 MB / 346.7 MB Notification: Performance of Templates: time 0.008423/0.5371, allocations: 3.216 MB / 427.8 MB, free: 13.59 MB / 362.7 MB