Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegers.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Math.Random.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegers") translateModel(ModelicaTest.Math.Random.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001042/0.001043, allocations: 199.6 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.316/1.316, allocations: 226.5 MB / 243.4 MB, free: 6.379 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000842/0.0008421, allocations: 102.9 kB / 295.5 MB, free: 6.668 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3719/0.3719, allocations: 44.81 MB / 392.3 MB, free: 35.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003129/0.0003129, allocations: 8 kB / 465.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3171/0.3174, allocations: 62.95 MB / 0.5159 GB, free: 37.35 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.0006397/0.3181, allocations: 263.4 kB / 0.5161 GB, free: 37.17 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006993/0.3188, allocations: 409.3 kB / 0.5165 GB, free: 36.91 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.107e-05/0.3189, allocations: 4 kB / 0.5165 GB, free: 36.91 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 7.734e-05/0.3189, allocations: 6.969 kB / 0.5165 GB, free: 36.9 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001176/0.3191, allocations: 7.266 kB / 0.5165 GB, free: 36.9 MB / 378.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.0006075/0.3197, allocations: 141.1 kB / 0.5167 GB, free: 36.84 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001467/0.3198, allocations: 71.86 kB / 0.5167 GB, free: 36.81 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.774e-05/0.3199, allocations: 2.812 kB / 0.5167 GB, free: 36.81 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.35e-05/0.32, allocations: 41.58 kB / 0.5168 GB, free: 36.8 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.692e-05/0.3201, allocations: 16.27 kB / 0.5168 GB, free: 36.79 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.245e-05/0.3201, allocations: 6.906 kB / 0.5168 GB, free: 36.79 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002416/0.3203, allocations: 87.62 kB / 0.5169 GB, free: 36.77 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.19e-05/0.3204, allocations: 27.23 kB / 0.5169 GB, free: 36.75 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 9.03e-05/0.3205, allocations: 49.11 kB / 0.517 GB, free: 36.71 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002075/0.3208, allocations: 86.61 kB / 0.517 GB, free: 36.69 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.3208, allocations: 0 / 0.517 GB, free: 36.69 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3208, allocations: 3.938 kB / 0.517 GB, free: 36.69 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.3208, allocations: 0 / 0.517 GB, free: 36.69 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005774/0.3214, allocations: 372.7 kB / 0.5174 GB, free: 36.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.586e-05/0.3215, allocations: 13.53 kB / 0.5174 GB, free: 36.29 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.901e-05/0.3216, allocations: 10.59 kB / 0.5174 GB, free: 36.28 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002569/0.3218, allocations: 179.2 kB / 0.5176 GB, free: 36.08 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.655e-05/0.3219, allocations: 3.312 kB / 0.5176 GB, free: 36.08 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.189e-05/0.3219, allocations: 3.375 kB / 0.5176 GB, free: 36.08 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002959/0.3222, allocations: 91.94 kB / 0.5177 GB, free: 36.04 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.3222, allocations: 4.125 kB / 0.5177 GB, free: 36.03 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.257e-05/0.3223, allocations: 6.625 kB / 0.5177 GB, free: 36.03 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.135e-05/0.3223, allocations: 0 / 0.5177 GB, free: 36.03 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.93e-05/0.3224, allocations: 27.64 kB / 0.5177 GB, free: 36.02 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001926/0.3226, allocations: 168.9 kB / 0.5179 GB, free: 35.82 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.486e-05/0.3227, allocations: 45.38 kB / 0.5179 GB, free: 35.79 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.329e-05/0.3228, allocations: 23.77 kB / 0.5179 GB, free: 35.78 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.721e-05/0.3228, allocations: 0 / 0.5179 GB, free: 35.78 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002721/0.3231, allocations: 139.2 kB / 0.5181 GB, free: 35.7 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 2.124e-06/0.3231, allocations: 0 / 0.5181 GB, free: 35.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.000374/0.3235, allocations: 128.3 kB / 0.5182 GB, free: 35.64 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4e-05/0.3235, allocations: 54.38 kB / 0.5183 GB, free: 35.57 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.424e-05/0.3236, allocations: 103.2 kB / 0.5184 GB, free: 35.47 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.822e-05/0.3236, allocations: 32.7 kB / 0.5184 GB, free: 35.44 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.55e-05/0.3237, allocations: 80.14 kB / 0.5185 GB, free: 35.36 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.66e-05/0.3237, allocations: 27.5 kB / 0.5185 GB, free: 35.34 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.895e-06/0.3237, allocations: 3.031 kB / 0.5185 GB, free: 35.34 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.194e-05/0.3238, allocations: 314.8 kB / 0.5188 GB, free: 35.02 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.651e-05/0.3239, allocations: 30.81 kB / 0.5188 GB, free: 35.01 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.231e-05/0.324, allocations: 72.44 kB / 0.5189 GB, free: 34.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002385/0.3242, allocations: 143.4 kB / 0.519 GB, free: 34.81 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.3243, allocations: 7.938 kB / 0.519 GB, free: 34.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002916/0.3246, allocations: 162.6 kB / 0.5192 GB, free: 34.7 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.44e-05/0.3246, allocations: 35.23 kB / 0.5192 GB, free: 34.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/0.3246, allocations: 2.594 kB / 0.5192 GB, free: 34.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.918e-05/0.3247, allocations: 5.922 kB / 0.5192 GB, free: 34.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001367/0.3248, allocations: 15.75 kB / 0.5192 GB, free: 34.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.3248, allocations: 6.656 kB / 0.5192 GB, free: 34.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.247e-05/0.3249, allocations: 11.56 kB / 0.5193 GB, free: 34.65 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.7e-05/0.3249, allocations: 6.062 kB / 0.5193 GB, free: 34.65 MB / 378.7 MB Warning: Assuming fixed start value for the following 1 variables: y:DISCRETE(fixed = true ) type: Integer Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 13 (id,$PRE.cnt[3],cnt[3],$PRE.cnt[2],cnt[2],$PRE.cnt[1],cnt[1],$PRE.y,y,$whenCondition2,$whenCondition1,$PRE.samples,samples) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * 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.0001505/0.3251, allocations: 127.6 kB / 0.5194 GB, free: 34.53 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.162e-05/0.3251, allocations: 13.53 kB / 0.5194 GB, free: 34.52 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.517e-05/0.3252, allocations: 6.656 kB / 0.5194 GB, free: 34.52 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.3252, allocations: 0 / 0.5194 GB, free: 34.52 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.3252, allocations: 0 / 0.5194 GB, free: 34.52 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.3252, allocations: 4 kB / 0.5194 GB, free: 34.52 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001312/0.3254, allocations: 175 kB / 0.5196 GB, free: 34.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.564e-06/0.3254, allocations: 3.281 kB / 0.5196 GB, free: 34.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.251e-05/0.3254, allocations: 2.875 kB / 0.5196 GB, free: 34.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.559e-06/0.3254, allocations: 7.094 kB / 0.5196 GB, free: 34.31 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.274e-05/0.3255, allocations: 0 / 0.5196 GB, free: 34.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.3255, allocations: 3.281 kB / 0.5196 GB, free: 34.31 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.3255, allocations: 0 / 0.5196 GB, free: 34.31 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002527/0.3257, allocations: 141.3 kB / 0.5197 GB, free: 34.21 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.874e-05/0.3258, allocations: 91.89 kB / 0.5198 GB, free: 34.11 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.014e-05/0.3258, allocations: 2.844 kB / 0.5198 GB, free: 34.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000287/0.3261, allocations: 21.05 kB / 0.5198 GB, free: 34.11 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.556e-05/0.3262, allocations: 6.031 kB / 0.5198 GB, free: 34.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.624e-05/0.3262, allocations: 9.75 kB / 0.5199 GB, free: 34.11 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.505e-05/0.3262, allocations: 85.67 kB / 0.5199 GB, free: 34.03 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3262, allocations: 4 kB / 0.5199 GB, free: 34.02 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003618/0.3266, allocations: 37.38 kB / 0.52 GB, free: 34.02 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,y,cnt[1],cnt[2],cnt[3],samples) * Number of discrete states: 4 (cnt[1],cnt[2],cnt[3],samples) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0004833/0.3271, allocations: 174.4 kB / 0.5201 GB, free: 33.9 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002388/0.3274, allocations: 134.1 kB / 0.5203 GB, free: 33.81 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.3274, allocations: 0 / 0.5203 GB, free: 33.81 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.765e-05/0.3275, allocations: 28.14 kB / 0.5203 GB, free: 33.81 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002457/0.3277, allocations: 14.25 kB / 0.5203 GB, free: 33.8 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004154/0.3282, allocations: 177.9 kB / 0.5205 GB, free: 33.64 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000124/0.3283, allocations: 0.6854 MB / 0.5211 GB, free: 32.94 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.003e-05/0.3283, allocations: 17.38 kB / 0.5212 GB, free: 32.93 MB / 378.7 MB Notification: Performance of SimCode: time 3.21e-07/0.3284, allocations: 0 / 0.5212 GB, free: 32.93 MB / 378.7 MB Notification: Performance of Templates: time 0.004348/0.3327, allocations: 1.799 MB / 0.5229 GB, free: 32.77 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegers.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegers --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,y,cnt[1],cnt[2],cnt[3],avg,lowBound,highBound,samples Variables in the result:avg,cnt[1],cnt[2],cnt[3],highBound,lowBound,samples,time,y