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.001447/0.001447, allocations: 112 kB / 20.48 MB, free: 1.27 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.001519/0.001519, allocations: 209.7 kB / 23.77 MB, free: 4.445 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.469/1.469, allocations: 230.5 MB / 257.4 MB, free: 7.727 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.2371/0.2371, allocations: 46.95 MB / 360.9 MB, free: 3.887 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.00319/0.00319, allocations: 83.84 kB / 0.4962 GB, free: 7.504 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3768/0.38, allocations: 66.09 MB / 0.5608 GB, free: 3.996 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.002126/0.3821, allocations: 0.5247 MB / 0.5613 GB, free: 3.477 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001035/0.3832, allocations: 434.7 kB / 0.5617 GB, free: 3.051 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.428e-05/0.3832, allocations: 0 / 0.5617 GB, free: 3.051 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 9.267e-05/0.3833, allocations: 0 / 0.5617 GB, free: 3.051 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001462/0.3835, allocations: 7.938 kB / 0.5617 GB, free: 3.043 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.0006647/0.3841, allocations: 179.5 kB / 0.5619 GB, free: 2.867 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001816/0.3843, allocations: 79.84 kB / 0.5619 GB, free: 2.789 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.536e-05/0.3844, allocations: 7.938 kB / 0.5619 GB, free: 2.781 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.592e-05/0.3844, allocations: 39.95 kB / 0.562 GB, free: 2.742 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.566e-05/0.3845, allocations: 19.92 kB / 0.562 GB, free: 2.723 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.187e-05/0.3845, allocations: 0 / 0.562 GB, free: 2.723 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000278/0.3848, allocations: 123.8 kB / 0.5621 GB, free: 2.602 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.468e-05/0.3849, allocations: 27.89 kB / 0.5621 GB, free: 2.574 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.297e-05/0.3849, allocations: 27.91 kB / 0.5622 GB, free: 2.547 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002482/0.3852, allocations: 137.5 kB / 0.5623 GB, free: 2.414 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.3852, allocations: 0 / 0.5623 GB, free: 2.414 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.3852, allocations: 0 / 0.5623 GB, free: 2.414 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.09e-06/0.3852, allocations: 0 / 0.5623 GB, free: 2.414 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.0005948/0.3858, allocations: 331.8 kB / 0.5626 GB, free: 2.051 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.945e-05/0.3858, allocations: 8.031 kB / 0.5626 GB, free: 2.043 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.568e-05/0.3859, allocations: 42.73 kB / 0.5627 GB, free: 1.992 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.926e-05/0.3859, allocations: 12.89 kB / 0.5627 GB, free: 1.98 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001958/0.3861, allocations: 122.5 kB / 0.5628 GB, free: 1.836 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.251e-05/0.3861, allocations: 4.375 kB / 0.5628 GB, free: 1.832 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.289e-05/0.3861, allocations: 4.375 kB / 0.5628 GB, free: 1.828 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002139/0.3863, allocations: 98.12 kB / 0.5629 GB, free: 1.727 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.3863, allocations: 3.938 kB / 0.5629 GB, free: 1.723 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.676e-05/0.3864, allocations: 0 / 0.5629 GB, free: 1.723 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.3864, allocations: 4 kB / 0.5629 GB, free: 1.719 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.674e-05/0.3864, allocations: 23.97 kB / 0.5629 GB, free: 1.695 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002037/0.3866, allocations: 136.7 kB / 0.5631 GB, free: 1.52 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001098/0.3868, allocations: 38.56 kB / 0.5631 GB, free: 1.473 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.242e-05/0.3868, allocations: 24.84 kB / 0.5631 GB, free: 1.445 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.269e-05/0.3868, allocations: 0 / 0.5631 GB, free: 1.445 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003135/0.3871, allocations: 139.2 kB / 0.5633 GB, free: 1.297 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.252e-06/0.3871, allocations: 0 / 0.5633 GB, free: 1.297 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003461/0.3875, allocations: 125.5 kB / 0.5634 GB, free: 1.168 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.153e-05/0.3875, allocations: 59.39 kB / 0.5634 GB, free: 1.098 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.056e-05/0.3876, allocations: 93.86 kB / 0.5635 GB, free: 0.9961 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.49e-05/0.3877, allocations: 33.7 kB / 0.5636 GB, free: 0.957 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.877e-05/0.3877, allocations: 88.12 kB / 0.5636 GB, free: 0.8672 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.27e-05/0.3878, allocations: 27.94 kB / 0.5637 GB, free: 0.8398 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.423e-05/0.3878, allocations: 33.7 kB / 0.5637 GB, free: 0.8008 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.388, allocations: 314.8 kB / 0.564 GB, free: 496 kB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.77e-05/0.388, allocations: 49.67 kB / 0.564 GB, free: 440 kB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001097/0.3882, allocations: 112.4 kB / 0.5641 GB, free: 296 kB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002143/0.3884, allocations: 148.4 kB / 0.5643 GB, free: 116 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.3884, allocations: 0 / 0.5643 GB, free: 116 kB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002698/0.3886, allocations: 184.9 kB / 0.5645 GB, free: 15.91 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.725e-05/0.3887, allocations: 29.7 kB / 0.5645 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.896e-06/0.3887, allocations: 7.984 kB / 0.5645 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.766e-05/0.3887, allocations: 4 kB / 0.5645 GB, free: 15.87 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001183/0.3888, allocations: 20.16 kB / 0.5645 GB, free: 15.85 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.198e-06/0.3888, allocations: 4.062 kB / 0.5645 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.017e-05/0.3889, allocations: 11.95 kB / 0.5645 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.57e-05/0.3889, allocations: 11.98 kB / 0.5646 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.0001545/0.389, allocations: 125.8 kB / 0.5647 GB, free: 15.69 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.143e-05/0.3891, allocations: 11.95 kB / 0.5647 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.156e-05/0.3891, allocations: 12.05 kB / 0.5647 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.3891, allocations: 0 / 0.5647 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.167e-06/0.3891, allocations: 4 kB / 0.5647 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.247e-06/0.3891, allocations: 0 / 0.5647 GB, free: 15.66 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001427/0.3893, allocations: 136.8 kB / 0.5648 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.3893, allocations: 3.938 kB / 0.5648 GB, free: 15.48 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.689e-05/0.3893, allocations: 11.92 kB / 0.5648 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.664e-06/0.3893, allocations: 192 / 0.5648 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/0.3893, allocations: 4 kB / 0.5648 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.3893, allocations: 288 / 0.5648 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.3893, allocations: 0 / 0.5648 GB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002278/0.3896, allocations: 141 kB / 0.565 GB, free: 15.3 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.27e-05/0.3896, allocations: 11.89 kB / 0.565 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.757e-05/0.3896, allocations: 4 kB / 0.565 GB, free: 15.29 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002025/0.3898, allocations: 23.97 kB / 0.565 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.443e-05/0.3898, allocations: 3.984 kB / 0.565 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.404e-05/0.3898, allocations: 4 kB / 0.565 GB, free: 15.26 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.876e-05/0.3899, allocations: 87.27 kB / 0.5651 GB, free: 15.17 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3899, allocations: 0 / 0.5651 GB, free: 15.17 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002826/0.3902, allocations: 43.88 kB / 0.5652 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.0008729/0.391, allocations: 0.752 MB / 0.5659 GB, free: 14.37 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000237/0.3913, allocations: 149 kB / 0.566 GB, free: 14.21 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.3913, allocations: 0 / 0.566 GB, free: 14.21 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.854e-05/0.3913, allocations: 27.98 kB / 0.5661 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.0001574/0.3915, allocations: 15.91 kB / 0.5661 GB, free: 14.16 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001628/0.3931, allocations: 1.551 MB / 0.5676 GB, free: 12.46 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.205e-05/0.3932, allocations: 63.34 kB / 0.5676 GB, free: 12.38 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.467e-05/0.3932, allocations: 20.59 kB / 0.5677 GB, free: 12.36 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.112e-05/0.3933, allocations: 11.44 kB / 0.5677 GB, free: 12.34 MB / 414.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3933, allocations: 3.938 kB / 0.5677 GB, free: 12.34 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0303/0.4236, allocations: 3.787 MB / 0.5714 GB, free: 8.668 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.31/11.73, allocations: 0 / 0.5714 GB, free: 8.668 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: 14.953217233065516]