Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001106/0.001106, allocations: 112.8 kB / 17.78 MB, free: 5.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 184.8 kB / 18.7 MB, free: 4.359 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 222.9 MB / 242.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2323/0.2323, allocations: 44.19 MB / 336.7 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001651/0.001651, allocations: 67.89 kB / 470.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4226/0.4243, allocations: 60.83 MB / 0.5189 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001932/0.4263, allocations: 0.5331 MB / 0.5194 GB, free: 3.277 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001073/0.4274, allocations: 446.5 kB / 0.5199 GB, free: 2.992 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.026e-05/0.4274, allocations: 0 / 0.5199 GB, free: 2.992 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001316/0.4276, allocations: 5.594 kB / 0.5199 GB, free: 2.988 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001779/0.4278, allocations: 7.078 kB / 0.5199 GB, free: 2.984 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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.0006652/0.4284, allocations: 168.8 kB / 0.52 GB, free: 2.906 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002062/0.4287, allocations: 83.55 kB / 0.5201 GB, free: 2.883 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.965e-05/0.4287, allocations: 7.312 kB / 0.5201 GB, free: 2.879 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.691e-05/0.4288, allocations: 42.14 kB / 0.5202 GB, free: 2.867 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.479e-05/0.4289, allocations: 19.55 kB / 0.5202 GB, free: 2.859 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.826e-05/0.4289, allocations: 2.406 kB / 0.5202 GB, free: 2.859 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000229/0.4292, allocations: 99.11 kB / 0.5203 GB, free: 2.828 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.024e-05/0.4292, allocations: 20.42 kB / 0.5203 GB, free: 2.82 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 7.626e-05/0.4293, allocations: 25.89 kB / 0.5203 GB, free: 2.809 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000301/0.4296, allocations: 132.8 kB / 0.5204 GB, free: 2.766 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.4296, allocations: 0 / 0.5204 GB, free: 2.766 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.4296, allocations: 0 / 0.5204 GB, free: 2.766 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.973e-06/0.4297, allocations: 5.375 kB / 0.5204 GB, free: 2.762 MB / 382.1 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.0006177/0.4303, allocations: 402.5 kB / 0.5208 GB, free: 2.355 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.3e-05/0.4303, allocations: 10.28 kB / 0.5208 GB, free: 2.355 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.467e-05/0.4304, allocations: 4.016 kB / 0.5208 GB, free: 2.355 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001769/0.4306, allocations: 189.2 kB / 0.521 GB, free: 2.148 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.593e-05/0.4306, allocations: 3.25 kB / 0.521 GB, free: 2.148 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.646e-05/0.4306, allocations: 6.797 kB / 0.521 GB, free: 2.145 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002503/0.4309, allocations: 88.36 kB / 0.5211 GB, free: 2.102 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.046e-05/0.4309, allocations: 192 / 0.5211 GB, free: 2.102 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.425e-05/0.4309, allocations: 9.734 kB / 0.5211 GB, free: 2.094 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.4309, allocations: 1.125 kB / 0.5211 GB, free: 2.094 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.202e-05/0.431, allocations: 22.3 kB / 0.5211 GB, free: 2.09 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001755/0.4312, allocations: 170.8 kB / 0.5213 GB, free: 1.895 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001024/0.4313, allocations: 47.17 kB / 0.5214 GB, free: 1.859 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.106e-05/0.4314, allocations: 22.42 kB / 0.5214 GB, free: 1.848 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.759e-05/0.4314, allocations: 1.875 kB / 0.5214 GB, free: 1.848 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002709/0.4317, allocations: 139.2 kB / 0.5215 GB, free: 1.77 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.543e-06/0.4317, allocations: 3.938 kB / 0.5215 GB, free: 1.766 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003289/0.432, allocations: 121.3 kB / 0.5216 GB, free: 1.711 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.167e-05/0.4321, allocations: 61.11 kB / 0.5217 GB, free: 1.645 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.823e-05/0.4321, allocations: 103 kB / 0.5218 GB, free: 1.539 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.74e-05/0.4322, allocations: 32.64 kB / 0.5218 GB, free: 1.504 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.083e-05/0.4322, allocations: 81.97 kB / 0.5219 GB, free: 1.422 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.373e-05/0.4323, allocations: 26.91 kB / 0.5219 GB, free: 1.402 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.732e-05/0.4323, allocations: 30.39 kB / 0.522 GB, free: 1.379 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.465e-05/0.4324, allocations: 318.8 kB / 0.5223 GB, free: 1.062 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.744e-05/0.4324, allocations: 25.56 kB / 0.5223 GB, free: 1.055 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.471e-05/0.4325, allocations: 75.3 kB / 0.5224 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002026/0.4327, allocations: 147.3 kB / 0.5225 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/0.4327, allocations: 1.438 kB / 0.5225 GB, free: 0.8516 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002411/0.433, allocations: 161.4 kB / 0.5226 GB, free: 0.75 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.535e-05/0.433, allocations: 36.89 kB / 0.5227 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.433, allocations: 2.969 kB / 0.5227 GB, free: 0.7148 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.4331, allocations: 6.344 kB / 0.5227 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00012/0.4332, allocations: 15.88 kB / 0.5227 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.085e-05/0.4332, allocations: 6.953 kB / 0.5227 GB, free: 0.707 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.027e-05/0.4333, allocations: 7.156 kB / 0.5227 GB, free: 0.7031 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.83e-05/0.4333, allocations: 10.28 kB / 0.5227 GB, free: 0.6992 MB / 382.1 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.000136/0.4334, allocations: 125.3 kB / 0.5228 GB, free: 0.582 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.923e-05/0.4335, allocations: 8 kB / 0.5229 GB, free: 0.5781 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.609e-05/0.4335, allocations: 15.09 kB / 0.5229 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.827e-06/0.4335, allocations: 1.641 kB / 0.5229 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.4335, allocations: 0 / 0.5229 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.4335, allocations: 1.688 kB / 0.5229 GB, free: 0.5625 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001399/0.4337, allocations: 173.3 kB / 0.523 GB, free: 372 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.4337, allocations: 3.938 kB / 0.523 GB, free: 368 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.679e-05/0.4337, allocations: 13.98 kB / 0.5231 GB, free: 360 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.417e-06/0.4337, allocations: 5.219 kB / 0.5231 GB, free: 356 kB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.256e-05/0.4338, allocations: 2.281 kB / 0.5231 GB, free: 356 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.4338, allocations: 0 / 0.5231 GB, free: 356 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.4338, allocations: 5.062 kB / 0.5231 GB, free: 352 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000204/0.434, allocations: 130.5 kB / 0.5232 GB, free: 264 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.087e-05/0.434, allocations: 91.02 kB / 0.5233 GB, free: 156 kB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.401e-05/0.4341, allocations: 5.672 kB / 0.5233 GB, free: 156 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000225/0.4343, allocations: 23.41 kB / 0.5233 GB, free: 148 kB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.572e-05/0.4343, allocations: 9.266 kB / 0.5233 GB, free: 144 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.643e-05/0.4343, allocations: 4.781 kB / 0.5233 GB, free: 144 kB / 382.1 MB Notification: Performance of sorting global known variables: time 2.894e-05/0.4344, allocations: 87.78 kB / 0.5234 GB, free: 60 kB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4344, allocations: 0 / 0.5234 GB, free: 60 kB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003083/0.4347, allocations: 40.98 kB / 0.5234 GB, free: 52 kB / 382.1 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.0004656/0.4352, allocations: 169 kB / 0.5236 GB, free: 15.94 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002707/0.4355, allocations: 127.5 kB / 0.5237 GB, free: 15.86 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.4355, allocations: 0 / 0.5237 GB, free: 15.86 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 7.191e-05/0.4355, allocations: 30.31 kB / 0.5238 GB, free: 15.85 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001729/0.4357, allocations: 10.75 kB / 0.5238 GB, free: 15.85 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004515/0.4362, allocations: 129.2 kB / 0.5239 GB, free: 15.74 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000333/0.4365, allocations: 0.6874 MB / 0.5246 GB, free: 15.04 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.419e-05/0.4366, allocations: 22.42 kB / 0.5246 GB, free: 15.03 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.147e-05/0.4366, allocations: 20.55 kB / 0.5246 GB, free: 15.02 MB / 398.1 MB Notification: Performance of SimCode: time 2.51e-07/0.4366, allocations: 0 / 0.5246 GB, free: 15.02 MB / 398.1 MB Notification: Performance of Templates: time 0.006157/0.4428, allocations: 1.998 MB / 0.5266 GB, free: 14.42 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches