Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.RootMeanSquare.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.Blocks.RootMeanSquare,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean1.x|rootMeanSquare.mean.x|mean1.y|rootMeanSquare.mean.y",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.RootMeanSquare") Notification: Performance of loadModel(ModelicaTest): time 2.339/2.339, allocations: 209.2 MB / 225.4 MB, free: 0.6172 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004497/0.0004497, allocations: 16 kB / 283.1 MB, free: 9.699 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3629/0.3634, allocations: 48.7 MB / 331.8 MB, free: 6.5 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1363/0.4997, allocations: 74.55 MB / 406.3 MB, free: 3.902 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002672/0.5, allocations: 63.97 kB / 406.4 MB, free: 3.84 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008258/0.5083, allocations: 1.655 MB / 408.1 MB, free: 2.18 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.604e-06/0.5084, allocations: 0 / 408.1 MB, free: 2.18 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.061e-05/0.5084, allocations: 4 kB / 408.1 MB, free: 2.176 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0008169/0.5092, allocations: 402 kB / 408.5 MB, free: 1.738 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.124e-05/0.5093, allocations: 8.031 kB / 408.5 MB, free: 1.73 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.532e-05/0.5094, allocations: 11.81 kB / 408.5 MB, free: 1.719 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003609/0.5098, allocations: 214.7 kB / 408.7 MB, free: 1.469 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.36e-05/0.5098, allocations: 8 kB / 408.7 MB, free: 1.461 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.052e-05/0.5099, allocations: 8 kB / 408.7 MB, free: 1.453 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003249/0.5102, allocations: 93.64 kB / 408.8 MB, free: 1.355 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.446e-05/0.5102, allocations: 0 / 408.8 MB, free: 1.355 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.118e-05/0.5103, allocations: 0 / 408.8 MB, free: 1.355 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.5103, allocations: 4 kB / 408.8 MB, free: 1.352 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002325/0.5105, allocations: 47.97 kB / 408.8 MB, free: 1.305 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008263/0.5114, allocations: 380.5 kB / 409.2 MB, free: 0.8828 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002177/0.5116, allocations: 58.59 kB / 409.3 MB, free: 0.8164 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.237e-05/0.5117, allocations: 4 kB / 409.3 MB, free: 0.8125 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003075/0.512, allocations: 99.39 kB / 409.4 MB, free: 0.7031 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 2.966e-06/0.512, allocations: 0 / 409.4 MB, free: 0.7031 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0005714/0.5126, allocations: 141.4 kB / 409.5 MB, free: 0.5586 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.98e-05/0.5126, allocations: 51.78 kB / 409.6 MB, free: 0.4961 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001918/0.5128, allocations: 138.2 kB / 409.7 MB, free: 356 kB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3e-05/0.5129, allocations: 29.7 kB / 409.7 MB, free: 320 kB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001002/0.513, allocations: 170.7 kB / 409.9 MB, free: 144 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.332e-05/0.5131, allocations: 27.56 kB / 409.9 MB, free: 116 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.389e-05/0.5131, allocations: 8 kB / 409.9 MB, free: 108 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.5132, allocations: 314.8 kB / 410.2 MB, free: 15.79 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000141/0.5134, allocations: 31.98 kB / 410.3 MB, free: 15.76 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001722/0.5136, allocations: 83.59 kB / 410.3 MB, free: 15.65 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001623/0.5138, allocations: 39.98 kB / 410.4 MB, free: 15.61 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.872e-06/0.5138, allocations: 4 kB / 410.4 MB, free: 15.61 MB / 346.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004247/0.5142, allocations: 133.6 kB / 410.5 MB, free: 15.47 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.578e-05/0.5143, allocations: 11.95 kB / 410.5 MB, free: 15.46 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/0.5143, allocations: 3.984 kB / 410.5 MB, free: 15.45 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.546e-05/0.5143, allocations: 4 kB / 410.5 MB, free: 15.45 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002109/0.5145, allocations: 27.92 kB / 410.6 MB, free: 15.42 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/0.5146, allocations: 4 kB / 410.6 MB, free: 15.42 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000129/0.5147, allocations: 7.906 kB / 410.6 MB, free: 15.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.671e-05/0.5147, allocations: 12 kB / 410.6 MB, free: 15.4 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.mean1.y,mean1.y,$whenCondition2,$whenCondition1,$PRE.rootMeanSquare.mean.y,rootMeanSquare.mean.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001702/0.5149, allocations: 129.8 kB / 410.7 MB, free: 15.26 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.736e-05/0.515, allocations: 15.89 kB / 410.7 MB, free: 15.25 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.472e-05/0.515, allocations: 12.67 kB / 410.7 MB, free: 15.23 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.5151, allocations: 0 / 410.7 MB, free: 15.23 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.997e-06/0.5151, allocations: 4 kB / 410.7 MB, free: 15.23 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.649e-06/0.5151, allocations: 0 / 410.7 MB, free: 15.23 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002482/0.5153, allocations: 205.5 kB / 410.9 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.5154, allocations: 0 / 410.9 MB, free: 14.98 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001856/0.5156, allocations: 15.98 kB / 411 MB, free: 14.96 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.691e-06/0.5156, allocations: 0 / 411 MB, free: 14.96 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.133e-05/0.5156, allocations: 8.094 kB / 411 MB, free: 14.96 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.92e-06/0.5156, allocations: 3.953 kB / 411 MB, free: 14.95 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.5156, allocations: 0 / 411 MB, free: 14.95 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000585/0.5162, allocations: 176.8 kB / 411.1 MB, free: 14.76 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001046/0.5164, allocations: 97.09 kB / 411.2 MB, free: 14.65 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.815e-05/0.5164, allocations: 8 kB / 411.2 MB, free: 14.64 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001138/0.5166, allocations: 3.984 kB / 411.3 MB, free: 14.64 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.635e-05/0.5166, allocations: 7.953 kB / 411.3 MB, free: 14.63 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.083e-05/0.5167, allocations: 8.078 kB / 411.3 MB, free: 14.62 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001271/0.5168, allocations: 110 kB / 411.4 MB, free: 14.52 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.555e-06/0.5168, allocations: 0 / 411.4 MB, free: 14.52 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003269/0.5172, allocations: 23.94 kB / 411.4 MB, free: 14.49 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (mean1.x,rootMeanSquare.mean.x) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,mean1.y,rootMeanSquare.mean.y) * Number of discrete states: 2 (mean1.x,rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001845/0.5173, allocations: 119.3 kB / 411.5 MB, free: 14.37 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003913/0.5178, allocations: 75.84 kB / 411.6 MB, free: 14.29 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.5178, allocations: 0 / 411.6 MB, free: 14.29 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001583/0.5179, allocations: 35.98 kB / 411.6 MB, free: 14.26 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002384/0.5182, allocations: 12.42 kB / 411.6 MB, free: 14.25 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008134/0.519, allocations: 309.4 kB / 411.9 MB, free: 13.91 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003208/0.5194, allocations: 0.7121 MB / 412.6 MB, free: 13.18 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.507e-05/0.5195, allocations: 11.44 kB / 412.7 MB, free: 13.16 MB / 346.7 MB Notification: Performance of SimCode: time 1.363e-06/0.5195, allocations: 0 / 412.7 MB, free: 13.16 MB / 346.7 MB Notification: Performance of Templates: time 0.004405/0.5239, allocations: 1.301 MB / 414 MB, free: 11.86 MB / 346.7 MB