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: "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009718/0.0009718, allocations: 197.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.256/1.256, allocations: 226.5 MB / 243.4 MB, free: 6.387 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007566/0.0007567, allocations: 102 kB / 295.5 MB, free: 6.633 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3005/0.3005, allocations: 44.82 MB / 392.3 MB, free: 35.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002681/0.0002682, allocations: 12 kB / 465.4 MB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2952/0.2955, allocations: 62.95 MB / 0.516 GB, free: 37.36 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.0005577/0.2961, allocations: 263.5 kB / 0.5162 GB, free: 37.18 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006383/0.2968, allocations: 412.9 kB / 0.5166 GB, free: 36.92 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.277e-05/0.2968, allocations: 0 / 0.5166 GB, free: 36.92 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 6.737e-05/0.2969, allocations: 0 / 0.5166 GB, free: 36.92 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001081/0.297, allocations: 6.812 kB / 0.5166 GB, free: 36.91 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.0004575/0.2975, allocations: 149.2 kB / 0.5167 GB, free: 36.84 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001035/0.2976, allocations: 66.5 kB / 0.5168 GB, free: 36.82 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.036e-05/0.2976, allocations: 6.109 kB / 0.5168 GB, free: 36.82 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.832e-05/0.2977, allocations: 41.25 kB / 0.5169 GB, free: 36.81 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.444e-05/0.2978, allocations: 20.77 kB / 0.5169 GB, free: 36.8 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.432e-05/0.2978, allocations: 2.75 kB / 0.5169 GB, free: 36.8 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001658/0.298, allocations: 83.33 kB / 0.517 GB, free: 36.78 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.246e-05/0.298, allocations: 26.28 kB / 0.517 GB, free: 36.77 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.393e-05/0.2981, allocations: 53.69 kB / 0.517 GB, free: 36.72 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001204/0.2982, allocations: 83.95 kB / 0.5171 GB, free: 36.7 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.2982, allocations: 3.938 kB / 0.5171 GB, free: 36.7 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2982, allocations: 4 kB / 0.5171 GB, free: 36.7 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.918e-06/0.2982, allocations: 0 / 0.5171 GB, free: 36.7 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.0003595/0.2986, allocations: 377.6 kB / 0.5175 GB, free: 36.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.2986, allocations: 8.875 kB / 0.5175 GB, free: 36.29 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.248e-05/0.2987, allocations: 38.08 kB / 0.5175 GB, free: 36.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.236e-05/0.2987, allocations: 10.75 kB / 0.5175 GB, free: 36.25 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001211/0.2988, allocations: 176.4 kB / 0.5177 GB, free: 36.05 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.408e-06/0.2989, allocations: 7.281 kB / 0.5177 GB, free: 36.05 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.451e-05/0.2989, allocations: 11.31 kB / 0.5177 GB, free: 36.04 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001543/0.299, allocations: 92.36 kB / 0.5178 GB, free: 35.99 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.657e-06/0.299, allocations: 7.219 kB / 0.5178 GB, free: 35.98 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.753e-05/0.2991, allocations: 2.938 kB / 0.5178 GB, free: 35.98 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.617e-06/0.2991, allocations: 0 / 0.5178 GB, free: 35.98 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.145e-05/0.2991, allocations: 19.22 kB / 0.5178 GB, free: 35.98 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001248/0.2993, allocations: 170 kB / 0.518 GB, free: 35.79 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.381e-05/0.2993, allocations: 45 kB / 0.518 GB, free: 35.75 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.617e-05/0.2994, allocations: 24.34 kB / 0.5181 GB, free: 35.74 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.304e-05/0.2994, allocations: 4 kB / 0.5181 GB, free: 35.73 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001873/0.2996, allocations: 134.4 kB / 0.5182 GB, free: 35.66 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.333e-06/0.2996, allocations: 0 / 0.5182 GB, free: 35.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.000226/0.2998, allocations: 121.6 kB / 0.5183 GB, free: 35.61 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.882e-05/0.2999, allocations: 71.98 kB / 0.5184 GB, free: 35.53 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.262e-05/0.2999, allocations: 96.77 kB / 0.5185 GB, free: 35.43 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.945e-05/0.2999, allocations: 28.73 kB / 0.5185 GB, free: 35.4 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.975e-05/0.3, allocations: 87.33 kB / 0.5186 GB, free: 35.31 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.215e-05/0.3, allocations: 21.66 kB / 0.5186 GB, free: 35.3 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.18e-06/0.3, allocations: 0 / 0.5186 GB, free: 35.3 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.408e-05/0.3001, allocations: 321 kB / 0.5189 GB, free: 34.98 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.054e-05/0.3001, allocations: 22.12 kB / 0.5189 GB, free: 34.97 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.218e-05/0.3002, allocations: 86.33 kB / 0.519 GB, free: 34.89 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001331/0.3003, allocations: 142 kB / 0.5192 GB, free: 34.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3003, allocations: 0 / 0.5192 GB, free: 34.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001707/0.3005, allocations: 165.6 kB / 0.5193 GB, free: 34.66 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.191e-05/0.3005, allocations: 31.8 kB / 0.5193 GB, free: 34.63 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.411e-06/0.3005, allocations: 6.969 kB / 0.5193 GB, free: 34.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.3005, allocations: 2.75 kB / 0.5194 GB, free: 34.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.975e-05/0.3006, allocations: 19.89 kB / 0.5194 GB, free: 34.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.201e-06/0.3007, allocations: 2.844 kB / 0.5194 GB, free: 34.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.48e-05/0.3007, allocations: 10.16 kB / 0.5194 GB, free: 34.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.093e-05/0.3007, allocations: 5.562 kB / 0.5194 GB, free: 34.62 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.0001049/0.3008, allocations: 126 kB / 0.5195 GB, free: 34.49 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.93e-05/0.3009, allocations: 13.97 kB / 0.5195 GB, free: 34.48 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.667e-05/0.3009, allocations: 10.69 kB / 0.5195 GB, free: 34.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.3009, allocations: 0 / 0.5195 GB, free: 34.48 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.3009, allocations: 0 / 0.5195 GB, free: 34.48 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.3009, allocations: 2.781 kB / 0.5195 GB, free: 34.48 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.127e-05/0.301, allocations: 168.4 kB / 0.5197 GB, free: 34.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-07/0.301, allocations: 0 / 0.5197 GB, free: 34.28 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.377e-05/0.3011, allocations: 14.23 kB / 0.5197 GB, free: 34.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.103e-06/0.3011, allocations: 2.781 kB / 0.5197 GB, free: 34.27 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.007e-06/0.3011, allocations: 0 / 0.5197 GB, free: 34.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.3011, allocations: 7.938 kB / 0.5197 GB, free: 34.27 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.3011, allocations: 0 / 0.5197 GB, free: 34.27 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001543/0.3013, allocations: 137.5 kB / 0.5199 GB, free: 34.18 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.877e-05/0.3013, allocations: 87.95 kB / 0.5199 GB, free: 34.07 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.65e-05/0.3013, allocations: 3.031 kB / 0.5199 GB, free: 34.07 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002236/0.3015, allocations: 37.33 kB / 0.52 GB, free: 34.06 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.363e-05/0.3016, allocations: 0 / 0.52 GB, free: 34.06 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.355e-05/0.3016, allocations: 9.453 kB / 0.52 GB, free: 34.06 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.884e-05/0.3016, allocations: 82.59 kB / 0.5201 GB, free: 33.98 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3016, allocations: 0 / 0.5201 GB, free: 33.98 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002628/0.3019, allocations: 37.62 kB / 0.5201 GB, free: 33.98 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.0005142/0.3024, allocations: 0.74 MB / 0.5208 GB, free: 33.33 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001562/0.3026, allocations: 131.4 kB / 0.5209 GB, free: 33.25 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3026, allocations: 448 / 0.5209 GB, free: 33.25 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.836e-05/0.3026, allocations: 28.91 kB / 0.521 GB, free: 33.24 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001454/0.3028, allocations: 6.938 kB / 0.521 GB, free: 33.23 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006379/0.3034, allocations: 0.5453 MB / 0.5215 GB, free: 32.77 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.513e-05/0.3035, allocations: 0.6814 MB / 0.5222 GB, free: 32.07 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.304e-05/0.3036, allocations: 20.59 kB / 0.5222 GB, free: 32.06 MB / 378.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3036, allocations: 0 / 0.5222 GB, free: 32.06 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.273/3.576, allocations: 1.812 MB / 0.524 GB, free: 31.91 MB / 378.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegers_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestRandomIntegers_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins1/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