Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002171/0.002171, allocations: 82.36 kB / 20.68 MB, free: 1.027 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002657/0.002657, allocations: 171.9 kB / 23.96 MB, free: 4.148 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.506/1.506, allocations: 177.1 MB / 204.3 MB, free: 9.176 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2262/0.2262, allocations: 34.28 MB / 295 MB, free: 14.56 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6001,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers") translateModel(ModelicaTest.Math.Random.TestRandomIntegers,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6001,variableFilter="time|y|cnt.1.|cnt.2.|cnt.3.|avg|lowBound|highBound|samples",fileNamePrefix="ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 5.15e-06/5.15e-06, allocations: 4 kB / 442.7 MB, free: 5.402 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.026e-05/3.541e-05, allocations: 2.281 kB / 442.7 MB, free: 5.398 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.002192/0.002228, allocations: 0.5322 MB / 443.2 MB, free: 4.867 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001274/0.003501, allocations: 430.3 kB / 443.6 MB, free: 4.445 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.67e-05/0.003548, allocations: 4 kB / 443.6 MB, free: 4.441 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 7.624e-05/0.003624, allocations: 0 / 443.6 MB, free: 4.441 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001476/0.003772, allocations: 15.86 kB / 443.6 MB, free: 4.426 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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.0009221/0.004694, allocations: 174.7 kB / 443.8 MB, free: 4.258 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000326/0.00502, allocations: 83.84 kB / 443.9 MB, free: 4.176 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.28e-05/0.005063, allocations: 0 / 443.9 MB, free: 4.176 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001419/0.005205, allocations: 47.95 kB / 443.9 MB, free: 4.129 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.486e-05/0.005279, allocations: 15.91 kB / 444 MB, free: 4.113 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 4.443e-05/0.005324, allocations: 8 kB / 444 MB, free: 4.105 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004092/0.005733, allocations: 131.7 kB / 444.1 MB, free: 3.977 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.843e-05/0.005811, allocations: 19.97 kB / 444.1 MB, free: 3.957 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.862e-05/0.00588, allocations: 27.89 kB / 444.1 MB, free: 3.93 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003853/0.006265, allocations: 155.6 kB / 444.3 MB, free: 3.777 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.846e-06/0.006268, allocations: 0 / 444.3 MB, free: 3.777 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.006269, allocations: 0 / 444.3 MB, free: 3.777 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.589e-06/0.006274, allocations: 0 / 444.3 MB, free: 3.777 MB / 366.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.0007312/0.007005, allocations: 331.7 kB / 444.6 MB, free: 3.414 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.007046, allocations: 8.031 kB / 444.6 MB, free: 3.406 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.887e-05/0.007124, allocations: 12.94 kB / 444.6 MB, free: 3.395 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000244/0.007369, allocations: 125.7 kB / 444.8 MB, free: 3.246 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.442e-05/0.007393, allocations: 12.34 kB / 444.8 MB, free: 3.234 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.385e-05/0.007417, allocations: 4.375 kB / 444.8 MB, free: 3.23 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002866/0.007703, allocations: 90.14 kB / 444.9 MB, free: 3.137 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.007714, allocations: 192 / 444.9 MB, free: 3.137 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.532e-05/0.007749, allocations: 12.36 kB / 444.9 MB, free: 3.125 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.81e-06/0.007755, allocations: 384 / 444.9 MB, free: 3.125 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.239e-05/0.007847, allocations: 23.92 kB / 444.9 MB, free: 3.102 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002408/0.008088, allocations: 113.2 kB / 445 MB, free: 2.961 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001496/0.008238, allocations: 42.5 kB / 445.1 MB, free: 2.91 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.952e-05/0.008307, allocations: 28.91 kB / 445.1 MB, free: 2.879 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.703e-05/0.008334, allocations: 4 kB / 445.1 MB, free: 2.875 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003799/0.008714, allocations: 127.3 kB / 445.2 MB, free: 2.738 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 2.565e-06/0.008717, allocations: 0 / 445.2 MB, free: 2.738 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004345/0.009151, allocations: 125.8 kB / 445.3 MB, free: 2.609 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001098/0.009261, allocations: 63.33 kB / 445.4 MB, free: 2.535 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001099/0.009371, allocations: 101.8 kB / 445.5 MB, free: 2.426 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.842e-05/0.009419, allocations: 33.7 kB / 445.5 MB, free: 2.387 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.98e-05/0.009519, allocations: 88.12 kB / 445.6 MB, free: 2.297 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.298e-05/0.009562, allocations: 19.86 kB / 445.6 MB, free: 2.277 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.653e-05/0.009639, allocations: 33.7 kB / 445.7 MB, free: 2.238 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001718/0.00981, allocations: 314.8 kB / 446 MB, free: 1.922 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.697e-05/0.009907, allocations: 53.67 kB / 446 MB, free: 1.863 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001508/0.01006, allocations: 96.56 kB / 446.1 MB, free: 1.738 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002942/0.01035, allocations: 152.4 kB / 446.3 MB, free: 1.559 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.01036, allocations: 0 / 446.3 MB, free: 1.559 MB / 366.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003795/0.01074, allocations: 188.8 kB / 446.5 MB, free: 1.355 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.614e-05/0.01078, allocations: 36.2 kB / 446.5 MB, free: 1.316 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.01079, allocations: 0 / 446.5 MB, free: 1.316 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.784e-05/0.01082, allocations: 12.2 kB / 446.5 MB, free: 1.305 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001423/0.01096, allocations: 12 kB / 446.5 MB, free: 1.293 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.469e-05/0.01097, allocations: 11.88 kB / 446.5 MB, free: 1.281 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.868e-05/0.01105, allocations: 3.953 kB / 446.5 MB, free: 1.277 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.302e-05/0.01107, allocations: 15.98 kB / 446.5 MB, free: 1.262 MB / 366.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.0001931/0.01127, allocations: 122.7 kB / 446.7 MB, free: 1.133 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.139e-05/0.01131, allocations: 4 kB / 446.7 MB, free: 1.129 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.001e-05/0.01136, allocations: 12.11 kB / 446.7 MB, free: 1.113 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.01136, allocations: 7.938 kB / 446.7 MB, free: 1.105 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.269e-05/0.01137, allocations: 12 kB / 446.7 MB, free: 1.094 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.01138, allocations: 0 / 446.7 MB, free: 1.094 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001913/0.01157, allocations: 117.2 kB / 446.8 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.01157, allocations: 0 / 446.8 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.974e-05/0.01162, allocations: 4 kB / 446.8 MB, free: 0.9453 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.496e-06/0.01162, allocations: 0 / 446.8 MB, free: 0.9453 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.591e-05/0.01164, allocations: 7.922 kB / 446.8 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.01164, allocations: 0 / 446.8 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.01164, allocations: 4 kB / 446.8 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003232/0.01197, allocations: 133 kB / 447 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.235e-05/0.01198, allocations: 8.141 kB / 447 MB, free: 0.7773 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.272e-05/0.012, allocations: 7.938 kB / 447 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002302/0.01223, allocations: 23.95 kB / 447 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.663e-05/0.01227, allocations: 4 kB / 447 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.23e-05/0.01229, allocations: 15.86 kB / 447 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.965e-05/0.01235, allocations: 79.28 kB / 447.1 MB, free: 0.6484 MB / 366.1 MB Notification: Performance of sort global known variables: time 5e-08/0.01235, allocations: 0 / 447.1 MB, free: 0.6484 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000352/0.0127, allocations: 43.92 kB / 447.1 MB, free: 0.6055 MB / 366.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.0005579/0.01326, allocations: 187.8 kB / 447.3 MB, free: 448 kB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002671/0.01353, allocations: 149 kB / 447.5 MB, free: 280 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.01353, allocations: 3.938 kB / 447.5 MB, free: 276 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.564e-05/0.0136, allocations: 23.98 kB / 447.5 MB, free: 252 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001816/0.01378, allocations: 8.438 kB / 447.5 MB, free: 244 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004434/0.01422, allocations: 144.8 kB / 447.6 MB, free: 72 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1639/0.1781, allocations: 71.28 kB / 447.7 MB, free: 18.94 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 8.36e-05/0.1782, allocations: 11.61 kB / 447.7 MB, free: 18.94 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.776e-05/0.1782, allocations: 14.45 kB / 447.7 MB, free: 18.93 MB / 366.1 MB Notification: Performance of SimCode: time 6.81e-07/0.1782, allocations: 0 / 447.7 MB, free: 18.93 MB / 366.1 MB Notification: Performance of Templates: time 0.005664/0.1839, allocations: 2.088 MB / 449.8 MB, free: 18.8 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.077652234584093]