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.001129/0.001129, allocations: 116.7 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001265/0.001265, allocations: 202 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.435/1.435, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.229/0.229, allocations: 46.1 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00168/0.00168, allocations: 71.88 kB / 480.8 MB, free: 4.57 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.434/0.4357, allocations: 62.44 MB / 0.5305 GB, free: 13.43 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.002026/0.4378, allocations: 0.5386 MB / 0.531 GB, free: 13.03 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009609/0.4388, allocations: 442 kB / 0.5315 GB, free: 12.71 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.359e-05/0.4388, allocations: 0 / 0.5315 GB, free: 12.71 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.723e-05/0.439, allocations: 9.625 kB / 0.5315 GB, free: 12.7 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001356/0.4391, allocations: 7.984 kB / 0.5315 GB, free: 12.69 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.0006325/0.4397, allocations: 160.1 kB / 0.5316 GB, free: 12.59 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001722/0.4399, allocations: 86.78 kB / 0.5317 GB, free: 12.55 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.912e-05/0.44, allocations: 1.125 kB / 0.5317 GB, free: 12.55 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.78e-05/0.4401, allocations: 44.59 kB / 0.5318 GB, free: 12.53 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.611e-05/0.4401, allocations: 22.55 kB / 0.5318 GB, free: 12.51 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.426e-05/0.4402, allocations: 3.219 kB / 0.5318 GB, free: 12.51 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001873/0.4404, allocations: 100.3 kB / 0.5319 GB, free: 12.46 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.577e-05/0.4404, allocations: 25.73 kB / 0.5319 GB, free: 12.44 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.521e-05/0.4405, allocations: 22.56 kB / 0.5319 GB, free: 12.43 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002281/0.4407, allocations: 127.9 kB / 0.532 GB, free: 12.35 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.4407, allocations: 0 / 0.532 GB, free: 12.35 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.4407, allocations: 0 / 0.532 GB, free: 12.35 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.4407, allocations: 0 / 0.532 GB, free: 12.35 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.0006609/0.4414, allocations: 413.7 kB / 0.5324 GB, free: 11.92 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.719e-05/0.4415, allocations: 9.594 kB / 0.5324 GB, free: 11.92 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.965e-05/0.4415, allocations: 36.19 kB / 0.5325 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.332e-05/0.4416, allocations: 3.781 kB / 0.5325 GB, free: 11.88 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000205/0.4418, allocations: 187.5 kB / 0.5327 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.36e-05/0.4418, allocations: 5.688 kB / 0.5327 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.664e-05/0.4418, allocations: 6.703 kB / 0.5327 GB, free: 11.66 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001973/0.442, allocations: 86.67 kB / 0.5328 GB, free: 11.6 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.442, allocations: 3.938 kB / 0.5328 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.759e-05/0.4421, allocations: 1.312 kB / 0.5328 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.4421, allocations: 0 / 0.5328 GB, free: 11.59 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.338e-05/0.4422, allocations: 24.91 kB / 0.5328 GB, free: 11.58 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000179/0.4423, allocations: 173.5 kB / 0.5329 GB, free: 11.37 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.883e-05/0.4424, allocations: 47.66 kB / 0.533 GB, free: 11.33 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.813e-05/0.4425, allocations: 23.41 kB / 0.533 GB, free: 11.32 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.585e-05/0.4425, allocations: 1.312 kB / 0.533 GB, free: 11.32 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002849/0.4428, allocations: 135.7 kB / 0.5331 GB, free: 11.21 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.793e-06/0.4428, allocations: 5.188 kB / 0.5332 GB, free: 11.21 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.000298/0.4431, allocations: 120.7 kB / 0.5333 GB, free: 11.14 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.628e-05/0.4432, allocations: 55 kB / 0.5333 GB, free: 11.08 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.869e-05/0.4433, allocations: 101.4 kB / 0.5334 GB, free: 10.98 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.596e-05/0.4433, allocations: 32.36 kB / 0.5334 GB, free: 10.94 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.596e-05/0.4433, allocations: 89.14 kB / 0.5335 GB, free: 10.85 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.178e-05/0.4434, allocations: 31.47 kB / 0.5336 GB, free: 10.82 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.838e-05/0.4434, allocations: 32.11 kB / 0.5336 GB, free: 10.8 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001008/0.4435, allocations: 321.6 kB / 0.5339 GB, free: 10.48 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.72e-05/0.4436, allocations: 20.05 kB / 0.5339 GB, free: 10.47 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.954e-05/0.4437, allocations: 73.44 kB / 0.534 GB, free: 10.39 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001802/0.4439, allocations: 148.9 kB / 0.5341 GB, free: 10.25 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.4439, allocations: 0 / 0.5341 GB, free: 10.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000213/0.4441, allocations: 153.5 kB / 0.5343 GB, free: 10.15 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.359e-05/0.4441, allocations: 43.72 kB / 0.5343 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.4441, allocations: 3.062 kB / 0.5343 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.656e-05/0.4442, allocations: 2.812 kB / 0.5343 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001068/0.4443, allocations: 15.81 kB / 0.5343 GB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.023e-05/0.4443, allocations: 6.734 kB / 0.5343 GB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.733e-05/0.4443, allocations: 12.25 kB / 0.5344 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.363e-05/0.4444, allocations: 9.5 kB / 0.5344 GB, free: 10.09 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.0001326/0.4445, allocations: 124.6 kB / 0.5345 GB, free: 9.961 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.678e-05/0.4445, allocations: 12.05 kB / 0.5345 GB, free: 9.953 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.335e-05/0.4446, allocations: 9.344 kB / 0.5345 GB, free: 9.945 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.837e-06/0.4446, allocations: 1.375 kB / 0.5345 GB, free: 9.945 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.4446, allocations: 3.938 kB / 0.5345 GB, free: 9.941 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.4446, allocations: 4 kB / 0.5345 GB, free: 9.938 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001507/0.4448, allocations: 175.2 kB / 0.5347 GB, free: 9.727 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.4448, allocations: 0 / 0.5347 GB, free: 9.727 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.595e-05/0.4448, allocations: 9.438 kB / 0.5347 GB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.4448, allocations: 0 / 0.5347 GB, free: 9.723 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.292e-05/0.4449, allocations: 5.375 kB / 0.5347 GB, free: 9.719 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.4449, allocations: 0 / 0.5347 GB, free: 9.719 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/0.4449, allocations: 9.297 kB / 0.5347 GB, free: 9.711 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001932/0.4451, allocations: 126.8 kB / 0.5348 GB, free: 9.617 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.243e-05/0.4451, allocations: 94.44 kB / 0.5349 GB, free: 9.508 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.85e-05/0.4452, allocations: 4.125 kB / 0.5349 GB, free: 9.508 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001916/0.4453, allocations: 24.2 kB / 0.5349 GB, free: 9.492 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.231e-05/0.4454, allocations: 2.75 kB / 0.5349 GB, free: 9.492 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.656e-05/0.4454, allocations: 8.109 kB / 0.535 GB, free: 9.488 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.084e-05/0.4454, allocations: 82.03 kB / 0.535 GB, free: 9.41 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.332e-06/0.4455, allocations: 0 / 0.535 GB, free: 9.41 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002831/0.4457, allocations: 47.55 kB / 0.5351 GB, free: 9.395 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.0007226/0.4465, allocations: 0.7383 MB / 0.5358 GB, free: 8.738 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002056/0.4467, allocations: 133.9 kB / 0.5359 GB, free: 8.641 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.4467, allocations: 0 / 0.5359 GB, free: 8.641 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.839e-05/0.4468, allocations: 31.17 kB / 0.536 GB, free: 8.629 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001552/0.4469, allocations: 10.73 kB / 0.536 GB, free: 8.621 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001398/0.4483, allocations: 1.437 MB / 0.5374 GB, free: 7.238 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002545/0.4486, allocations: 0.6814 MB / 0.538 GB, free: 6.539 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.582e-05/0.4487, allocations: 17.84 kB / 0.5381 GB, free: 6.527 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.677e-05/0.4487, allocations: 15.81 kB / 0.5381 GB, free: 6.516 MB / 398.1 MB Notification: Performance of SimCode: time 2.81e-07/0.4487, allocations: 1 kB / 0.5381 GB, free: 6.516 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02296/0.4717, allocations: 3.039 MB / 0.541 GB, free: 4.879 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.043/8.515, allocations: 21.28 kB / 0.5411 GB, free: 4.867 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