Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001857/0.001857, allocations: 105.1 kB / 21.23 MB, free: 0.6562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001942/0.001942, allocations: 213.7 kB / 24.54 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.523/1.523, allocations: 230.3 MB / 258 MB, free: 8.223 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2572/0.2572, allocations: 46.94 MB / 361.4 MB, free: 4.398 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_ModelicaTest.Math.Random.TestRandomIntegers") [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002495/0.002495, allocations: 80.14 kB / 0.4972 GB, free: 7.523 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4049/0.4074, allocations: 66.04 MB / 0.5616 GB, free: 4.68 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001848/0.4093, allocations: 0.5456 MB / 0.5622 GB, free: 4.141 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001052/0.4103, allocations: 450.6 kB / 0.5626 GB, free: 3.699 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.973e-05/0.4104, allocations: 0 / 0.5626 GB, free: 3.699 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.149e-05/0.4105, allocations: 3.938 kB / 0.5626 GB, free: 3.695 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000147/0.4106, allocations: 11.92 kB / 0.5626 GB, free: 3.684 MB / 398.1 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.0006592/0.4113, allocations: 175.5 kB / 0.5628 GB, free: 3.512 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001835/0.4115, allocations: 87.8 kB / 0.5629 GB, free: 3.426 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.451e-05/0.4115, allocations: 0 / 0.5629 GB, free: 3.426 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.589e-05/0.4116, allocations: 43.95 kB / 0.5629 GB, free: 3.383 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.83e-05/0.4117, allocations: 19.91 kB / 0.5629 GB, free: 3.363 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.19e-05/0.4117, allocations: 4 kB / 0.5629 GB, free: 3.359 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002863/0.412, allocations: 135.7 kB / 0.5631 GB, free: 3.227 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.469e-05/0.412, allocations: 23.91 kB / 0.5631 GB, free: 3.203 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.741e-05/0.4121, allocations: 31.91 kB / 0.5631 GB, free: 3.172 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000251/0.4123, allocations: 130.5 kB / 0.5633 GB, free: 3.047 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.4123, allocations: 0 / 0.5633 GB, free: 3.047 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4123, allocations: 0 / 0.5633 GB, free: 3.047 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.191e-05/0.4124, allocations: 0 / 0.5633 GB, free: 3.047 MB / 398.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.0006538/0.413, allocations: 331.8 kB / 0.5636 GB, free: 2.684 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/0.4131, allocations: 12.03 kB / 0.5636 GB, free: 2.672 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.736e-05/0.4131, allocations: 4.891 kB / 0.5636 GB, free: 2.668 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002031/0.4133, allocations: 130.4 kB / 0.5637 GB, free: 2.516 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.125e-05/0.4133, allocations: 8.375 kB / 0.5637 GB, free: 2.508 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.292e-05/0.4134, allocations: 4.375 kB / 0.5637 GB, free: 2.504 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002487/0.4136, allocations: 90.19 kB / 0.5638 GB, free: 2.41 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/0.4136, allocations: 192 / 0.5638 GB, free: 2.41 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.378e-05/0.4137, allocations: 3.938 kB / 0.5638 GB, free: 2.406 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.216e-06/0.4137, allocations: 0 / 0.5638 GB, free: 2.406 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.736e-05/0.4137, allocations: 27.95 kB / 0.5638 GB, free: 2.379 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002082/0.4139, allocations: 136.7 kB / 0.564 GB, free: 2.203 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001041/0.4141, allocations: 46.5 kB / 0.564 GB, free: 2.148 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.071e-05/0.4141, allocations: 32.78 kB / 0.564 GB, free: 2.113 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.626e-05/0.4141, allocations: 0 / 0.564 GB, free: 2.113 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002735/0.4144, allocations: 131.4 kB / 0.5642 GB, free: 1.973 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.422e-06/0.4144, allocations: 4 kB / 0.5642 GB, free: 1.969 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003204/0.4147, allocations: 129.5 kB / 0.5643 GB, free: 1.836 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.195e-05/0.4148, allocations: 59.39 kB / 0.5644 GB, free: 1.766 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.381e-05/0.4148, allocations: 93.86 kB / 0.5644 GB, free: 1.664 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.552e-05/0.4149, allocations: 37.69 kB / 0.5645 GB, free: 1.621 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.656e-05/0.4149, allocations: 80.14 kB / 0.5646 GB, free: 1.539 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.256e-05/0.415, allocations: 19.86 kB / 0.5646 GB, free: 1.52 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.059e-05/0.415, allocations: 29.7 kB / 0.5646 GB, free: 1.484 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001413/0.4151, allocations: 326.8 kB / 0.5649 GB, free: 1.156 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.256e-05/0.4152, allocations: 19.98 kB / 0.5649 GB, free: 1.137 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.198e-05/0.4153, allocations: 74.86 kB / 0.565 GB, free: 1.039 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002079/0.4155, allocations: 148.4 kB / 0.5651 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.4155, allocations: 0 / 0.5651 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002777/0.4158, allocations: 167.2 kB / 0.5653 GB, free: 0.6875 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.787e-05/0.4158, allocations: 33.64 kB / 0.5653 GB, free: 0.6484 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.4158, allocations: 4 kB / 0.5653 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.4158, allocations: 0 / 0.5653 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001074/0.4159, allocations: 15.98 kB / 0.5654 GB, free: 0.6289 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.012e-05/0.416, allocations: 7.938 kB / 0.5654 GB, free: 0.6211 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.807e-05/0.416, allocations: 19.83 kB / 0.5654 GB, free: 0.6016 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.197e-05/0.416, allocations: 4 kB / 0.5654 GB, free: 0.5977 MB / 398.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.0001516/0.4162, allocations: 126 kB / 0.5655 GB, free: 476 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.305e-05/0.4162, allocations: 15.89 kB / 0.5655 GB, free: 460 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.77e-05/0.4163, allocations: 12.05 kB / 0.5655 GB, free: 444 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.4163, allocations: 0 / 0.5655 GB, free: 444 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.4163, allocations: 0 / 0.5655 GB, free: 444 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.4163, allocations: 0 / 0.5655 GB, free: 444 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001575/0.4164, allocations: 140.7 kB / 0.5657 GB, free: 260 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.4164, allocations: 4.281 kB / 0.5657 GB, free: 256 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.761e-05/0.4165, allocations: 15.92 kB / 0.5657 GB, free: 240 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.977e-06/0.4165, allocations: 3.938 kB / 0.5657 GB, free: 236 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.397e-06/0.4165, allocations: 3.938 kB / 0.5657 GB, free: 232 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.4165, allocations: 0 / 0.5657 GB, free: 232 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.4165, allocations: 0 / 0.5657 GB, free: 232 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002199/0.4167, allocations: 129.1 kB / 0.5658 GB, free: 84 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.031e-05/0.4167, allocations: 7.891 kB / 0.5658 GB, free: 76 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.118e-05/0.4167, allocations: 11.92 kB / 0.5658 GB, free: 64 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002138/0.4169, allocations: 19.98 kB / 0.5659 GB, free: 44 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.957e-05/0.417, allocations: 3.984 kB / 0.5659 GB, free: 40 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.816e-05/0.417, allocations: 8 kB / 0.5659 GB, free: 32 kB / 398.1 MB Notification: Performance of sorting global known variables: time 7.699e-05/0.4171, allocations: 87.44 kB / 0.5659 GB, free: 15.95 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4171, allocations: 0 / 0.5659 GB, free: 15.95 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002906/0.4174, allocations: 43.88 kB / 0.566 GB, free: 15.9 MB / 414.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.0004561/0.4178, allocations: 184.7 kB / 0.5662 GB, free: 15.73 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002381/0.418, allocations: 127.2 kB / 0.5663 GB, free: 15.6 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.418, allocations: 0 / 0.5663 GB, free: 15.6 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.318e-05/0.4181, allocations: 23.98 kB / 0.5663 GB, free: 15.57 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001644/0.4183, allocations: 12.42 kB / 0.5663 GB, free: 15.56 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004091/0.4187, allocations: 140.7 kB / 0.5665 GB, free: 15.4 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003953/0.4191, allocations: 0.6812 MB / 0.5671 GB, free: 14.69 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.757e-05/0.4191, allocations: 20.59 kB / 0.5671 GB, free: 14.67 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.516e-05/0.4192, allocations: 19.42 kB / 0.5672 GB, free: 14.65 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.4192, allocations: 0 / 0.5672 GB, free: 14.65 MB / 414.1 MB Notification: Performance of Templates: time 0.005941/0.4251, allocations: 2.043 MB / 0.5692 GB, free: 12.61 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.makefile [Timeout 660] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 480] diffSimulationResults("ModelicaTest_4.1.0-beta.om_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-beta.om_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.486618483439088]