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) 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 4.1.0-beta.om/package.mo", uses=false) 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: "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001433/0.001433, allocations: 118.8 kB / 17.79 MB, free: 5.246 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00157/0.00157, allocations: 198 kB / 18.73 MB, free: 4.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.468/1.468, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2308/0.2308, allocations: 46.12 MB / 344.4 MB, free: 11.45 MB / 286.1 MB 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.002698/0.002698, allocations: 79.88 kB / 480.9 MB, free: 4.504 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3642/0.367, allocations: 62.45 MB / 0.5306 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001789/0.3688, allocations: 0.5249 MB / 0.5311 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009959/0.3698, allocations: 449.7 kB / 0.5316 GB, free: 12.62 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.503e-05/0.3699, allocations: 0 / 0.5316 GB, free: 12.62 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 6.074e-05/0.3699, allocations: 3.938 kB / 0.5316 GB, free: 12.62 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001041/0.3701, allocations: 10.17 kB / 0.5316 GB, free: 12.61 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.000653/0.3707, allocations: 171.4 kB / 0.5317 GB, free: 12.5 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001578/0.3709, allocations: 73.33 kB / 0.5318 GB, free: 12.47 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.021e-05/0.3709, allocations: 7.609 kB / 0.5318 GB, free: 12.47 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.687e-05/0.371, allocations: 42.84 kB / 0.5319 GB, free: 12.45 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.782e-05/0.3711, allocations: 26.11 kB / 0.5319 GB, free: 12.43 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.083e-05/0.3711, allocations: 6.969 kB / 0.5319 GB, free: 12.43 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002088/0.3713, allocations: 92.88 kB / 0.532 GB, free: 12.38 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.777e-05/0.3714, allocations: 20.78 kB / 0.532 GB, free: 12.37 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.292e-05/0.3715, allocations: 31.83 kB / 0.532 GB, free: 12.34 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002444/0.3717, allocations: 127.1 kB / 0.5321 GB, free: 12.27 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.344e-06/0.3717, allocations: 0 / 0.5321 GB, free: 12.27 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3717, allocations: 0 / 0.5321 GB, free: 12.27 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.204e-05/0.3717, allocations: 0 / 0.5321 GB, free: 12.27 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.0005838/0.3723, allocations: 417 kB / 0.5325 GB, free: 11.84 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.536e-05/0.3724, allocations: 9.625 kB / 0.5325 GB, free: 11.84 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.685e-05/0.3724, allocations: 41.48 kB / 0.5326 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.127e-05/0.3725, allocations: 7.641 kB / 0.5326 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001942/0.3727, allocations: 176.6 kB / 0.5328 GB, free: 11.58 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.768e-06/0.3727, allocations: 1.75 kB / 0.5328 GB, free: 11.58 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.057e-05/0.3727, allocations: 3.125 kB / 0.5328 GB, free: 11.58 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001891/0.3729, allocations: 93.66 kB / 0.5329 GB, free: 11.52 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.3729, allocations: 3.938 kB / 0.5329 GB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.56e-05/0.3729, allocations: 5.344 kB / 0.5329 GB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.509e-06/0.373, allocations: 1.344 kB / 0.5329 GB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.271e-05/0.373, allocations: 28.94 kB / 0.5329 GB, free: 11.49 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002045/0.3732, allocations: 165 kB / 0.5331 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.824e-05/0.3733, allocations: 40.09 kB / 0.5331 GB, free: 11.26 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.332e-05/0.3734, allocations: 31.95 kB / 0.5331 GB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.479e-05/0.3734, allocations: 0 / 0.5331 GB, free: 11.23 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003169/0.3737, allocations: 132.3 kB / 0.5332 GB, free: 11.14 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.422e-06/0.3738, allocations: 0 / 0.5332 GB, free: 11.14 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.000293/0.3741, allocations: 137.1 kB / 0.5334 GB, free: 11.05 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.669e-05/0.3741, allocations: 54.97 kB / 0.5334 GB, free: 10.99 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.228e-05/0.3742, allocations: 98.33 kB / 0.5335 GB, free: 10.89 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.127e-05/0.3742, allocations: 35.88 kB / 0.5336 GB, free: 10.85 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.928e-05/0.3743, allocations: 85.3 kB / 0.5336 GB, free: 10.77 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.596e-05/0.3743, allocations: 24.2 kB / 0.5337 GB, free: 10.75 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.137e-05/0.3744, allocations: 31.7 kB / 0.5337 GB, free: 10.72 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.3746, allocations: 317 kB / 0.534 GB, free: 10.4 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.058e-05/0.3746, allocations: 24.67 kB / 0.534 GB, free: 10.39 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.296e-05/0.3747, allocations: 77.39 kB / 0.5341 GB, free: 10.31 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002179/0.3749, allocations: 147.4 kB / 0.5342 GB, free: 10.17 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.356e-06/0.375, allocations: 1.25 kB / 0.5342 GB, free: 10.17 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002406/0.3752, allocations: 161.8 kB / 0.5344 GB, free: 10.06 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.555e-05/0.3752, allocations: 31.45 kB / 0.5344 GB, free: 10.03 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.777e-06/0.3753, allocations: 5.938 kB / 0.5344 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/0.3753, allocations: 12.17 kB / 0.5344 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001019/0.3754, allocations: 20.44 kB / 0.5345 GB, free: 10.01 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.284e-06/0.3754, allocations: 1.812 kB / 0.5345 GB, free: 10.01 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.097e-05/0.3755, allocations: 7.391 kB / 0.5345 GB, free: 10 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.58e-05/0.3755, allocations: 10.7 kB / 0.5345 GB, free: 10 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.0001732/0.3757, allocations: 120.2 kB / 0.5346 GB, free: 9.879 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.481e-05/0.3757, allocations: 12.7 kB / 0.5346 GB, free: 9.871 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.27e-05/0.3757, allocations: 15.89 kB / 0.5346 GB, free: 9.855 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.3758, allocations: 1.25 kB / 0.5346 GB, free: 9.855 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.3758, allocations: 5.5 kB / 0.5346 GB, free: 9.852 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.3758, allocations: 0 / 0.5346 GB, free: 9.852 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001776/0.3759, allocations: 170.6 kB / 0.5348 GB, free: 9.645 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.898e-06/0.376, allocations: 3.984 kB / 0.5348 GB, free: 9.641 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.873e-05/0.376, allocations: 8.875 kB / 0.5348 GB, free: 9.637 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.376, allocations: 0 / 0.5348 GB, free: 9.637 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.797e-06/0.376, allocations: 1.469 kB / 0.5348 GB, free: 9.637 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.376, allocations: 1.188 kB / 0.5348 GB, free: 9.637 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.376, allocations: 0 / 0.5348 GB, free: 9.637 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002244/0.3763, allocations: 140 kB / 0.5349 GB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.249e-05/0.3763, allocations: 86.38 kB / 0.535 GB, free: 9.43 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.205e-05/0.3764, allocations: 6.734 kB / 0.535 GB, free: 9.426 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001946/0.3766, allocations: 17.59 kB / 0.535 GB, free: 9.418 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.557e-05/0.3766, allocations: 6.75 kB / 0.535 GB, free: 9.414 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.459e-05/0.3766, allocations: 4.125 kB / 0.5351 GB, free: 9.414 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.514e-05/0.3767, allocations: 84.64 kB / 0.5351 GB, free: 9.332 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3767, allocations: 1.375 kB / 0.5351 GB, free: 9.332 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002781/0.377, allocations: 42.12 kB / 0.5352 GB, free: 9.32 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.0008794/0.3779, allocations: 0.7595 MB / 0.5359 GB, free: 8.645 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002118/0.3781, allocations: 126 kB / 0.536 GB, free: 8.555 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3781, allocations: 0 / 0.536 GB, free: 8.555 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 6.006e-05/0.3782, allocations: 31.23 kB / 0.5361 GB, free: 8.543 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001489/0.3783, allocations: 10.73 kB / 0.5361 GB, free: 8.535 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001526/0.3798, allocations: 1.435 MB / 0.5375 GB, free: 7.152 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003306/0.3802, allocations: 0.6868 MB / 0.5381 GB, free: 6.449 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.293e-05/0.3802, allocations: 12.81 kB / 0.5382 GB, free: 6.441 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.831e-05/0.3803, allocations: 20.97 kB / 0.5382 GB, free: 6.426 MB / 398.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3803, allocations: 0 / 0.5382 GB, free: 6.426 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02432/0.4046, allocations: 3 MB / 0.5411 GB, free: 4.824 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.977/8.382, allocations: 16.61 kB / 0.5411 GB, free: 4.816 MB / 398.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_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_4_1_0-beta_om_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1)