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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001921/0.001921, allocations: 114 kB / 20.43 MB, free: 1.457 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.00246/0.00246, allocations: 214.2 kB / 23.74 MB, free: 4.672 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.534/1.534, allocations: 230.5 MB / 257.4 MB, free: 7.992 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2239/0.2239, allocations: 46.94 MB / 360.8 MB, free: 4.164 MB / 286.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002558/0.002558, allocations: 83.86 kB / 0.4962 GB, free: 7.734 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3477/0.3503, allocations: 66.08 MB / 0.5607 GB, free: 4.289 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001759/0.352, allocations: 0.5266 MB / 0.5612 GB, free: 3.766 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009067/0.353, allocations: 462.5 kB / 0.5617 GB, free: 3.312 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.557e-05/0.353, allocations: 4 kB / 0.5617 GB, free: 3.309 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 8.403e-05/0.3531, allocations: 0 / 0.5617 GB, free: 3.309 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001221/0.3532, allocations: 7.922 kB / 0.5617 GB, free: 3.301 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.0005862/0.3538, allocations: 174.9 kB / 0.5619 GB, free: 3.133 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001781/0.354, allocations: 87.84 kB / 0.5619 GB, free: 3.047 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.537e-05/0.354, allocations: 11.92 kB / 0.562 GB, free: 3.035 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.414e-05/0.3541, allocations: 35.97 kB / 0.562 GB, free: 3 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.328e-05/0.3542, allocations: 15.92 kB / 0.562 GB, free: 2.984 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.438e-05/0.3542, allocations: 4 kB / 0.562 GB, free: 2.98 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000265/0.3545, allocations: 135.8 kB / 0.5621 GB, free: 2.848 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.156e-05/0.3545, allocations: 19.92 kB / 0.5622 GB, free: 2.828 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.066e-05/0.3546, allocations: 31.84 kB / 0.5622 GB, free: 2.797 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002224/0.3548, allocations: 133.5 kB / 0.5623 GB, free: 2.668 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.3548, allocations: 3.984 kB / 0.5623 GB, free: 2.664 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.3548, allocations: 0 / 0.5623 GB, free: 2.664 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.3548, allocations: 0 / 0.5623 GB, free: 2.664 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.0005434/0.3553, allocations: 331.7 kB / 0.5626 GB, free: 2.301 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.3554, allocations: 12.03 kB / 0.5627 GB, free: 2.289 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.503e-05/0.3554, allocations: 34.75 kB / 0.5627 GB, free: 2.246 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.672e-05/0.3555, allocations: 12.88 kB / 0.5627 GB, free: 2.234 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001681/0.3556, allocations: 118.5 kB / 0.5628 GB, free: 2.094 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.052e-05/0.3556, allocations: 8.375 kB / 0.5628 GB, free: 2.086 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.324e-05/0.3557, allocations: 4.359 kB / 0.5628 GB, free: 2.082 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002005/0.3559, allocations: 90.14 kB / 0.5629 GB, free: 1.988 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.244e-05/0.3559, allocations: 7.922 kB / 0.5629 GB, free: 1.98 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.735e-05/0.3559, allocations: 8 kB / 0.5629 GB, free: 1.973 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.3559, allocations: 0 / 0.5629 GB, free: 1.973 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.805e-05/0.356, allocations: 27.91 kB / 0.563 GB, free: 1.945 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001962/0.3562, allocations: 136.7 kB / 0.5631 GB, free: 1.77 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.308e-05/0.3562, allocations: 42.56 kB / 0.5631 GB, free: 1.719 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.497e-05/0.3563, allocations: 20.91 kB / 0.5631 GB, free: 1.695 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.902e-05/0.3563, allocations: 7.938 kB / 0.5631 GB, free: 1.688 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002795/0.3566, allocations: 131.2 kB / 0.5633 GB, free: 1.547 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.322e-06/0.3566, allocations: 4 kB / 0.5633 GB, free: 1.543 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003188/0.3569, allocations: 121.5 kB / 0.5634 GB, free: 1.418 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.234e-05/0.357, allocations: 55.41 kB / 0.5634 GB, free: 1.352 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.204e-05/0.3571, allocations: 105.8 kB / 0.5635 GB, free: 1.238 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.386e-05/0.3571, allocations: 29.7 kB / 0.5636 GB, free: 1.203 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.118e-05/0.3571, allocations: 80.14 kB / 0.5637 GB, free: 1.121 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.948e-05/0.3572, allocations: 31.98 kB / 0.5637 GB, free: 1.09 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.732e-05/0.3572, allocations: 25.72 kB / 0.5637 GB, free: 1.059 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.3574, allocations: 326.8 kB / 0.564 GB, free: 0.7305 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.132e-05/0.3574, allocations: 19.98 kB / 0.564 GB, free: 0.7109 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001014/0.3575, allocations: 78.72 kB / 0.5641 GB, free: 0.6094 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002067/0.3577, allocations: 152.4 kB / 0.5643 GB, free: 440 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.967e-06/0.3578, allocations: 4 kB / 0.5643 GB, free: 436 kB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002304/0.358, allocations: 163.2 kB / 0.5644 GB, free: 260 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.736e-05/0.358, allocations: 33.7 kB / 0.5645 GB, free: 220 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.699e-06/0.358, allocations: 0 / 0.5645 GB, free: 220 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.752e-05/0.358, allocations: 4 kB / 0.5645 GB, free: 216 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001651/0.3582, allocations: 19.92 kB / 0.5645 GB, free: 196 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.168e-06/0.3582, allocations: 4 kB / 0.5645 GB, free: 192 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.976e-05/0.3583, allocations: 7.953 kB / 0.5645 GB, free: 184 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.407e-05/0.3583, allocations: 8 kB / 0.5645 GB, free: 176 kB / 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.000171/0.3585, allocations: 136.2 kB / 0.5646 GB, free: 32 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.005e-05/0.3585, allocations: 11.89 kB / 0.5646 GB, free: 20 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.818e-05/0.3585, allocations: 8.062 kB / 0.5646 GB, free: 8 kB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.3585, allocations: 4 kB / 0.5646 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.3585, allocations: 288 / 0.5646 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.3585, allocations: 0 / 0.5646 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001864/0.3587, allocations: 140.7 kB / 0.5648 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.3587, allocations: 3.938 kB / 0.5648 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.557e-05/0.3588, allocations: 11.94 kB / 0.5648 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.69e-06/0.3588, allocations: 4 kB / 0.5648 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.176e-05/0.3588, allocations: 3.984 kB / 0.5648 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.3588, allocations: 0 / 0.5648 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.3588, allocations: 0 / 0.5648 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000234/0.359, allocations: 129 kB / 0.5649 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.115e-05/0.359, allocations: 7.891 kB / 0.5649 GB, free: 15.65 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.065e-05/0.359, allocations: 4 kB / 0.5649 GB, free: 15.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001934/0.3592, allocations: 28.14 kB / 0.565 GB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.724e-05/0.3593, allocations: 7.984 kB / 0.565 GB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.376e-05/0.3593, allocations: 4 kB / 0.565 GB, free: 15.61 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.818e-05/0.3593, allocations: 79.28 kB / 0.5651 GB, free: 15.53 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3593, allocations: 0 / 0.5651 GB, free: 15.53 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002901/0.3596, allocations: 47.86 kB / 0.5651 GB, free: 15.48 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.000849/0.3605, allocations: 0.7506 MB / 0.5658 GB, free: 14.72 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002475/0.3607, allocations: 131.6 kB / 0.566 GB, free: 14.58 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.3607, allocations: 4.062 kB / 0.566 GB, free: 14.57 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 7.773e-05/0.3608, allocations: 23.98 kB / 0.566 GB, free: 14.55 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001686/0.361, allocations: 8 kB / 0.566 GB, free: 14.54 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001471/0.3624, allocations: 1.434 MB / 0.5674 GB, free: 12.98 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002997/0.3627, allocations: 0.6846 MB / 0.5681 GB, free: 12.27 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.426e-05/0.3628, allocations: 12.66 kB / 0.5681 GB, free: 12.25 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.872e-05/0.3628, allocations: 19.42 kB / 0.5681 GB, free: 12.23 MB / 414.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3628, allocations: 3.938 kB / 0.5681 GB, free: 12.23 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02845/0.3913, allocations: 3.186 MB / 0.5712 GB, free: 9.148 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.89/11.29, allocations: 2.812 kB / 0.5712 GB, free: 9.148 MB / 414.1 MB " [Timeout remaining time 649] (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.000166639 ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "Error: Could not read variable y in file ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.csv. Warning: Get data of variable y from file ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.csv failed! Error: Could not read variable cnt[2] in file ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.csv. Warning: Get data of variable cnt[2] from file ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.csv failed! Error: Could not read variable cnt[3] in file ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.csv. Warning: Get data of variable cnt[3] from file ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.csv failed! Error: Could not read variable samples in file ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.csv. Warning: Get data of variable samples from file ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.601768922999327]