Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.Mean.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.Mean,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mean.x|mean.y",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Blocks.Mean") Notification: Performance of loadModel(ModelicaTest): time 1.863/1.863, allocations: 209.3 MB / 225.4 MB, free: 0.6133 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004248/0.0004249, allocations: 12 kB / 283.1 MB, free: 9.707 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.332/0.3324, allocations: 48.7 MB / 331.8 MB, free: 6.5 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Mean): time 0.001889/0.3343, allocations: 1.169 MB / 333 MB, free: 5.918 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008708/0.3352, allocations: 471.8 kB / 333.4 MB, free: 5.602 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.026e-05/0.3353, allocations: 1.75 kB / 333.4 MB, free: 5.602 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 1.508e-05/0.3353, allocations: 0.7969 kB / 333.4 MB, free: 5.602 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 6.753e-05/0.3354, allocations: 10.28 kB / 333.4 MB, free: 5.594 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001867/0.3356, allocations: 20.2 kB / 333.5 MB, free: 5.582 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 7.49e-05/0.3357, allocations: 30.56 kB / 333.5 MB, free: 5.566 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.519e-05/0.3358, allocations: 7.984 kB / 333.5 MB, free: 5.562 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.824e-05/0.3359, allocations: 18.38 kB / 333.5 MB, free: 5.555 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.565e-05/0.336, allocations: 16.84 kB / 333.5 MB, free: 5.547 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.504e-05/0.336, allocations: 1.469 kB / 333.5 MB, free: 5.547 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.57e-05/0.336, allocations: 1.656 kB / 333.5 MB, free: 5.547 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.871e-05/0.3361, allocations: 11.52 kB / 333.5 MB, free: 5.539 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.93e-05/0.3361, allocations: 29.11 kB / 333.6 MB, free: 5.508 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 7.386e-05/0.3362, allocations: 21.14 kB / 333.6 MB, free: 5.504 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.3362, allocations: 1.156 kB / 333.6 MB, free: 5.504 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.492e-06/0.3362, allocations: 4 kB / 333.6 MB, free: 5.5 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.998e-06/0.3362, allocations: 0 / 333.6 MB, free: 5.5 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004401/0.3367, allocations: 345.4 kB / 333.9 MB, free: 5.137 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.3367, allocations: 9.031 kB / 333.9 MB, free: 5.137 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.888e-05/0.3368, allocations: 3.812 kB / 334 MB, free: 5.137 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001469/0.3369, allocations: 179.6 kB / 334.1 MB, free: 4.93 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.299e-05/0.337, allocations: 5.188 kB / 334.1 MB, free: 4.926 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.627e-05/0.337, allocations: 2.875 kB / 334.1 MB, free: 4.926 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001697/0.3372, allocations: 52.58 kB / 334.2 MB, free: 4.887 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.174e-05/0.3372, allocations: 1.5 kB / 334.2 MB, free: 4.887 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.412e-05/0.3372, allocations: 4.609 kB / 334.2 MB, free: 4.883 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.47e-06/0.3372, allocations: 1.594 kB / 334.2 MB, free: 4.883 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001333/0.3374, allocations: 21.89 kB / 334.2 MB, free: 4.879 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003842/0.3378, allocations: 280.2 kB / 334.5 MB, free: 4.59 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001061/0.3379, allocations: 39.97 kB / 334.5 MB, free: 4.555 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.173e-05/0.3379, allocations: 1.188 kB / 334.5 MB, free: 4.555 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002431/0.3382, allocations: 79.14 kB / 334.6 MB, free: 4.492 MB / 266.7 MB Notification: Performance of pre-optimization done (n=4): time 1.874e-06/0.3382, allocations: 0 / 334.6 MB, free: 4.492 MB / 266.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003505/0.3386, allocations: 87.88 kB / 334.7 MB, free: 4.445 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.635e-05/0.3386, allocations: 52.11 kB / 334.7 MB, free: 4.383 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.348e-05/0.3387, allocations: 115.8 kB / 334.9 MB, free: 4.277 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.375e-05/0.3387, allocations: 25.7 kB / 334.9 MB, free: 4.246 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.187e-05/0.3388, allocations: 162.4 kB / 335 MB, free: 4.09 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.943e-05/0.3388, allocations: 9.312 kB / 335.1 MB, free: 4.082 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.741e-06/0.3388, allocations: 0 / 335.1 MB, free: 4.082 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.544e-05/0.3389, allocations: 321.5 kB / 335.4 MB, free: 3.762 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.928e-05/0.339, allocations: 11.58 kB / 335.4 MB, free: 3.762 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.518e-05/0.3391, allocations: 52 kB / 335.4 MB, free: 3.711 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.077e-05/0.3392, allocations: 23.03 kB / 335.4 MB, free: 3.703 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.3392, allocations: 1.406 kB / 335.4 MB, free: 3.703 MB / 266.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002401/0.3394, allocations: 83.28 kB / 335.5 MB, free: 3.656 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.3395, allocations: 6.312 kB / 335.5 MB, free: 3.656 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.3395, allocations: 2.062 kB / 335.5 MB, free: 3.656 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.3395, allocations: 1.5 kB / 335.5 MB, free: 3.656 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001173/0.3396, allocations: 15.56 kB / 335.6 MB, free: 3.652 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.249e-05/0.3396, allocations: 3.203 kB / 335.6 MB, free: 3.652 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.279e-05/0.3397, allocations: 8.391 kB / 335.6 MB, free: 3.648 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.187e-05/0.3397, allocations: 3.312 kB / 335.6 MB, free: 3.648 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 ($PRE.mean.y,mean.y,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 7.198e-05/0.3398, allocations: 122.8 kB / 335.7 MB, free: 3.523 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.691e-05/0.3399, allocations: 7.109 kB / 335.7 MB, free: 3.52 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.057e-05/0.3399, allocations: 9.844 kB / 335.7 MB, free: 3.508 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.3399, allocations: 0 / 335.7 MB, free: 3.508 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3399, allocations: 0.7969 kB / 335.7 MB, free: 3.508 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.341e-05/0.34, allocations: 89.8 kB / 335.8 MB, free: 3.406 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.255e-05/0.34, allocations: 2.031 kB / 335.8 MB, free: 3.406 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.716e-05/0.3401, allocations: 3.359 kB / 335.8 MB, free: 3.406 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.915e-05/0.3401, allocations: 11.91 kB / 335.8 MB, free: 3.398 MB / 266.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003083/0.3404, allocations: 153.9 kB / 336 MB, free: 3.281 MB / 266.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.0003602/0.3408, allocations: 267.2 kB / 336.2 MB, free: 3.055 MB / 266.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 9.028e-05/0.3409, allocations: 22.5 kB / 336.2 MB, free: 3.047 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.604e-05/0.341, allocations: 93.95 kB / 336.3 MB, free: 2.965 MB / 266.7 MB Notification: Performance of Backend: time 1.433e-06/0.341, allocations: 0 / 336.3 MB, free: 2.965 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003309/0.3413, allocations: 108.5 kB / 336.4 MB, free: 2.891 MB / 266.7 MB Notification: Performance of SimCode: time 0.000425/0.3418, allocations: 0.6479 MB / 337.1 MB, free: 2.238 MB / 266.7 MB Error: Internal error GetVarIndexListByMapping: No Element for mean.x found! Error: Internal error GetVarIndexListByMapping: No Element for $DER.mean.x found! Error: Internal error GetVarIndexListByMapping: No Element for sine.y found! Error: Internal error GetVarIndexListByMapping: No Element for mean.y found! Error: Internal error GetVarIndexListByMapping: No Element for $whenCondition1 found! Error: Internal error GetVarIndexListByMapping: No Element for mean.f found! Error: Internal error GetVarIndexListByMapping: No Element for mean.t0 found! Error: Internal error GetVarIndexListByMapping: No Element for mean.x0 found! Error: Internal error GetVarIndexListByMapping: No Element for sine.amplitude found! Error: Internal error GetVarIndexListByMapping: No Element for sine.freqHz found! Error: Internal error GetVarIndexListByMapping: No Element for sine.offset found! Error: Internal error GetVarIndexListByMapping: No Element for sine.phase found! Error: Internal error GetVarIndexListByMapping: No Element for sine.startTime found! Error: Internal error GetVarIndexListByMapping: No Element for mean.yGreaterOrEqualZero found! Error: Internal error GetVarIndexListByMapping: No Element for mean.u found! Error: Internal error GetVarIndexListByMapping: No Element for mean.x found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: mean.x (no alias) protected hideResult initial: no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for $DER.mean.x found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: $DER.mean.x (no alias) protected hideResult initial: no arrCref index:(2) [] Error: Internal error GetVarIndexListByMapping: No Element for sine.y found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: sine.y (no alias) initial: no arrCref index:(3) [] Error: Internal error GetVarIndexListByMapping: No Element for mean.y found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: mean.y (no alias) initial: no arrCref index:(4) [] Error: Internal error GetVarIndexListByMapping: No Element for mean.f found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: mean.f (no alias) initial: 2.0 no arrCref index:(5) [] Error: Internal error GetVarIndexListByMapping: No Element for mean.t0 found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:1: mean.t0 (no alias) protected hideResult initial: no arrCref index:(6) [] Error: Internal error GetVarIndexListByMapping: No Element for mean.x0 found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:2: mean.x0 (no alias) initial: 0.0 no arrCref index:(7) [] Error: Internal error GetVarIndexListByMapping: No Element for sine.amplitude found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:3: sine.amplitude (no alias) initial: 1.0 no arrCref index:(8) [] Error: Internal error GetVarIndexListByMapping: No Element for sine.freqHz found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:4: sine.freqHz (no alias) initial: 2.0 no arrCref index:(9) [] Error: Internal error GetVarIndexListByMapping: No Element for sine.offset found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:5: sine.offset (no alias) initial: 0.5 no arrCref index:(10) [] Error: Internal error GetVarIndexListByMapping: No Element for sine.phase found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:6: sine.phase (no alias) initial: 0.0 no arrCref index:(11) [] Error: Internal error GetVarIndexListByMapping: No Element for sine.startTime found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:7: sine.startTime (no alias) initial: 0.0 no arrCref index:(12) [] Error: Internal error GetVarIndexListByMapping: No Element for sine.y found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: sine.y (no alias) initial: no arrCref index:(3) [] Error: Internal error GetVarIndexListByMapping: No Element for $whenCondition1 found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: $whenCondition1 (no alias) protected hideResult initial: no arrCref index:(14) [] Error: Internal error GetVarIndexListByMapping: No Element for mean.yGreaterOrEqualZero found! [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:13946:9-13946:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: mean.yGreaterOrEqualZero (no alias) initial: false no arrCref index:(15) []