Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 1.906/1.906, allocations: 209.4 MB / 217.3 MB, free: 4.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.025e-05/1.032e-05, allocations: 0 / 271.3 MB, free: 14.14 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2582/0.2583, allocations: 48.69 MB / 320 MB, free: 14.39 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1121/0.3704, allocations: 75.49 MB / 395.5 MB, free: 4.949 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002015/0.3706, allocations: 63.97 kB / 395.6 MB, free: 4.887 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02002/0.3907, allocations: 4.674 MB / 400.2 MB, free: 200 kB / 330.7 MB Notification: Performance of FrontEnd: time 1.986e-06/0.3907, allocations: 0 / 400.2 MB, free: 200 kB / 330.7 MB Notification: Performance of Transformations before backend: time 2.213e-05/0.3908, allocations: 8 kB / 400.2 MB, free: 192 kB / 330.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.0008699/0.3916, allocations: 0.5094 MB / 400.7 MB, free: 15.64 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.979e-05/0.3917, allocations: 12.03 kB / 400.8 MB, free: 15.62 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.431e-05/0.3918, allocations: 31.62 kB / 400.8 MB, free: 15.59 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000382/0.3922, allocations: 258.5 kB / 401 MB, free: 15.3 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.261e-05/0.3922, allocations: 11.98 kB / 401.1 MB, free: 15.29 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.237e-05/0.3923, allocations: 12 kB / 401.1 MB, free: 15.28 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003618/0.3927, allocations: 125.1 kB / 401.2 MB, free: 15.16 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004558/0.3931, allocations: 220.9 kB / 401.4 MB, free: 14.91 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.011e-05/0.3932, allocations: 7.906 kB / 401.4 MB, free: 14.91 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.465e-05/0.3932, allocations: 0 / 401.4 MB, free: 14.91 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.201e-05/0.3932, allocations: 8 kB / 401.4 MB, free: 14.9 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002081/0.3953, allocations: 1.26 MB / 402.7 MB, free: 13.54 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004072/0.3958, allocations: 206.4 kB / 402.9 MB, free: 13.3 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001627/0.3959, allocations: 71.42 kB / 402.9 MB, free: 13.22 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.864e-05/0.396, allocations: 4.875 kB / 403 MB, free: 13.22 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.849e-05/0.396, allocations: 38.69 kB / 403 MB, free: 13.17 MB / 346.7 MB Notification: Performance of pre-optimization done (n=26): time 3.128e-06/0.396, allocations: 4 kB / 403 MB, free: 13.17 MB / 346.7 MB Notification: Performance of matching and sorting (n=32): time 0.002522/0.3986, allocations: 1.347 MB / 404.3 MB, free: 11.61 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.559e-05/0.3987, allocations: 136.5 kB / 404.5 MB, free: 11.45 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002587/0.399, allocations: 196.4 kB / 404.7 MB, free: 11.25 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.333e-05/0.399, allocations: 25.7 kB / 404.7 MB, free: 11.22 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001615/0.3992, allocations: 227 kB / 404.9 MB, free: 11 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001174/0.3993, allocations: 118.3 kB / 405 MB, free: 10.88 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.727e-05/0.3993, allocations: 0 / 405 MB, free: 10.88 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001705/0.3995, allocations: 330.8 kB / 405.4 MB, free: 10.55 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001862/0.3997, allocations: 64.86 kB / 405.4 MB, free: 10.48 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002957/0.4, allocations: 188.7 kB / 405.6 MB, free: 10.24 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002365/0.4003, allocations: 95.83 kB / 405.7 MB, free: 10.14 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.201e-06/0.4003, allocations: 4 kB / 405.7 MB, free: 10.14 MB / 346.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0006867/0.401, allocations: 277.4 kB / 406 MB, free: 9.863 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.708e-05/0.401, allocations: 14.33 kB / 406 MB, free: 9.852 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.192e-05/0.4011, allocations: 4 kB / 406 MB, free: 9.848 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.432e-05/0.4011, allocations: 8 kB / 406 MB, free: 9.84 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005312/0.4016, allocations: 107.8 kB / 406.1 MB, free: 9.734 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.588e-05/0.4017, allocations: 15.88 kB / 406.1 MB, free: 9.719 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003302/0.402, allocations: 28.05 kB / 406.1 MB, free: 9.691 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.064e-05/0.4021, allocations: 12.12 kB / 406.2 MB, free: 9.68 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 () * 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.000135/0.4022, allocations: 120.8 kB / 406.3 MB, free: 9.555 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001577/0.4024, allocations: 35.58 kB / 406.3 MB, free: 9.52 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.941e-05/0.4025, allocations: 33.83 kB / 406.3 MB, free: 9.492 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.701e-06/0.4025, allocations: 4 kB / 406.3 MB, free: 9.488 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.777e-06/0.4025, allocations: 384 / 406.3 MB, free: 9.488 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.739e-06/0.4025, allocations: 8 kB / 406.4 MB, free: 9.48 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001641/0.4042, allocations: 0.8651 MB / 407.2 MB, free: 8.562 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.725e-06/0.4042, allocations: 4 kB / 407.2 MB, free: 8.559 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005515/0.4048, allocations: 83.94 kB / 407.3 MB, free: 8.477 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.169e-05/0.4048, allocations: 11.92 kB / 407.3 MB, free: 8.465 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.664e-05/0.4049, allocations: 4.062 kB / 407.3 MB, free: 8.461 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.611e-06/0.4049, allocations: 4 kB / 407.3 MB, free: 8.457 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.686e-06/0.4049, allocations: 0 / 407.3 MB, free: 8.457 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009156/0.4058, allocations: 0.6866 MB / 408 MB, free: 7.715 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001596/0.406, allocations: 112.9 kB / 408.1 MB, free: 7.586 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.007e-05/0.4061, allocations: 4 kB / 408.1 MB, free: 7.582 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004078/0.4065, allocations: 27.97 kB / 408.2 MB, free: 7.555 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.622e-05/0.4066, allocations: 23.97 kB / 408.2 MB, free: 7.531 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.966e-05/0.4066, allocations: 11.95 kB / 408.2 MB, free: 7.52 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001851/0.4068, allocations: 148.5 kB / 408.3 MB, free: 7.375 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.86e-07/0.4068, allocations: 0 / 408.3 MB, free: 7.375 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006678/0.4075, allocations: 52 kB / 408.4 MB, free: 7.324 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 () * 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.0001607/0.4077, allocations: 103.2 kB / 408.5 MB, free: 7.211 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000521/0.4082, allocations: 208 kB / 408.7 MB, free: 7.008 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.4082, allocations: 4 kB / 408.7 MB, free: 7.004 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002302/0.4085, allocations: 95.86 kB / 408.8 MB, free: 6.91 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005402/0.409, allocations: 25.34 kB / 408.8 MB, free: 6.887 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001581/0.4106, allocations: 0.7459 MB / 409.6 MB, free: 6.098 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005013/0.4112, allocations: 0.7799 MB / 410.3 MB, free: 5.285 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001295/0.4113, allocations: 27.42 kB / 410.4 MB, free: 5.258 MB / 346.7 MB Notification: Performance of SimCode: time 1.889e-06/0.4113, allocations: 0 / 410.4 MB, free: 5.258 MB / 346.7 MB Notification: Performance of Templates: time 0.006585/0.4179, allocations: 3.181 MB / 413.5 MB, free: 2.082 MB / 346.7 MB