Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions.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.ForUsersGuide.Directions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J2.phi|J2.w|J3.phi|J3.w|J5.phi|J5.w",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.ForUsersGuide.Directions") Notification: Performance of loadModel(ModelicaTest): time 2.019/2.019, allocations: 209.2 MB / 225.4 MB, free: 0.5391 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000436/0.0004363, allocations: 8 kB / 283.1 MB, free: 9.695 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3561/0.3566, allocations: 48.7 MB / 331.8 MB, free: 6.496 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1372/0.4939, allocations: 75.6 MB / 407.4 MB, free: 2.867 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000326/0.4943, allocations: 79.95 kB / 407.5 MB, free: 2.789 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02603/0.5203, allocations: 5.826 MB / 413.3 MB, free: 12.95 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.5204, allocations: 0 / 413.3 MB, free: 12.95 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.168e-05/0.5204, allocations: 8 kB / 413.3 MB, free: 12.94 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: 96 * Number of variables: 96 Notification: Performance of Generate backend data structure: time 0.001322/0.5218, allocations: 0.6124 MB / 413.9 MB, free: 12.28 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.882e-05/0.5218, allocations: 8.031 kB / 413.9 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001239/0.522, allocations: 51.33 kB / 414 MB, free: 12.22 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004374/0.5224, allocations: 278 kB / 414.2 MB, free: 11.91 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.198e-05/0.5225, allocations: 29 kB / 414.3 MB, free: 11.88 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001005/0.5226, allocations: 39.98 kB / 414.3 MB, free: 11.84 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001043/0.5236, allocations: 381 kB / 414.7 MB, free: 11.45 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.244e-05/0.5237, allocations: 7.844 kB / 414.7 MB, free: 11.45 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.741e-05/0.5238, allocations: 16 kB / 414.7 MB, free: 11.43 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.881e-05/0.5238, allocations: 12 kB / 414.7 MB, free: 11.42 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008773/0.5247, allocations: 259.8 kB / 415 MB, free: 11.16 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00236/0.5271, allocations: 1.101 MB / 416.1 MB, free: 10 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009054/0.528, allocations: 363.4 kB / 416.4 MB, free: 9.621 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.213e-05/0.5281, allocations: 4 kB / 416.4 MB, free: 9.617 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.66e-05/0.5281, allocations: 43.25 kB / 416.5 MB, free: 9.566 MB / 346.7 MB Notification: Performance of pre-optimization done (n=39): time 3.216e-06/0.5281, allocations: 4 kB / 416.5 MB, free: 9.562 MB / 346.7 MB Notification: Performance of matching and sorting (n=57): time 0.006113/0.5343, allocations: 2.485 MB / 419 MB, free: 6.805 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.3e-05/0.5344, allocations: 110.8 kB / 419.1 MB, free: 6.672 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003722/0.5348, allocations: 242.7 kB / 419.3 MB, free: 6.43 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.601e-05/0.5348, allocations: 33.7 kB / 419.3 MB, free: 6.391 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001598/0.535, allocations: 243 kB / 419.6 MB, free: 6.148 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000208/0.5352, allocations: 197.1 kB / 419.8 MB, free: 5.953 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.238e-05/0.5353, allocations: 8 kB / 419.8 MB, free: 5.945 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.5354, allocations: 342.8 kB / 420.1 MB, free: 5.602 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000475/0.5359, allocations: 133 kB / 420.2 MB, free: 5.473 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005505/0.5365, allocations: 239.8 kB / 420.5 MB, free: 5.203 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005499/0.537, allocations: 171.8 kB / 420.6 MB, free: 5.035 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.5371, allocations: 4 kB / 420.7 MB, free: 5.031 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001712/0.5388, allocations: 0.5348 MB / 421.2 MB, free: 4.48 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.715e-05/0.5388, allocations: 11.98 kB / 421.2 MB, free: 4.469 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.294e-05/0.5388, allocations: 3.953 kB / 421.2 MB, free: 4.465 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006/0.5395, allocations: 134.7 kB / 421.3 MB, free: 4.324 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007111/0.5402, allocations: 99.88 kB / 421.4 MB, free: 4.227 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005596/0.5458, allocations: 4.703 MB / 426.1 MB, free: 15.12 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004484/0.5463, allocations: 24.61 kB / 426.2 MB, free: 15.1 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.147e-05/0.5464, allocations: 20 kB / 426.2 MB, free: 15.08 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (51): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 5,(1,100.0%) 5,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003309/0.5467, allocations: 165.8 kB / 426.3 MB, free: 14.91 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001298/0.5468, allocations: 39.47 kB / 426.4 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001238/0.547, allocations: 54.12 kB / 426.4 MB, free: 14.82 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/0.547, allocations: 4 kB / 426.4 MB, free: 14.82 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.064e-05/0.547, allocations: 8 kB / 426.4 MB, free: 14.81 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.608e-06/0.547, allocations: 3.984 kB / 426.4 MB, free: 14.81 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003251/0.5503, allocations: 1.345 MB / 427.8 MB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.873e-06/0.5504, allocations: 96 / 427.8 MB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000802/0.5512, allocations: 103.8 kB / 427.9 MB, free: 13.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000478/0.5517, allocations: 98.47 kB / 428 MB, free: 13.18 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.845e-05/0.5517, allocations: 15.98 kB / 428 MB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004353/0.5561, allocations: 4.135 MB / 432.1 MB, free: 8.629 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.5562, allocations: 0 / 432.1 MB, free: 8.629 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00224/0.5584, allocations: 0.9504 MB / 433.1 MB, free: 7.645 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002296/0.5587, allocations: 136.8 kB / 433.2 MB, free: 7.492 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.923e-05/0.5588, allocations: 12.47 kB / 433.2 MB, free: 7.48 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004146/0.5592, allocations: 19.98 kB / 433.3 MB, free: 7.461 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001499/0.5594, allocations: 39.94 kB / 433.3 MB, free: 7.422 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.404e-05/0.5594, allocations: 16 kB / 433.3 MB, free: 7.406 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002533/0.5597, allocations: 178 kB / 433.5 MB, free: 7.23 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.5597, allocations: 0 / 433.5 MB, free: 7.23 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009644/0.5607, allocations: 124 kB / 433.6 MB, free: 7.109 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (J5.phi,J5.w,J3.phi,J3.w,J1.phi,J1.w) * 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 (48): * Single equations (assignments): 45 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001984/0.5609, allocations: 123 kB / 433.7 MB, free: 6.977 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001935/0.5628, allocations: 0.7852 MB / 434.5 MB, free: 6.152 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.5628, allocations: 4 kB / 434.5 MB, free: 6.148 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001266/0.5641, allocations: 0.5811 MB / 435.1 MB, free: 5.531 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007229/0.5649, allocations: 54.72 kB / 435.1 MB, free: 5.48 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002942/0.5678, allocations: 1.339 MB / 436.5 MB, free: 4.094 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000488/0.5684, allocations: 0.8319 MB / 437.3 MB, free: 3.234 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001624/0.5685, allocations: 35.44 kB / 437.4 MB, free: 3.199 MB / 362.7 MB Notification: Performance of SimCode: time 1.523e-06/0.5685, allocations: 0 / 437.4 MB, free: 3.199 MB / 362.7 MB Notification: Performance of Templates: time 0.01655/0.5851, allocations: 8.79 MB / 446.1 MB, free: 10.39 MB / 378.7 MB