Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_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_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_ModelicaTest.Math.Random.TestRandomIntegers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001148/0.001148, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.417/1.417, allocations: 226.7 MB / 245.5 MB, free: 6.961 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009597/0.0009597, allocations: 103.8 kB / 296.7 MB, free: 6.461 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3295/0.3295, allocations: 44.83 MB / 392.7 MB, free: 34.73 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001158/0.001158, allocations: 63.89 kB / 465.5 MB, free: 12.09 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3107/0.3118, allocations: 62.02 MB / 0.5152 GB, free: 37.75 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.00155/0.3134, allocations: 0.5931 MB / 0.5157 GB, free: 37.38 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007693/0.3142, allocations: 446.7 kB / 0.5162 GB, free: 37.1 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.559e-05/0.3143, allocations: 3.938 kB / 0.5162 GB, free: 37.09 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.671e-05/0.3144, allocations: 0 / 0.5162 GB, free: 37.09 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001101/0.3145, allocations: 10.84 kB / 0.5162 GB, free: 37.09 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.0004688/0.315, allocations: 150.8 kB / 0.5163 GB, free: 37.01 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001211/0.3151, allocations: 78.89 kB / 0.5164 GB, free: 36.99 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.061e-05/0.3151, allocations: 6.828 kB / 0.5164 GB, free: 36.99 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.635e-05/0.3152, allocations: 39.92 kB / 0.5164 GB, free: 36.98 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.454e-05/0.3153, allocations: 28.11 kB / 0.5165 GB, free: 36.96 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.503e-05/0.3153, allocations: 2.844 kB / 0.5165 GB, free: 36.96 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001594/0.3155, allocations: 92.03 kB / 0.5166 GB, free: 36.94 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.434e-05/0.3155, allocations: 22.97 kB / 0.5166 GB, free: 36.93 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.876e-05/0.3156, allocations: 24.03 kB / 0.5166 GB, free: 36.92 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001844/0.3158, allocations: 124.4 kB / 0.5167 GB, free: 36.88 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.3158, allocations: 4 kB / 0.5167 GB, free: 36.88 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.3158, allocations: 3.938 kB / 0.5167 GB, free: 36.88 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.028e-06/0.3158, allocations: 0 / 0.5167 GB, free: 36.88 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.0004689/0.3163, allocations: 407.1 kB / 0.5171 GB, free: 36.47 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.3163, allocations: 8.062 kB / 0.5171 GB, free: 36.47 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.276e-05/0.3164, allocations: 7.594 kB / 0.5171 GB, free: 36.46 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001497/0.3165, allocations: 182 kB / 0.5173 GB, free: 36.27 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.197e-05/0.3166, allocations: 3.312 kB / 0.5173 GB, free: 36.27 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.309e-05/0.3166, allocations: 7.281 kB / 0.5173 GB, free: 36.26 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00018/0.3168, allocations: 91.89 kB / 0.5174 GB, free: 36.21 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.3168, allocations: 192 / 0.5174 GB, free: 36.21 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.244e-05/0.3168, allocations: 10.88 kB / 0.5174 GB, free: 36.21 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.3168, allocations: 0 / 0.5174 GB, free: 36.21 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.793e-05/0.3169, allocations: 26.16 kB / 0.5174 GB, free: 36.2 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001529/0.317, allocations: 167.3 kB / 0.5176 GB, free: 36 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.631e-05/0.3171, allocations: 46.64 kB / 0.5176 GB, free: 35.97 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.902e-05/0.3172, allocations: 20.94 kB / 0.5177 GB, free: 35.96 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.571e-05/0.3172, allocations: 6.938 kB / 0.5177 GB, free: 35.96 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002248/0.3174, allocations: 132.8 kB / 0.5178 GB, free: 35.88 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.443e-06/0.3174, allocations: 2.781 kB / 0.5178 GB, free: 35.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002874/0.3177, allocations: 129.4 kB / 0.5179 GB, free: 35.82 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.888e-05/0.3178, allocations: 61.98 kB / 0.518 GB, free: 35.75 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.614e-05/0.3178, allocations: 95.5 kB / 0.5181 GB, free: 35.65 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.717e-05/0.3179, allocations: 32.61 kB / 0.5181 GB, free: 35.62 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.724e-05/0.3179, allocations: 82.86 kB / 0.5182 GB, free: 35.54 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.405e-05/0.3179, allocations: 21.59 kB / 0.5182 GB, free: 35.52 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.911e-05/0.318, allocations: 37.14 kB / 0.5182 GB, free: 35.49 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.257e-05/0.318, allocations: 314.8 kB / 0.5185 GB, free: 35.18 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.171e-05/0.318, allocations: 31.75 kB / 0.5186 GB, free: 35.16 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.754e-05/0.3181, allocations: 73.8 kB / 0.5186 GB, free: 35.09 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001401/0.3183, allocations: 142 kB / 0.5188 GB, free: 34.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.3183, allocations: 6.234 kB / 0.5188 GB, free: 34.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001749/0.3184, allocations: 160 kB / 0.5189 GB, free: 34.86 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.767e-05/0.3185, allocations: 42.89 kB / 0.519 GB, free: 34.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.3185, allocations: 3.984 kB / 0.519 GB, free: 34.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.3185, allocations: 2.938 kB / 0.519 GB, free: 34.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001034/0.3186, allocations: 17.62 kB / 0.519 GB, free: 34.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/0.3186, allocations: 6.812 kB / 0.519 GB, free: 34.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.464e-05/0.3187, allocations: 10.69 kB / 0.519 GB, free: 34.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.188e-05/0.3187, allocations: 5.812 kB / 0.519 GB, free: 34.81 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,cnt[3],$PRE.cnt[3],cnt[2],$PRE.cnt[2],cnt[1],$PRE.cnt[1],$PRE.y,y,$whenCondition2,$whenCondition1,samples,$PRE.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000107/0.3188, allocations: 130.5 kB / 0.5191 GB, free: 34.68 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.372e-05/0.3188, allocations: 6.781 kB / 0.5191 GB, free: 34.68 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.824e-05/0.3189, allocations: 3.969 kB / 0.5191 GB, free: 34.68 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.3189, allocations: 2.938 kB / 0.5192 GB, free: 34.68 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.3189, allocations: 4.062 kB / 0.5192 GB, free: 34.67 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.3189, allocations: 3.328 kB / 0.5192 GB, free: 34.67 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.262e-05/0.319, allocations: 177 kB / 0.5193 GB, free: 34.47 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.319, allocations: 0 / 0.5193 GB, free: 34.47 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.095e-05/0.319, allocations: 5.781 kB / 0.5193 GB, free: 34.47 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.3191, allocations: 3.938 kB / 0.5193 GB, free: 34.46 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.819e-06/0.3191, allocations: 7.938 kB / 0.5193 GB, free: 34.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.3191, allocations: 2.906 kB / 0.5193 GB, free: 34.46 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.3191, allocations: 0 / 0.5193 GB, free: 34.46 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003233/0.3194, allocations: 0.7021 MB / 0.52 GB, free: 33.78 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.112e-05/0.3194, allocations: 87.77 kB / 0.5201 GB, free: 33.68 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.808e-05/0.3195, allocations: 7.031 kB / 0.5201 GB, free: 33.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001761/0.3196, allocations: 19.5 kB / 0.5201 GB, free: 33.67 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.564e-05/0.3197, allocations: 6.219 kB / 0.5201 GB, free: 33.67 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.409e-05/0.3197, allocations: 5.906 kB / 0.5202 GB, free: 33.67 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.112e-05/0.3197, allocations: 82.31 kB / 0.5202 GB, free: 33.59 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3197, allocations: 0 / 0.5202 GB, free: 33.59 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003845/0.3201, allocations: 45.09 kB / 0.5203 GB, free: 33.59 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003095/0.3204, allocations: 177.2 kB / 0.5204 GB, free: 33.46 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001627/0.3206, allocations: 122.7 kB / 0.5206 GB, free: 33.38 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3206, allocations: 0 / 0.5206 GB, free: 33.38 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.99e-05/0.3207, allocations: 36.91 kB / 0.5206 GB, free: 33.37 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001421/0.3208, allocations: 15.84 kB / 0.5206 GB, free: 33.37 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003342/0.3212, allocations: 270.5 kB / 0.5209 GB, free: 33.12 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001036/0.3213, allocations: 0.6861 MB / 0.5215 GB, free: 32.42 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 4.982e-05/0.3213, allocations: 12.25 kB / 0.5215 GB, free: 32.42 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.02e-05/0.3214, allocations: 20.17 kB / 0.5216 GB, free: 32.41 MB / 378.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3214, allocations: 0 / 0.5216 GB, free: 32.41 MB / 378.7 MB Notification: Performance of Templates: time 0.003819/0.3252, allocations: 1.97 MB / 0.5235 GB, free: 32.23 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches