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.001879/0.001879, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.002142/0.002142, allocations: 206.4 kB / 23.72 MB, free: 4.391 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.513/1.513, allocations: 230.5 MB / 257.4 MB, free: 7.734 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.2326/0.2326, allocations: 46.95 MB / 360.8 MB, free: 3.918 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.002501/0.002501, allocations: 83.8 kB / 0.4962 GB, free: 7.523 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3471/0.3496, allocations: 66.07 MB / 0.5607 GB, free: 4 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001595/0.3512, allocations: 0.5328 MB / 0.5612 GB, free: 3.473 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008532/0.3521, allocations: 426.7 kB / 0.5616 GB, free: 3.055 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.952e-05/0.3521, allocations: 0 / 0.5616 GB, free: 3.055 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 6.635e-05/0.3522, allocations: 3.938 kB / 0.5616 GB, free: 3.051 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001065/0.3523, allocations: 11.92 kB / 0.5616 GB, free: 3.039 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.0005889/0.3529, allocations: 170.9 kB / 0.5618 GB, free: 2.875 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001514/0.353, allocations: 83.86 kB / 0.5619 GB, free: 2.793 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.828e-05/0.3531, allocations: 0 / 0.5619 GB, free: 2.793 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.353e-05/0.3531, allocations: 43.89 kB / 0.5619 GB, free: 2.75 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.522e-05/0.3532, allocations: 15.92 kB / 0.5619 GB, free: 2.734 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.934e-05/0.3532, allocations: 8 kB / 0.5619 GB, free: 2.727 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002684/0.3535, allocations: 135.7 kB / 0.5621 GB, free: 2.594 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.056e-05/0.3535, allocations: 23.95 kB / 0.5621 GB, free: 2.57 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 4.584e-05/0.3536, allocations: 23.91 kB / 0.5621 GB, free: 2.547 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002153/0.3538, allocations: 129.5 kB / 0.5622 GB, free: 2.422 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.3538, allocations: 0 / 0.5622 GB, free: 2.422 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.3538, allocations: 0 / 0.5622 GB, free: 2.422 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.607e-06/0.3538, allocations: 3.938 kB / 0.5622 GB, free: 2.418 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.0005349/0.3543, allocations: 335.8 kB / 0.5626 GB, free: 2.051 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.3544, allocations: 12.03 kB / 0.5626 GB, free: 2.039 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.144e-05/0.3544, allocations: 34.75 kB / 0.5626 GB, free: 1.996 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.352e-05/0.3545, allocations: 12.83 kB / 0.5626 GB, free: 1.984 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001849/0.3546, allocations: 126.5 kB / 0.5627 GB, free: 1.836 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.208e-06/0.3546, allocations: 4.375 kB / 0.5627 GB, free: 1.832 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.635e-05/0.3547, allocations: 4.359 kB / 0.5627 GB, free: 1.828 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001929/0.3549, allocations: 90.19 kB / 0.5628 GB, free: 1.734 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.3549, allocations: 3.938 kB / 0.5628 GB, free: 1.73 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.127e-05/0.3549, allocations: 8 kB / 0.5628 GB, free: 1.723 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.3549, allocations: 0 / 0.5628 GB, free: 1.723 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.219e-05/0.355, allocations: 23.97 kB / 0.5629 GB, free: 1.699 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001738/0.3551, allocations: 136.7 kB / 0.563 GB, free: 1.523 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.018e-05/0.3552, allocations: 50.55 kB / 0.563 GB, free: 1.465 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.575e-05/0.3553, allocations: 20.91 kB / 0.5631 GB, free: 1.441 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.839e-05/0.3553, allocations: 4 kB / 0.5631 GB, free: 1.438 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002507/0.3555, allocations: 127.2 kB / 0.5632 GB, free: 1.301 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.273e-06/0.3555, allocations: 0 / 0.5632 GB, free: 1.301 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.000289/0.3558, allocations: 129.5 kB / 0.5633 GB, free: 1.168 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.613e-05/0.3559, allocations: 63.55 kB / 0.5634 GB, free: 1.094 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.144e-05/0.356, allocations: 97.86 kB / 0.5635 GB, free: 0.9883 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.378e-05/0.356, allocations: 37.69 kB / 0.5635 GB, free: 0.9453 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.864e-05/0.356, allocations: 80.14 kB / 0.5636 GB, free: 0.8633 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.366e-05/0.3561, allocations: 19.86 kB / 0.5636 GB, free: 0.8438 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.102e-05/0.3561, allocations: 33.7 kB / 0.5636 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001385/0.3563, allocations: 322.8 kB / 0.5639 GB, free: 492 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.251e-05/0.3563, allocations: 49.69 kB / 0.564 GB, free: 436 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001052/0.3564, allocations: 100.5 kB / 0.5641 GB, free: 304 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001924/0.3566, allocations: 152.4 kB / 0.5642 GB, free: 120 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.3566, allocations: 0 / 0.5642 GB, free: 120 kB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000255/0.3569, allocations: 189.3 kB / 0.5644 GB, free: 15.91 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.451e-05/0.3569, allocations: 41.72 kB / 0.5644 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.3569, allocations: 0 / 0.5644 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.392e-05/0.3569, allocations: 7.938 kB / 0.5645 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.703e-05/0.357, allocations: 12 kB / 0.5645 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.256e-05/0.357, allocations: 11.92 kB / 0.5645 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.295e-05/0.3571, allocations: 11.95 kB / 0.5645 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.112e-05/0.3571, allocations: 4 kB / 0.5645 GB, free: 15.82 MB / 414.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.000129/0.3572, allocations: 117.8 kB / 0.5646 GB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.351e-05/0.3573, allocations: 19.88 kB / 0.5646 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.657e-05/0.3573, allocations: 8.062 kB / 0.5646 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.3573, allocations: 4 kB / 0.5646 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.3573, allocations: 0 / 0.5646 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.3573, allocations: 0 / 0.5646 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00014/0.3574, allocations: 132.8 kB / 0.5648 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.3574, allocations: 0 / 0.5648 GB, free: 15.49 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.075e-05/0.3575, allocations: 19.92 kB / 0.5648 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.536e-06/0.3575, allocations: 7.938 kB / 0.5648 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.756e-06/0.3575, allocations: 0 / 0.5648 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.253e-06/0.3575, allocations: 0 / 0.5648 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.3575, allocations: 4 kB / 0.5648 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002122/0.3577, allocations: 133.1 kB / 0.5649 GB, free: 15.31 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.241e-05/0.3577, allocations: 15.83 kB / 0.5649 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.975e-05/0.3577, allocations: 4 kB / 0.5649 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001831/0.3579, allocations: 15.97 kB / 0.565 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.548e-05/0.358, allocations: 7.984 kB / 0.565 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.19e-05/0.358, allocations: 4 kB / 0.565 GB, free: 15.26 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.211e-05/0.358, allocations: 83.45 kB / 0.565 GB, free: 15.18 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.358, allocations: 0 / 0.565 GB, free: 15.18 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002675/0.3583, allocations: 47.88 kB / 0.5651 GB, free: 15.13 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.0008119/0.3591, allocations: 0.756 MB / 0.5658 GB, free: 14.37 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002127/0.3593, allocations: 145.4 kB / 0.566 GB, free: 14.21 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.3593, allocations: 8.062 kB / 0.566 GB, free: 14.2 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.698e-05/0.3594, allocations: 27.92 kB / 0.566 GB, free: 14.18 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001479/0.3595, allocations: 11.98 kB / 0.566 GB, free: 14.16 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001466/0.361, allocations: 1.542 MB / 0.5675 GB, free: 12.47 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.949e-05/0.361, allocations: 67.34 kB / 0.5676 GB, free: 12.38 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.841e-05/0.3611, allocations: 16.66 kB / 0.5676 GB, free: 12.36 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.883e-05/0.3611, allocations: 19.42 kB / 0.5676 GB, free: 12.34 MB / 414.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3611, allocations: 0 / 0.5676 GB, free: 12.34 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02884/0.39, allocations: 3.716 MB / 0.5712 GB, free: 8.742 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.46/11.85, allocations: 6.75 kB / 0.5713 GB, free: 8.742 MB / 414.1 MB " [Timeout remaining time 648] (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: 15.164325564168394]