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.001237/0.001236, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001443/0.001443, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, 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.2225/0.2225, allocations: 46.1 MB / 344.3 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001573/0.001573, allocations: 75.88 kB / 480.8 MB, free: 4.547 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3773/0.3788, allocations: 62.44 MB / 0.5305 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001593/0.3805, allocations: 0.5359 MB / 0.531 GB, free: 12.98 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000929/0.3814, allocations: 449 kB / 0.5315 GB, free: 12.65 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.433e-05/0.3815, allocations: 1.219 kB / 0.5315 GB, free: 12.65 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 8.32e-05/0.3816, allocations: 3.938 kB / 0.5315 GB, free: 12.65 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001297/0.3817, allocations: 5.375 kB / 0.5315 GB, free: 12.64 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.0005974/0.3823, allocations: 167.5 kB / 0.5316 GB, free: 12.54 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001532/0.3825, allocations: 78.05 kB / 0.5317 GB, free: 12.5 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.951e-05/0.3825, allocations: 5.75 kB / 0.5317 GB, free: 12.5 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.076e-05/0.3826, allocations: 45.02 kB / 0.5318 GB, free: 12.48 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.661e-05/0.3827, allocations: 21.28 kB / 0.5318 GB, free: 12.46 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.43e-05/0.3827, allocations: 3.562 kB / 0.5318 GB, free: 12.46 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00019/0.3829, allocations: 96.66 kB / 0.5319 GB, free: 12.41 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.446e-05/0.3829, allocations: 24.36 kB / 0.5319 GB, free: 12.4 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.781e-05/0.383, allocations: 24.95 kB / 0.5319 GB, free: 12.38 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002157/0.3832, allocations: 131 kB / 0.5321 GB, free: 12.31 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.3832, allocations: 0 / 0.5321 GB, free: 12.31 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3832, allocations: 0 / 0.5321 GB, free: 12.31 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.3832, allocations: 0 / 0.5321 GB, free: 12.31 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.0005858/0.3838, allocations: 420.1 kB / 0.5325 GB, free: 11.87 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.3839, allocations: 10.91 kB / 0.5325 GB, free: 11.87 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.786e-05/0.3839, allocations: 34.44 kB / 0.5325 GB, free: 11.83 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.008e-05/0.384, allocations: 12.03 kB / 0.5325 GB, free: 11.82 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001877/0.3842, allocations: 175.8 kB / 0.5327 GB, free: 11.62 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.35e-05/0.3842, allocations: 4.375 kB / 0.5327 GB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.403e-05/0.3842, allocations: 7.062 kB / 0.5327 GB, free: 11.61 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001943/0.3844, allocations: 89.81 kB / 0.5328 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.3844, allocations: 3.938 kB / 0.5328 GB, free: 11.54 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.982e-05/0.3845, allocations: 1.375 kB / 0.5328 GB, free: 11.54 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.3845, allocations: 4 kB / 0.5328 GB, free: 11.54 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.914e-05/0.3846, allocations: 21.73 kB / 0.5328 GB, free: 11.53 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001863/0.3847, allocations: 164.5 kB / 0.533 GB, free: 11.33 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.259e-05/0.3848, allocations: 44.44 kB / 0.533 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.24e-05/0.3849, allocations: 27.84 kB / 0.533 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.513e-05/0.3849, allocations: 0 / 0.533 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002641/0.3852, allocations: 136.3 kB / 0.5332 GB, free: 11.17 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.443e-06/0.3852, allocations: 4.781 kB / 0.5332 GB, free: 11.17 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003166/0.3855, allocations: 121.4 kB / 0.5333 GB, free: 11.1 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.643e-05/0.3856, allocations: 58.33 kB / 0.5333 GB, free: 11.04 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.668e-05/0.3857, allocations: 102.7 kB / 0.5334 GB, free: 10.93 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.782e-05/0.3857, allocations: 34.98 kB / 0.5335 GB, free: 10.89 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.683e-05/0.3858, allocations: 81.33 kB / 0.5335 GB, free: 10.81 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.136e-05/0.3858, allocations: 28.09 kB / 0.5336 GB, free: 10.79 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.046e-05/0.3859, allocations: 31.98 kB / 0.5336 GB, free: 10.76 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001196/0.386, allocations: 317.5 kB / 0.5339 GB, free: 10.44 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.141e-05/0.386, allocations: 24.67 kB / 0.5339 GB, free: 10.43 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.781e-05/0.3861, allocations: 80.72 kB / 0.534 GB, free: 10.34 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002058/0.3864, allocations: 151.8 kB / 0.5341 GB, free: 10.2 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.3864, allocations: 1.219 kB / 0.5342 GB, free: 10.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002412/0.3866, allocations: 162.1 kB / 0.5343 GB, free: 10.09 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.42e-05/0.3867, allocations: 31.73 kB / 0.5343 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.3867, allocations: 1.25 kB / 0.5343 GB, free: 10.06 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.3867, allocations: 8 kB / 0.5343 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001112/0.3868, allocations: 20.89 kB / 0.5344 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.854e-06/0.3868, allocations: 1.5 kB / 0.5344 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.969e-05/0.3869, allocations: 7.922 kB / 0.5344 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.739e-05/0.3869, allocations: 9.781 kB / 0.5344 GB, free: 10.04 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.0001419/0.3871, allocations: 128.8 kB / 0.5345 GB, free: 9.91 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.942e-05/0.3871, allocations: 13.08 kB / 0.5345 GB, free: 9.902 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.433e-05/0.3871, allocations: 12.16 kB / 0.5345 GB, free: 9.891 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.3871, allocations: 5.875 kB / 0.5345 GB, free: 9.887 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.3871, allocations: 3.984 kB / 0.5345 GB, free: 9.883 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.3872, allocations: 0 / 0.5345 GB, free: 9.883 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001452/0.3873, allocations: 167.2 kB / 0.5347 GB, free: 9.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.3873, allocations: 0 / 0.5347 GB, free: 9.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.57e-05/0.3874, allocations: 9.656 kB / 0.5347 GB, free: 9.676 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.3874, allocations: 0 / 0.5347 GB, free: 9.676 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.272e-05/0.3874, allocations: 9.953 kB / 0.5347 GB, free: 9.668 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.3874, allocations: 0 / 0.5347 GB, free: 9.668 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3874, allocations: 0 / 0.5347 GB, free: 9.668 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002029/0.3876, allocations: 138.5 kB / 0.5348 GB, free: 9.562 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.968e-05/0.3876, allocations: 87.66 kB / 0.5349 GB, free: 9.461 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.957e-05/0.3877, allocations: 2.281 kB / 0.5349 GB, free: 9.461 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002041/0.3879, allocations: 21.56 kB / 0.535 GB, free: 9.449 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.179e-05/0.3879, allocations: 7.359 kB / 0.535 GB, free: 9.445 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.297e-05/0.3879, allocations: 3.938 kB / 0.535 GB, free: 9.445 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.783e-05/0.388, allocations: 85.69 kB / 0.535 GB, free: 9.363 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.388, allocations: 0 / 0.535 GB, free: 9.363 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002929/0.3883, allocations: 47.05 kB / 0.5351 GB, free: 9.348 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.0007156/0.389, allocations: 0.7494 MB / 0.5358 GB, free: 8.68 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002157/0.3892, allocations: 132.8 kB / 0.536 GB, free: 8.582 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.3892, allocations: 0 / 0.536 GB, free: 8.582 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.696e-05/0.3893, allocations: 35.16 kB / 0.536 GB, free: 8.566 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001535/0.3895, allocations: 8.125 kB / 0.536 GB, free: 8.562 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001426/0.3909, allocations: 1.434 MB / 0.5374 GB, free: 7.18 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002789/0.3912, allocations: 0.6829 MB / 0.5381 GB, free: 6.48 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.217e-05/0.3913, allocations: 16.31 kB / 0.5381 GB, free: 6.469 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.929e-05/0.3913, allocations: 20.58 kB / 0.5381 GB, free: 6.453 MB / 398.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3913, allocations: 4 kB / 0.5381 GB, free: 6.449 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01755/0.4089, allocations: 2.981 MB / 0.541 GB, free: 4.855 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.743/8.152, allocations: 19.45 kB / 0.541 GB, free: 4.848 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.csv","/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