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.001478/0.001478, allocations: 200 kB / 15.8 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.258/1.258, allocations: 226.6 MB / 243.1 MB, free: 14.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000767/0.000767, allocations: 99.31 kB / 295.1 MB, free: 10.01 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1819/0.1819, allocations: 44.84 MB / 392 MB, free: 9.281 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002411/0.0002411, allocations: 8 kB / 464.7 MB, free: 49.75 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0885/0.08876, allocations: 62.95 MB / 0.5153 GB, free: 2.754 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.0005548/0.08934, allocations: 262 kB / 0.5156 GB, free: 2.496 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006949/0.09005, allocations: 411 kB / 0.516 GB, free: 2.094 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.924e-05/0.09009, allocations: 0 / 0.516 GB, free: 2.094 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 6.684e-05/0.09016, allocations: 3.938 kB / 0.516 GB, free: 2.09 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 9.857e-05/0.09027, allocations: 7.984 kB / 0.516 GB, free: 2.082 MB / 346.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.0004446/0.09072, allocations: 146.3 kB / 0.5161 GB, free: 1.941 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 9.892e-05/0.09083, allocations: 67.84 kB / 0.5162 GB, free: 1.875 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.82e-05/0.09087, allocations: 4 kB / 0.5162 GB, free: 1.871 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.369e-05/0.09093, allocations: 31.97 kB / 0.5162 GB, free: 1.84 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.268e-05/0.09099, allocations: 27.89 kB / 0.5162 GB, free: 1.812 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.48e-05/0.09103, allocations: 4 kB / 0.5162 GB, free: 1.809 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001513/0.09118, allocations: 91.84 kB / 0.5163 GB, free: 1.719 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 3.981e-05/0.09123, allocations: 19.97 kB / 0.5163 GB, free: 1.699 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 3.165e-05/0.09127, allocations: 29.64 kB / 0.5164 GB, free: 1.664 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001346/0.09141, allocations: 91.8 kB / 0.5165 GB, free: 1.574 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.09142, allocations: 0 / 0.5165 GB, free: 1.574 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.09143, allocations: 4 kB / 0.5165 GB, free: 1.57 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.881e-06/0.09144, allocations: 0 / 0.5165 GB, free: 1.57 MB / 346.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.000419/0.09186, allocations: 378.9 kB / 0.5168 GB, free: 1.148 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/0.09192, allocations: 8.031 kB / 0.5168 GB, free: 1.141 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.36e-05/0.09197, allocations: 7.906 kB / 0.5168 GB, free: 1.133 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001648/0.09214, allocations: 186.9 kB / 0.517 GB, free: 0.9102 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.025e-05/0.09216, allocations: 0 / 0.517 GB, free: 0.9102 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.532e-05/0.09218, allocations: 7.984 kB / 0.517 GB, free: 0.9023 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001652/0.09235, allocations: 85.64 kB / 0.5171 GB, free: 0.8125 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.771e-06/0.09236, allocations: 0 / 0.5171 GB, free: 0.8125 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.689e-05/0.09238, allocations: 0 / 0.5171 GB, free: 0.8125 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.486e-06/0.09239, allocations: 0 / 0.5171 GB, free: 0.8125 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.794e-05/0.09245, allocations: 31.91 kB / 0.5171 GB, free: 0.7812 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001614/0.09262, allocations: 169.6 kB / 0.5173 GB, free: 0.5664 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.472e-05/0.0927, allocations: 50.56 kB / 0.5174 GB, free: 0.5078 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.882e-05/0.09275, allocations: 20.91 kB / 0.5174 GB, free: 496 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.092e-05/0.09277, allocations: 4 kB / 0.5174 GB, free: 492 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002202/0.09299, allocations: 135.2 kB / 0.5175 GB, free: 344 kB / 346.7 MB Notification: Performance of pre-optimization done (n=10): time 1.333e-06/0.093, allocations: 0 / 0.5175 GB, free: 344 kB / 346.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002513/0.09326, allocations: 117.5 kB / 0.5176 GB, free: 220 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.253e-05/0.0933, allocations: 59.55 kB / 0.5177 GB, free: 148 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.648e-05/0.09336, allocations: 101.8 kB / 0.5178 GB, free: 36 kB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.1692/0.2626, allocations: 30.28 kB / 0.5178 GB, free: 11.65 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.423e-05/0.2626, allocations: 81.02 kB / 0.5179 GB, free: 11.57 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.997e-05/0.2627, allocations: 25.66 kB / 0.5179 GB, free: 11.56 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.516e-06/0.2627, allocations: 3.469 kB / 0.5179 GB, free: 11.56 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 4.966e-05/0.2628, allocations: 318.2 kB / 0.5182 GB, free: 11.25 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.475e-05/0.2628, allocations: 22.22 kB / 0.5182 GB, free: 11.25 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.219e-05/0.2629, allocations: 79 kB / 0.5183 GB, free: 11.19 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.592e-05/0.263, allocations: 64.98 kB / 0.5184 GB, free: 11.16 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.263, allocations: 3.141 kB / 0.5184 GB, free: 11.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002266/0.2633, allocations: 158.5 kB / 0.5185 GB, free: 11.09 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.619e-05/0.2633, allocations: 33.72 kB / 0.5186 GB, free: 11.06 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.2633, allocations: 4.906 kB / 0.5186 GB, free: 11.06 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.623e-05/0.2633, allocations: 3.031 kB / 0.5186 GB, free: 11.06 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001143/0.2634, allocations: 19.97 kB / 0.5186 GB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.2635, allocations: 3.469 kB / 0.5186 GB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.226e-05/0.2635, allocations: 14.39 kB / 0.5186 GB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.476e-05/0.2635, allocations: 6.25 kB / 0.5186 GB, free: 11.05 MB / 346.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.0001268/0.2637, allocations: 134 kB / 0.5187 GB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.311e-05/0.2637, allocations: 11.67 kB / 0.5187 GB, free: 10.93 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.538e-05/0.2637, allocations: 8.031 kB / 0.5187 GB, free: 10.92 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.2637, allocations: 1.781 kB / 0.5188 GB, free: 10.92 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.2637, allocations: 2.25 kB / 0.5188 GB, free: 10.92 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.2638, allocations: 0.5156 kB / 0.5188 GB, free: 10.92 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001148/0.2639, allocations: 166.9 kB / 0.5189 GB, free: 10.73 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.2639, allocations: 1.25 kB / 0.5189 GB, free: 10.73 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.692e-05/0.2639, allocations: 10.69 kB / 0.5189 GB, free: 10.73 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.2639, allocations: 0.625 kB / 0.5189 GB, free: 10.73 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.19e-05/0.264, allocations: 7.609 kB / 0.5189 GB, free: 10.73 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.264, allocations: 1.969 kB / 0.5189 GB, free: 10.73 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.264, allocations: 0.6562 kB / 0.5189 GB, free: 10.73 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001875/0.2642, allocations: 138 kB / 0.5191 GB, free: 10.66 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.892e-05/0.2642, allocations: 79.58 kB / 0.5191 GB, free: 10.56 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.145e-05/0.2642, allocations: 8.984 kB / 0.5192 GB, free: 10.56 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002263/0.2644, allocations: 32.81 kB / 0.5192 GB, free: 10.56 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.288e-05/0.2645, allocations: 6.203 kB / 0.5192 GB, free: 10.56 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.616e-05/0.2645, allocations: 6.719 kB / 0.5192 GB, free: 10.56 MB / 346.7 MB Notification: Performance of sorting global known variables: time 2.136e-05/0.2645, allocations: 80.31 kB / 0.5193 GB, free: 10.48 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2645, allocations: 0 / 0.5193 GB, free: 10.48 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002753/0.2648, allocations: 42.62 kB / 0.5193 GB, free: 10.48 MB / 346.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.0003166/0.2651, allocations: 174.8 kB / 0.5195 GB, free: 10.38 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001845/0.2653, allocations: 128.2 kB / 0.5196 GB, free: 10.31 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.2653, allocations: 0.7812 kB / 0.5196 GB, free: 10.31 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.968e-05/0.2654, allocations: 32.33 kB / 0.5196 GB, free: 10.31 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001475/0.2656, allocations: 12.02 kB / 0.5196 GB, free: 10.3 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003026/0.2659, allocations: 177.7 kB / 0.5198 GB, free: 10.16 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.489e-05/0.266, allocations: 0.6847 MB / 0.5205 GB, free: 9.461 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.307e-05/0.266, allocations: 16.36 kB / 0.5205 GB, free: 9.457 MB / 346.7 MB Notification: Performance of SimCode: time 2.2e-07/0.266, allocations: 0 / 0.5205 GB, free: 9.457 MB / 346.7 MB Notification: Performance of Templates: time 0.003445/0.2695, allocations: 1.792 MB / 0.5222 GB, free: 9.309 MB / 346.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,id,lowBound,n,nrSigma,samples,time,y