Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@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.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.031/2.031, allocations: 209.4 MB / 217.3 MB, free: 4.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.646e-05/1.654e-05, allocations: 4 kB / 271.3 MB, free: 14.14 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2621/0.2621, allocations: 48.68 MB / 320 MB, free: 14.42 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1119/0.3741, allocations: 73.78 MB / 393.8 MB, free: 6.695 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002012/0.3743, allocations: 63.97 kB / 393.8 MB, free: 6.633 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006749/0.3811, allocations: 1.641 MB / 395.5 MB, free: 4.988 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.989e-06/0.3811, allocations: 0 / 395.5 MB, free: 4.988 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.41e-05/0.3812, allocations: 4 kB / 395.5 MB, free: 4.984 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.0005772/0.3818, allocations: 390 kB / 395.9 MB, free: 4.559 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.3818, allocations: 8.031 kB / 395.9 MB, free: 4.551 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.489e-05/0.3819, allocations: 15.91 kB / 395.9 MB, free: 4.535 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003068/0.3822, allocations: 209.9 kB / 396.1 MB, free: 4.293 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.356e-05/0.3822, allocations: 0 / 396.1 MB, free: 4.293 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.322e-05/0.3823, allocations: 11.92 kB / 396.1 MB, free: 4.281 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001376/0.3824, allocations: 36 kB / 396.1 MB, free: 4.246 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001854/0.3826, allocations: 83.22 kB / 396.2 MB, free: 4.16 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/0.3827, allocations: 0 / 396.2 MB, free: 4.16 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.921e-05/0.3827, allocations: 8 kB / 396.2 MB, free: 4.152 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.134e-06/0.3827, allocations: 0 / 396.2 MB, free: 4.152 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006551/0.3834, allocations: 333.2 kB / 396.6 MB, free: 3.789 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001298/0.3835, allocations: 58.5 kB / 396.6 MB, free: 3.723 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.754e-05/0.3836, allocations: 20.95 kB / 396.6 MB, free: 3.699 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.115e-05/0.3836, allocations: 0 / 396.6 MB, free: 3.699 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000215/0.3839, allocations: 91.31 kB / 396.7 MB, free: 3.598 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 2.516e-06/0.3839, allocations: 0 / 396.7 MB, free: 3.598 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.000299/0.3842, allocations: 93.47 kB / 396.8 MB, free: 3.5 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.583e-05/0.3842, allocations: 55.41 kB / 396.9 MB, free: 3.434 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001438/0.3844, allocations: 121.3 kB / 397 MB, free: 3.305 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.746e-05/0.3844, allocations: 29.7 kB / 397 MB, free: 3.27 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000106/0.3846, allocations: 162.8 kB / 397.2 MB, free: 3.105 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.402e-05/0.3846, allocations: 31.78 kB / 397.2 MB, free: 3.074 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.028e-06/0.3846, allocations: 0 / 397.2 MB, free: 3.074 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.3848, allocations: 318.8 kB / 397.5 MB, free: 2.754 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.349e-05/0.3849, allocations: 15.98 kB / 397.5 MB, free: 2.738 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001135/0.385, allocations: 79.67 kB / 397.6 MB, free: 2.633 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.699e-05/0.3851, allocations: 35.97 kB / 397.6 MB, free: 2.598 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.896e-06/0.3851, allocations: 0 / 397.6 MB, free: 2.598 MB / 330.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002676/0.3854, allocations: 113.3 kB / 397.8 MB, free: 2.48 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.949e-05/0.3854, allocations: 8.781 kB / 397.8 MB, free: 2.473 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.865e-06/0.3855, allocations: 0 / 397.8 MB, free: 2.473 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.839e-05/0.3855, allocations: 7.953 kB / 397.8 MB, free: 2.465 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001623/0.3857, allocations: 23.98 kB / 397.8 MB, free: 2.441 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.267e-05/0.3857, allocations: 12.16 kB / 397.8 MB, free: 2.43 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001045/0.3858, allocations: 11.84 kB / 397.8 MB, free: 2.418 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.113e-05/0.3858, allocations: 8.094 kB / 397.8 MB, free: 2.41 MB / 330.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 () * 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.0001012/0.386, allocations: 108.9 kB / 397.9 MB, free: 2.297 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.328e-05/0.386, allocations: 11.89 kB / 397.9 MB, free: 2.285 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.39e-05/0.3861, allocations: 12.62 kB / 398 MB, free: 2.273 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.333e-06/0.3861, allocations: 0 / 398 MB, free: 2.273 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.81e-06/0.3861, allocations: 3.953 kB / 398 MB, free: 2.27 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.41e-06/0.3861, allocations: 4 kB / 398 MB, free: 2.266 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002039/0.3863, allocations: 170.2 kB / 398.1 MB, free: 2.062 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.228e-06/0.3863, allocations: 3.984 kB / 398.1 MB, free: 2.059 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001363/0.3865, allocations: 15.94 kB / 398.1 MB, free: 2.043 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.556e-06/0.3865, allocations: 0 / 398.1 MB, free: 2.043 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.153e-05/0.3865, allocations: 7.984 kB / 398.2 MB, free: 2.035 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.317e-06/0.3865, allocations: 0 / 398.2 MB, free: 2.035 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.62e-06/0.3865, allocations: 0 / 398.2 MB, free: 2.035 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003414/0.3869, allocations: 148.9 kB / 398.3 MB, free: 1.871 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001057/0.387, allocations: 93.03 kB / 398.4 MB, free: 1.762 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.364e-05/0.3871, allocations: 4 kB / 398.4 MB, free: 1.758 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.966e-05/0.3872, allocations: 4 kB / 398.4 MB, free: 1.754 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.437e-05/0.3872, allocations: 7.984 kB / 398.4 MB, free: 1.746 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.904e-05/0.3873, allocations: 7.984 kB / 398.4 MB, free: 1.738 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001012/0.3874, allocations: 105.3 kB / 398.5 MB, free: 1.637 MB / 330.7 MB Notification: Performance of sort global known variables: time 8.21e-07/0.3874, allocations: 0 / 398.5 MB, free: 1.637 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003245/0.3877, allocations: 23.84 kB / 398.5 MB, free: 1.613 MB / 330.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) * 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.0001534/0.3879, allocations: 107.3 kB / 398.6 MB, free: 1.5 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000192/0.3881, allocations: 59.86 kB / 398.7 MB, free: 1.441 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.662e-06/0.3881, allocations: 0 / 398.7 MB, free: 1.441 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.64e-05/0.3882, allocations: 28 kB / 398.7 MB, free: 1.414 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001947/0.3884, allocations: 20.09 kB / 398.8 MB, free: 1.395 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00048/0.3889, allocations: 191.6 kB / 398.9 MB, free: 1.176 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003689/0.3893, allocations: 0.7117 MB / 399.6 MB, free: 448 kB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.325e-05/0.3894, allocations: 19.44 kB / 399.7 MB, free: 428 kB / 330.7 MB Notification: Performance of SimCode: time 1.434e-06/0.3894, allocations: 0 / 399.7 MB, free: 428 kB / 330.7 MB Notification: Performance of Templates: time 0.003386/0.3928, allocations: 1.283 MB / 401 MB, free: 15.13 MB / 346.7 MB