Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ImpureGenerator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.Noise.ImpureGenerator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|impureRandom_y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ImpureGenerator") translateModel(Modelica.Blocks.Examples.Noise.ImpureGenerator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|impureRandom_y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Blocks.Examples.Noise.ImpureGenerator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001617/0.001617, allocations: 200.5 kB / 18.05 MB, free: 3.633 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.335/1.335, allocations: 226.5 MB / 245.3 MB, free: 6.461 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007949/0.0007946, allocations: 109.7 kB / 297.4 MB, free: 6.676 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003288/0.0003288, allocations: 7.984 kB / 357.4 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2505/0.2509, allocations: 51.3 MB / 408.7 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.ImpureGenerator): time 0.001172/0.2521, allocations: 1.082 MB / 409.8 MB, free: 26.6 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005581/0.2526, allocations: 327.2 kB / 410.1 MB, free: 26.28 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.184e-05/0.2527, allocations: 11.88 kB / 410.1 MB, free: 26.27 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.57e-05/0.2527, allocations: 5.172 kB / 410.1 MB, free: 26.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.47e-05/0.2528, allocations: 3.938 kB / 410.1 MB, free: 26.26 MB / 298.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom‘ contains a call to impure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState‘. Notification: Performance of NFTyping.typeClassSections: time 0.0004025/0.2532, allocations: 63.86 kB / 410.2 MB, free: 26.2 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 4.425e-05/0.2533, allocations: 18.25 kB / 410.2 MB, free: 26.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.083e-05/0.2533, allocations: 3.984 kB / 410.2 MB, free: 26.18 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.266e-05/0.2533, allocations: 4 kB / 410.2 MB, free: 26.18 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.485e-05/0.2534, allocations: 11.92 kB / 410.2 MB, free: 26.16 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.025e-05/0.2534, allocations: 0 / 410.2 MB, free: 26.16 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001369/0.2535, allocations: 79.91 kB / 410.3 MB, free: 26.09 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.541e-05/0.2535, allocations: 4.625 kB / 410.3 MB, free: 26.08 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.198e-05/0.2536, allocations: 33.7 kB / 410.3 MB, free: 26.04 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001107/0.2537, allocations: 61.59 kB / 410.4 MB, free: 25.98 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.2537, allocations: 0 / 410.4 MB, free: 25.98 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.2537, allocations: 0 / 410.4 MB, free: 25.98 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.348e-06/0.2537, allocations: 0 / 410.4 MB, free: 25.98 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.000312/0.254, allocations: 339.9 kB / 410.7 MB, free: 25.6 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.2541, allocations: 14.12 kB / 410.7 MB, free: 25.59 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.702e-05/0.2541, allocations: 4.875 kB / 410.7 MB, free: 25.59 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.519e-05/0.2542, allocations: 160.4 kB / 410.9 MB, free: 25.39 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.402e-05/0.2542, allocations: 4.375 kB / 410.9 MB, free: 25.39 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.271e-05/0.2542, allocations: 384 / 410.9 MB, free: 25.39 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.792e-05/0.2543, allocations: 39.31 kB / 410.9 MB, free: 25.34 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.767e-06/0.2543, allocations: 4.125 kB / 410.9 MB, free: 25.34 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.011e-05/0.2544, allocations: 10.67 kB / 411 MB, free: 25.33 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.818e-06/0.2544, allocations: 0 / 411 MB, free: 25.33 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.893e-05/0.2544, allocations: 4 kB / 411 MB, free: 25.33 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002706/0.2547, allocations: 245.9 kB / 411.2 MB, free: 25.04 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.917e-05/0.2547, allocations: 20.8 kB / 411.2 MB, free: 25.01 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.306e-05/0.2547, allocations: 24.84 kB / 411.2 MB, free: 24.98 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.887e-06/0.2548, allocations: 0 / 411.2 MB, free: 24.98 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001099/0.2549, allocations: 58.22 kB / 411.3 MB, free: 24.92 MB / 298.7 MB Notification: Performance of pre-optimization done (n=3): time 1.262e-06/0.2549, allocations: 0 / 411.3 MB, free: 24.92 MB / 298.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001372/0.255, allocations: 53.62 kB / 411.3 MB, free: 24.86 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.919e-05/0.2551, allocations: 51.41 kB / 411.4 MB, free: 24.8 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.221e-05/0.2551, allocations: 109.8 kB / 411.5 MB, free: 24.68 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.426e-06/0.2551, allocations: 25.7 kB / 411.5 MB, free: 24.65 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.542e-05/0.2552, allocations: 88.14 kB / 411.6 MB, free: 24.56 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.225e-05/0.2552, allocations: 11.83 kB / 411.6 MB, free: 24.55 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.737e-06/0.2552, allocations: 4 kB / 411.6 MB, free: 24.54 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.824e-05/0.2552, allocations: 314.8 kB / 411.9 MB, free: 24.23 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.817e-05/0.2553, allocations: 4 kB / 411.9 MB, free: 24.22 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.278e-05/0.2553, allocations: 21.7 kB / 412 MB, free: 24.2 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.638e-05/0.2553, allocations: 33.66 kB / 412 MB, free: 24.16 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.2553, allocations: 0 / 412 MB, free: 24.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 6.996e-05/0.2554, allocations: 57.62 kB / 412.1 MB, free: 24.09 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.151e-05/0.2554, allocations: 4 kB / 412.1 MB, free: 24.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.229e-06/0.2554, allocations: 0 / 412.1 MB, free: 24.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.2555, allocations: 3.938 kB / 412.1 MB, free: 24.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.503e-05/0.2555, allocations: 8 kB / 412.1 MB, free: 24.08 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.1e-05/0.2555, allocations: 3.984 kB / 412.1 MB, free: 24.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.781e-05/0.2556, allocations: 11.78 kB / 412.1 MB, free: 24.06 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.952e-06/0.2556, allocations: 4 kB / 412.1 MB, free: 24.06 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,impureRandom.y,globalSeed.seed,globalSeed.id_impure) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 4.827e-05/0.2556, allocations: 117.9 kB / 412.2 MB, free: 23.93 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.005e-06/0.2556, allocations: 3.938 kB / 412.2 MB, free: 23.93 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.85e-05/0.2557, allocations: 4.281 kB / 412.2 MB, free: 23.91 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.2557, allocations: 0 / 412.2 MB, free: 23.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.01e-07/0.2557, allocations: 0 / 412.2 MB, free: 23.91 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.504e-05/0.2557, allocations: 81.11 kB / 412.3 MB, free: 23.82 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.231e-05/0.2557, allocations: 11.98 kB / 412.3 MB, free: 23.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.218e-05/0.2557, allocations: 0 / 412.3 MB, free: 23.8 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.968e-05/0.2558, allocations: 0 / 412.3 MB, free: 23.8 MB / 298.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 7.268e-05/0.2558, allocations: 137.1 kB / 412.4 MB, free: 23.66 MB / 298.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 7.961e-05/0.2559, allocations: 222.8 kB / 412.7 MB, free: 23.43 MB / 298.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.903e-05/0.2559, allocations: 7.984 kB / 412.7 MB, free: 23.42 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.096e-05/0.256, allocations: 83.28 kB / 412.7 MB, free: 23.34 MB / 298.7 MB Notification: Performance of Backend: time 3.2e-07/0.256, allocations: 0 / 412.7 MB, free: 23.34 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005074/0.2565, allocations: 180.2 kB / 412.9 MB, free: 23.19 MB / 298.7 MB Notification: Performance of SimCode: time 0.0002467/0.2567, allocations: 0.5816 MB / 413.5 MB, free: 22.55 MB / 298.7 MB Error: Internal error GetVarIndexListByMapping: No Element for impureRandom_y found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: impureRandom_y (no alias) initial: no arrCref index:(1) [] Error: Internal error GetVarIndexListByMapping: No Element for impureRandom.y found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: impureRandom.y (no alias) initial: no arrCref index:(2) [] Error: Internal error GetVarIndexListByMapping: No Element for impureRandom.samplePeriod found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: impureRandom.samplePeriod (no alias) initial: 0.01 no arrCref index:(3) [] Error: Internal error GetVarIndexListByMapping: No Element for globalSeed.fixedSeed found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: globalSeed.fixedSeed (no alias) initial: 67867967 no arrCref index:(4) [] Error: Internal error GetVarIndexListByMapping: No Element for globalSeed.id_impure found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:1: globalSeed.id_impure (no alias) hideResult initial: no arrCref index:(5) [] Error: Internal error GetVarIndexListByMapping: No Element for globalSeed.seed found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:2: globalSeed.seed (no alias) initial: no arrCref index:(6) [] Error: Internal error GetVarIndexListByMapping: No Element for $whenCondition1 found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: $whenCondition1 (no alias) protected hideResult initial: no arrCref index:(7) [] Error: Internal error GetVarIndexListByMapping: No Element for globalSeed.enableNoise found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:0: globalSeed.enableNoise (no alias) initial: true no arrCref index:(8) [] Error: Internal error GetVarIndexListByMapping: No Element for globalSeed.useAutomaticSeed found! [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:14198:9-14198:123:writable] Error: Internal error invalid return value from getVarIndexByMapping for index:1: globalSeed.useAutomaticSeed (no alias) initial: false no arrCref index:(9) [] Error: Internal error GetVarIndexListByMapping: No Element for impureRandom_y found! Error: Internal error GetVarIndexListByMapping: No Element for impureRandom.y found! Error: Internal error GetVarIndexListByMapping: No Element for $whenCondition1 found! Error: Internal error GetVarIndexListByMapping: No Element for impureRandom.samplePeriod found! Error: Internal error GetVarIndexListByMapping: No Element for globalSeed.fixedSeed found! Error: Internal error GetVarIndexListByMapping: No Element for globalSeed.id_impure found! Error: Internal error GetVarIndexListByMapping: No Element for globalSeed.seed found! Error: Internal error GetVarIndexListByMapping: No Element for globalSeed.enableNoise found! Error: Internal error GetVarIndexListByMapping: No Element for globalSeed.useAutomaticSeed found!