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.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.001365/0.001365, 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.001495/0.001495, allocations: 163.8 kB / 23.95 MB, free: 4.156 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.394/1.394, allocations: 177.1 MB / 204.3 MB, free: 9.184 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2035/0.2035, allocations: 32.82 MB / 293.5 MB, free: 36 kB / 270.1 MB " [Timeout remaining time 180] 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.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.0.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.0.0_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.913e-06/1.913e-06, allocations: 0 / 440.1 MB, free: 8.16 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.201e-05/4.392e-05, allocations: 9.312 kB / 440.1 MB, free: 8.152 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001667/0.001711, allocations: 0.5361 MB / 440.6 MB, free: 7.617 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001018/0.002729, allocations: 422.4 kB / 441 MB, free: 7.203 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.791e-05/0.002767, allocations: 0 / 441 MB, free: 7.203 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 9.536e-05/0.002862, allocations: 3.938 kB / 441 MB, free: 7.199 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001401/0.003002, allocations: 15.86 kB / 441.1 MB, free: 7.184 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.0007657/0.003768, allocations: 174.1 kB / 441.2 MB, free: 7.016 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002139/0.003982, allocations: 83.8 kB / 441.3 MB, free: 6.934 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.019e-05/0.004032, allocations: 3.984 kB / 441.3 MB, free: 6.93 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001173/0.004149, allocations: 51.89 kB / 441.4 MB, free: 6.879 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.472e-05/0.004214, allocations: 15.97 kB / 441.4 MB, free: 6.863 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.661e-05/0.004251, allocations: 4 kB / 441.4 MB, free: 6.859 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003044/0.004555, allocations: 119.8 kB / 441.5 MB, free: 6.742 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.105e-05/0.004636, allocations: 31.89 kB / 441.5 MB, free: 6.711 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.138e-05/0.004698, allocations: 19.97 kB / 441.6 MB, free: 6.691 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003628/0.00506, allocations: 151.6 kB / 441.7 MB, free: 6.543 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.005065, allocations: 0 / 441.7 MB, free: 6.543 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.005067, allocations: 4 kB / 441.7 MB, free: 6.539 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.069e-05/0.005078, allocations: 4 kB / 441.7 MB, free: 6.535 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.0007112/0.005789, allocations: 339.7 kB / 442 MB, free: 6.164 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.005832, allocations: 8.031 kB / 442.1 MB, free: 6.156 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.64e-05/0.005898, allocations: 4.938 kB / 442.1 MB, free: 6.152 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002074/0.006106, allocations: 125.7 kB / 442.2 MB, free: 6.004 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.938e-06/0.006115, allocations: 4.375 kB / 442.2 MB, free: 6 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.883e-05/0.006134, allocations: 384 / 442.2 MB, free: 6 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002412/0.006375, allocations: 98.19 kB / 442.3 MB, free: 5.898 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.307e-05/0.006389, allocations: 4.172 kB / 442.3 MB, free: 5.895 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.014e-05/0.006409, allocations: 8.312 kB / 442.3 MB, free: 5.887 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.006414, allocations: 4.375 kB / 442.3 MB, free: 5.883 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.837e-05/0.006492, allocations: 27.86 kB / 442.3 MB, free: 5.855 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001874/0.00668, allocations: 109.3 kB / 442.4 MB, free: 5.719 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001043/0.006784, allocations: 42.62 kB / 442.5 MB, free: 5.668 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.083e-05/0.006845, allocations: 28.91 kB / 442.5 MB, free: 5.637 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.575e-05/0.00686, allocations: 0 / 442.5 MB, free: 5.637 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002647/0.007125, allocations: 127.3 kB / 442.6 MB, free: 5.5 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.684e-06/0.007127, allocations: 4 kB / 442.6 MB, free: 5.496 MB / 366.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003545/0.007481, allocations: 129.5 kB / 442.8 MB, free: 5.363 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.193e-05/0.007533, allocations: 55.41 kB / 442.8 MB, free: 5.297 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001008/0.007634, allocations: 101.8 kB / 442.9 MB, free: 5.188 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.154e-05/0.007675, allocations: 37.69 kB / 442.9 MB, free: 5.145 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.587e-05/0.007721, allocations: 80.14 kB / 443 MB, free: 5.062 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.075e-05/0.007762, allocations: 23.8 kB / 443 MB, free: 5.039 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.96e-05/0.007822, allocations: 33.7 kB / 443.1 MB, free: 5 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001771/0.007999, allocations: 318.8 kB / 443.4 MB, free: 4.68 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.159e-05/0.00807, allocations: 45.69 kB / 443.4 MB, free: 4.629 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000111/0.008181, allocations: 104.6 kB / 443.5 MB, free: 4.496 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002822/0.008464, allocations: 148.4 kB / 443.7 MB, free: 4.32 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.008466, allocations: 0 / 443.7 MB, free: 4.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003636/0.008829, allocations: 192.8 kB / 443.9 MB, free: 4.113 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.018e-05/0.008869, allocations: 33.69 kB / 443.9 MB, free: 4.074 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.186e-05/0.008881, allocations: 7.984 kB / 443.9 MB, free: 4.066 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.879e-05/0.0089, allocations: 4 kB / 443.9 MB, free: 4.062 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001219/0.009022, allocations: 12 kB / 443.9 MB, free: 4.051 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.468e-05/0.009037, allocations: 11.86 kB / 443.9 MB, free: 4.039 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.623e-05/0.009093, allocations: 11.95 kB / 444 MB, free: 4.027 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.573e-05/0.009109, allocations: 8 kB / 444 MB, free: 4.02 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.000178/0.009287, allocations: 122.7 kB / 444.1 MB, free: 3.891 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.143e-05/0.009318, allocations: 7.984 kB / 444.1 MB, free: 3.883 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.809e-05/0.009366, allocations: 8.406 kB / 444.1 MB, free: 3.871 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.009369, allocations: 0 / 444.1 MB, free: 3.871 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.765e-06/0.009377, allocations: 3.938 kB / 444.1 MB, free: 3.867 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.00938, allocations: 3.938 kB / 444.1 MB, free: 3.863 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002139/0.009594, allocations: 125.3 kB / 444.2 MB, free: 3.711 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.009595, allocations: 0 / 444.2 MB, free: 3.711 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.822e-05/0.009634, allocations: 11.94 kB / 444.2 MB, free: 3.699 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.009636, allocations: 4 kB / 444.2 MB, free: 3.695 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.494e-05/0.009651, allocations: 7.984 kB / 444.2 MB, free: 3.688 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.009653, allocations: 0 / 444.2 MB, free: 3.688 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.009654, allocations: 0 / 444.2 MB, free: 3.688 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00025/0.009904, allocations: 133 kB / 444.4 MB, free: 3.539 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.044e-05/0.009914, allocations: 7.953 kB / 444.4 MB, free: 3.531 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.475e-05/0.009939, allocations: 4 kB / 444.4 MB, free: 3.527 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002257/0.01016, allocations: 24.14 kB / 444.4 MB, free: 3.504 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.006e-05/0.0102, allocations: 7.984 kB / 444.4 MB, free: 3.496 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.065e-05/0.01023, allocations: 7.938 kB / 444.4 MB, free: 3.488 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.786e-05/0.01028, allocations: 83.28 kB / 444.5 MB, free: 3.406 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.01028, allocations: 0 / 444.5 MB, free: 3.406 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003395/0.01062, allocations: 43.92 kB / 444.6 MB, free: 3.363 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.0005927/0.01122, allocations: 187.1 kB / 444.7 MB, free: 3.199 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003381/0.01155, allocations: 153 kB / 444.9 MB, free: 3.031 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.01156, allocations: 0 / 444.9 MB, free: 3.031 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 6.614e-05/0.01162, allocations: 23.98 kB / 444.9 MB, free: 3.008 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001794/0.0118, allocations: 11.98 kB / 444.9 MB, free: 2.996 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004755/0.01228, allocations: 144.7 kB / 445.1 MB, free: 2.828 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.234e-05/0.01236, allocations: 71.28 kB / 445.1 MB, free: 2.738 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.801e-05/0.01243, allocations: 21.09 kB / 445.2 MB, free: 2.715 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.549e-05/0.01246, allocations: 16.48 kB / 445.2 MB, free: 2.699 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.01246, allocations: 0 / 445.2 MB, free: 2.699 MB / 366.1 MB Notification: Performance of Templates: time 0.006384/0.01885, allocations: 2.08 MB / 447.2 MB, free: 0.6445 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.649481687694788]