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/ModelicaServices trunk/package.mo", uses=false) 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/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 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: "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001687/0.001687, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002056/0.002056, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.469/1.469, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2156/0.2156, allocations: 46.11 MB / 344.3 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001541/0.001541, allocations: 75.88 kB / 480.8 MB, free: 4.559 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4112/0.4128, allocations: 62.43 MB / 0.5305 GB, free: 13.42 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.002186/0.415, allocations: 0.5389 MB / 0.531 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001416/0.4165, allocations: 442.5 kB / 0.5315 GB, free: 12.69 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.961e-05/0.4165, allocations: 0 / 0.5315 GB, free: 12.69 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001165/0.4167, allocations: 5.156 kB / 0.5315 GB, free: 12.69 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001715/0.4168, allocations: 13.3 kB / 0.5315 GB, free: 12.68 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.0008944/0.4178, allocations: 170.4 kB / 0.5316 GB, free: 12.57 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002213/0.418, allocations: 79.17 kB / 0.5317 GB, free: 12.53 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.927e-05/0.4181, allocations: 5.797 kB / 0.5317 GB, free: 12.53 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.721e-05/0.4182, allocations: 40.56 kB / 0.5318 GB, free: 12.51 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.906e-05/0.4183, allocations: 20.72 kB / 0.5318 GB, free: 12.5 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.987e-05/0.4183, allocations: 8.688 kB / 0.5318 GB, free: 12.49 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002733/0.4186, allocations: 96.55 kB / 0.5319 GB, free: 12.44 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.129e-05/0.4187, allocations: 15.23 kB / 0.5319 GB, free: 12.43 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.694e-05/0.4188, allocations: 31.02 kB / 0.5319 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003073/0.4191, allocations: 130.8 kB / 0.532 GB, free: 12.34 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.4191, allocations: 0 / 0.532 GB, free: 12.34 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.4191, allocations: 0 / 0.532 GB, free: 12.34 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.031e-05/0.4191, allocations: 0 / 0.532 GB, free: 12.34 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.000786/0.4199, allocations: 407.6 kB / 0.5324 GB, free: 11.91 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.018e-05/0.42, allocations: 9.625 kB / 0.5324 GB, free: 11.91 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.395e-05/0.4201, allocations: 40.11 kB / 0.5325 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.698e-05/0.4201, allocations: 5.062 kB / 0.5325 GB, free: 11.86 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002421/0.4204, allocations: 182.9 kB / 0.5327 GB, free: 11.65 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.514e-05/0.4204, allocations: 5.75 kB / 0.5327 GB, free: 11.65 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.281e-05/0.4205, allocations: 3.125 kB / 0.5327 GB, free: 11.65 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002906/0.4208, allocations: 89.03 kB / 0.5327 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.473e-05/0.4208, allocations: 5.562 kB / 0.5328 GB, free: 11.58 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.748e-05/0.4208, allocations: 0 / 0.5328 GB, free: 11.58 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.4208, allocations: 1.406 kB / 0.5328 GB, free: 11.58 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001056/0.421, allocations: 32.27 kB / 0.5328 GB, free: 11.56 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002705/0.4212, allocations: 169.1 kB / 0.5329 GB, free: 11.36 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000129/0.4214, allocations: 47.47 kB / 0.533 GB, free: 11.32 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.562e-05/0.4215, allocations: 24.72 kB / 0.533 GB, free: 11.3 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.627e-05/0.4215, allocations: 0 / 0.533 GB, free: 11.3 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003902/0.4219, allocations: 132.7 kB / 0.5331 GB, free: 11.2 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 2.475e-06/0.4219, allocations: 3.938 kB / 0.5331 GB, free: 11.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0004814/0.4224, allocations: 124.8 kB / 0.5333 GB, free: 11.13 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.191e-05/0.4225, allocations: 55.94 kB / 0.5333 GB, free: 11.07 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001029/0.4226, allocations: 97.11 kB / 0.5334 GB, free: 10.96 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.782e-05/0.4227, allocations: 31.88 kB / 0.5334 GB, free: 10.93 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.911e-05/0.4228, allocations: 89.2 kB / 0.5335 GB, free: 10.84 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.633e-05/0.4228, allocations: 32.33 kB / 0.5336 GB, free: 10.81 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.808e-05/0.4229, allocations: 32.42 kB / 0.5336 GB, free: 10.79 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.4231, allocations: 324.3 kB / 0.5339 GB, free: 10.46 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.081e-05/0.4232, allocations: 20.45 kB / 0.5339 GB, free: 10.45 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001258/0.4233, allocations: 70.11 kB / 0.534 GB, free: 10.38 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003329/0.4237, allocations: 151.6 kB / 0.5341 GB, free: 10.24 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/0.4237, allocations: 1.375 kB / 0.5341 GB, free: 10.24 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003968/0.4241, allocations: 162.2 kB / 0.5343 GB, free: 10.12 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.14e-05/0.4242, allocations: 30.48 kB / 0.5343 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.005e-05/0.4242, allocations: 2.156 kB / 0.5343 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.274e-05/0.4242, allocations: 3.906 kB / 0.5343 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001754/0.4244, allocations: 23.3 kB / 0.5343 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.025e-05/0.4244, allocations: 3.094 kB / 0.5343 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.433e-05/0.4245, allocations: 6.938 kB / 0.5344 GB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.342e-05/0.4246, allocations: 10.73 kB / 0.5344 GB, free: 10.07 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.0002203/0.4248, allocations: 129.4 kB / 0.5345 GB, free: 9.945 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.644e-05/0.4249, allocations: 8.031 kB / 0.5345 GB, free: 9.941 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.713e-05/0.4249, allocations: 11.95 kB / 0.5345 GB, free: 9.93 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/0.425, allocations: 1.406 kB / 0.5345 GB, free: 9.93 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.173e-06/0.425, allocations: 9.281 kB / 0.5345 GB, free: 9.922 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.425, allocations: 192 / 0.5345 GB, free: 9.922 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002152/0.4252, allocations: 166.2 kB / 0.5347 GB, free: 9.719 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.4252, allocations: 7.984 kB / 0.5347 GB, free: 9.711 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.228e-05/0.4253, allocations: 12.77 kB / 0.5347 GB, free: 9.703 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.932e-06/0.4253, allocations: 1.344 kB / 0.5347 GB, free: 9.703 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.869e-05/0.4253, allocations: 5.438 kB / 0.5347 GB, free: 9.699 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.4254, allocations: 0 / 0.5347 GB, free: 9.699 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.4254, allocations: 0 / 0.5347 GB, free: 9.699 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003368/0.4257, allocations: 131.7 kB / 0.5348 GB, free: 9.602 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.669e-05/0.4258, allocations: 90.27 kB / 0.5349 GB, free: 9.496 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.091e-05/0.4258, allocations: 10.73 kB / 0.5349 GB, free: 9.488 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002973/0.4261, allocations: 17.61 kB / 0.5349 GB, free: 9.48 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.81e-05/0.4262, allocations: 6.734 kB / 0.5349 GB, free: 9.477 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.048e-05/0.4262, allocations: 4.125 kB / 0.5349 GB, free: 9.477 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.18e-05/0.4263, allocations: 82.02 kB / 0.535 GB, free: 9.398 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4263, allocations: 0 / 0.535 GB, free: 9.398 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004966/0.4268, allocations: 43.62 kB / 0.5351 GB, free: 9.387 MB / 398.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.001127/0.4279, allocations: 0.7449 MB / 0.5358 GB, free: 8.723 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002967/0.4283, allocations: 132.6 kB / 0.5359 GB, free: 8.625 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/0.4283, allocations: 5.375 kB / 0.5359 GB, free: 8.621 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.33e-05/0.4284, allocations: 26.09 kB / 0.536 GB, free: 8.613 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002642/0.4287, allocations: 12.11 kB / 0.536 GB, free: 8.605 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00214/0.4308, allocations: 1.433 MB / 0.5374 GB, free: 7.227 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003467/0.4312, allocations: 0.6906 MB / 0.538 GB, free: 6.52 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.814e-05/0.4313, allocations: 12.84 kB / 0.5381 GB, free: 6.512 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.392e-05/0.4313, allocations: 16.09 kB / 0.5381 GB, free: 6.5 MB / 398.1 MB Notification: Performance of SimCode: time 6.42e-07/0.4313, allocations: 1.281 kB / 0.5381 GB, free: 6.5 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02435/0.4557, allocations: 3.043 MB / 0.541 GB, free: 4.863 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.693/8.149, allocations: 12.23 kB / 0.5411 GB, free: 4.855 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomIntegers_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches