Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Blocks.RootMeanSquare.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.Blocks.RootMeanSquare") Notification: Performance of loadModel(ModelicaTest): time 2.204/2.204, allocations: 234.9 MB / 250.5 MB, free: 9.609 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004345/0.0004347, allocations: 12 kB / 314.3 MB, free: 9.668 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2899/0.2903, allocations: 54.86 MB / 369.2 MB, free: 12.78 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.RootMeanSquare): time 0.002096/0.2925, allocations: 1.318 MB / 370.5 MB, free: 11.44 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001066/0.2936, allocations: 0.5288 MB / 371 MB, free: 10.91 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.659e-05/0.2937, allocations: 0 / 371 MB, free: 10.91 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.734e-05/0.2938, allocations: 11.92 kB / 371 MB, free: 10.9 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.846e-05/0.2938, allocations: 15.97 kB / 371 MB, free: 10.88 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002471/0.2941, allocations: 43.83 kB / 371.1 MB, free: 10.84 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001376/0.2943, allocations: 63.86 kB / 371.1 MB, free: 10.78 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001262/0.2944, allocations: 35.92 kB / 371.2 MB, free: 10.74 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001109/0.2945, allocations: 31.84 kB / 371.2 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001118/0.2947, allocations: 43.81 kB / 371.3 MB, free: 10.67 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.095e-05/0.2947, allocations: 4 kB / 371.3 MB, free: 10.66 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.999e-05/0.2947, allocations: 4 kB / 371.3 MB, free: 10.66 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.167e-05/0.2948, allocations: 15.88 kB / 371.3 MB, free: 10.64 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.518e-05/0.2948, allocations: 41.69 kB / 371.3 MB, free: 10.6 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001243/0.295, allocations: 67.86 kB / 371.4 MB, free: 10.53 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.295, allocations: 0 / 371.4 MB, free: 10.53 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.375e-06/0.295, allocations: 3.938 kB / 371.4 MB, free: 10.53 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.109e-06/0.295, allocations: 0 / 371.4 MB, free: 10.53 MB / 298.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.000721/0.2957, allocations: 399.7 kB / 371.8 MB, free: 10.09 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.562e-05/0.2958, allocations: 8.031 kB / 371.8 MB, free: 10.08 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.813e-05/0.2958, allocations: 7.906 kB / 371.8 MB, free: 10.07 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000264/0.2961, allocations: 202.8 kB / 372 MB, free: 9.836 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.497e-05/0.2962, allocations: 0 / 372 MB, free: 9.836 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.314e-05/0.2962, allocations: 12 kB / 372 MB, free: 9.824 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002588/0.2965, allocations: 85.64 kB / 372.1 MB, free: 9.734 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.2965, allocations: 4 kB / 372.1 MB, free: 9.73 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.243e-05/0.2965, allocations: 11.95 kB / 372.1 MB, free: 9.719 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.357e-06/0.2965, allocations: 0 / 372.1 MB, free: 9.719 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001933/0.2968, allocations: 55.91 kB / 372.2 MB, free: 9.664 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006849/0.2975, allocations: 376.5 kB / 372.5 MB, free: 9.246 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001812/0.2977, allocations: 62.5 kB / 372.6 MB, free: 9.176 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.951e-05/0.2977, allocations: 0 / 372.6 MB, free: 9.176 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003024/0.298, allocations: 103.5 kB / 372.7 MB, free: 9.062 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 2.728e-06/0.298, allocations: 0 / 372.7 MB, free: 9.062 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.000471/0.2985, allocations: 129.5 kB / 372.8 MB, free: 8.93 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.237e-05/0.2986, allocations: 55.34 kB / 372.9 MB, free: 8.863 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001603/0.2987, allocations: 140.7 kB / 373 MB, free: 8.719 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.002e-05/0.2988, allocations: 33.7 kB / 373 MB, free: 8.68 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000107/0.2989, allocations: 166.7 kB / 373.2 MB, free: 8.516 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.239e-05/0.299, allocations: 31.55 kB / 373.2 MB, free: 8.484 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.378e-05/0.299, allocations: 4.375 kB / 373.2 MB, free: 8.48 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001581/0.2992, allocations: 318.8 kB / 373.6 MB, free: 8.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001031/0.2993, allocations: 27.98 kB / 373.6 MB, free: 8.133 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001511/0.2994, allocations: 88.92 kB / 373.7 MB, free: 8.02 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001325/0.2996, allocations: 43.91 kB / 373.7 MB, free: 7.977 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.81e-06/0.2996, allocations: 3.953 kB / 373.7 MB, free: 7.973 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003573/0.3, allocations: 133.5 kB / 373.8 MB, free: 7.836 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.943e-05/0.3, allocations: 8 kB / 373.9 MB, free: 7.828 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.156e-06/0.3, allocations: 4.203 kB / 373.9 MB, free: 7.824 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.3001, allocations: 8 kB / 373.9 MB, free: 7.816 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001548/0.3002, allocations: 23.98 kB / 373.9 MB, free: 7.793 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.571e-05/0.3002, allocations: 7.938 kB / 373.9 MB, free: 7.785 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001116/0.3004, allocations: 15.84 kB / 373.9 MB, free: 7.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.636e-05/0.3004, allocations: 4 kB / 373.9 MB, free: 7.766 MB / 298.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.000143/0.3006, allocations: 121.8 kB / 374 MB, free: 7.637 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.412e-05/0.3006, allocations: 15.84 kB / 374 MB, free: 7.621 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.551e-05/0.3007, allocations: 20.66 kB / 374.1 MB, free: 7.594 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.748e-06/0.3007, allocations: 0 / 374.1 MB, free: 7.594 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.682e-06/0.3007, allocations: 0 / 374.1 MB, free: 7.594 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.152e-06/0.3007, allocations: 0 / 374.1 MB, free: 7.594 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000227/0.3009, allocations: 197.6 kB / 374.3 MB, free: 7.352 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.764e-06/0.301, allocations: 4 kB / 374.3 MB, free: 7.348 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001337/0.3011, allocations: 19.88 kB / 374.3 MB, free: 7.328 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.644e-06/0.3011, allocations: 0 / 374.3 MB, free: 7.328 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.075e-05/0.3011, allocations: 8 kB / 374.3 MB, free: 7.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.3012, allocations: 0 / 374.3 MB, free: 7.32 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.072e-06/0.3012, allocations: 4 kB / 374.3 MB, free: 7.316 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004455/0.3016, allocations: 164.9 kB / 374.5 MB, free: 7.137 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.08e-05/0.3017, allocations: 89.05 kB / 374.5 MB, free: 7.031 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.126e-05/0.3018, allocations: 3.953 kB / 374.5 MB, free: 7.027 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000107/0.3019, allocations: 11.98 kB / 374.6 MB, free: 7.016 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.312e-05/0.3019, allocations: 8.062 kB / 374.6 MB, free: 7.008 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.96e-05/0.302, allocations: 7.984 kB / 374.6 MB, free: 7 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001016/0.3021, allocations: 108.3 kB / 374.7 MB, free: 6.895 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.89e-07/0.3021, allocations: 0 / 374.7 MB, free: 6.895 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003076/0.3024, allocations: 19.94 kB / 374.7 MB, free: 6.875 MB / 298.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.0001265/0.3025, allocations: 107.3 kB / 374.8 MB, free: 6.762 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002858/0.3028, allocations: 83.84 kB / 374.9 MB, free: 6.68 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.3029, allocations: 0 / 374.9 MB, free: 6.68 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001275/0.303, allocations: 35.92 kB / 374.9 MB, free: 6.645 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001812/0.3032, allocations: 11.98 kB / 374.9 MB, free: 6.633 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006241/0.3038, allocations: 309.5 kB / 375.2 MB, free: 6.301 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003984/0.3043, allocations: 0.7083 MB / 375.9 MB, free: 5.566 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.841e-05/0.3043, allocations: 11.44 kB / 376 MB, free: 5.559 MB / 298.7 MB Notification: Performance of SimCode: time 1.279e-06/0.3043, allocations: 4 kB / 376 MB, free: 5.555 MB / 298.7 MB Notification: Performance of Templates: time 0.003365/0.3077, allocations: 1.288 MB / 377.2 MB, free: 4.266 MB / 298.7 MB