Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.000889/0.000889, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0009916/0.0009916, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8884/0.8884, allocations: 177.1 MB / 204.3 MB, free: 5.734 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.238/0.238, allocations: 32.79 MB / 293.5 MB, free: 1.227 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.174e-06/2.174e-06, allocations: 0 / 439.6 MB, free: 4.273 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.295e-05/2.513e-05, allocations: 8.609 kB / 439.6 MB, free: 4.266 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001548/0.001573, allocations: 0.5323 MB / 440.1 MB, free: 3.734 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008758/0.002449, allocations: 426.3 kB / 440.5 MB, free: 3.316 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.923e-05/0.002488, allocations: 4 kB / 440.5 MB, free: 3.312 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 7.82e-05/0.002566, allocations: 3.938 kB / 440.5 MB, free: 3.309 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001336/0.0027, allocations: 7.922 kB / 440.5 MB, free: 3.301 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/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.00064/0.00334, allocations: 173 kB / 440.7 MB, free: 3.133 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.000234/0.003574, allocations: 87.78 kB / 440.8 MB, free: 3.047 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.312e-05/0.003617, allocations: 4 kB / 440.8 MB, free: 3.043 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.285e-05/0.00369, allocations: 43.95 kB / 440.8 MB, free: 3 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.69e-05/0.003757, allocations: 19.97 kB / 440.9 MB, free: 2.98 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.151e-05/0.003778, allocations: 0 / 440.9 MB, free: 2.98 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002223/0.004, allocations: 131.7 kB / 441 MB, free: 2.852 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 4.831e-05/0.004049, allocations: 23.91 kB / 441 MB, free: 2.828 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 3.545e-05/0.004084, allocations: 23.89 kB / 441 MB, free: 2.805 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002044/0.004289, allocations: 163.6 kB / 441.2 MB, free: 2.645 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.004292, allocations: 0 / 441.2 MB, free: 2.645 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.004294, allocations: 0 / 441.2 MB, free: 2.645 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.004299, allocations: 0 / 441.2 MB, free: 2.645 MB / 410.7 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.0004491/0.004748, allocations: 327.8 kB / 441.5 MB, free: 2.285 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.609e-05/0.004784, allocations: 12.03 kB / 441.5 MB, free: 2.273 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.031e-05/0.004814, allocations: 38.73 kB / 441.6 MB, free: 2.227 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.007e-05/0.004854, allocations: 8.891 kB / 441.6 MB, free: 2.219 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001296/0.004984, allocations: 125.7 kB / 441.7 MB, free: 2.07 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.026e-05/0.004994, allocations: 4.375 kB / 441.7 MB, free: 2.066 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.057e-06/0.005003, allocations: 4.375 kB / 441.7 MB, free: 2.062 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001452/0.005148, allocations: 98.12 kB / 441.8 MB, free: 1.961 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.044e-06/0.005155, allocations: 192 / 441.8 MB, free: 1.961 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.209e-05/0.005168, allocations: 384 / 441.8 MB, free: 1.961 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.005173, allocations: 8.125 kB / 441.8 MB, free: 1.953 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.922e-05/0.005223, allocations: 19.98 kB / 441.8 MB, free: 1.934 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001359/0.005358, allocations: 132.8 kB / 442 MB, free: 1.762 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.406e-05/0.005422, allocations: 42.5 kB / 442 MB, free: 1.711 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.054e-05/0.005453, allocations: 20.91 kB / 442 MB, free: 1.688 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.32e-05/0.005466, allocations: 0 / 442 MB, free: 1.688 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002192/0.005685, allocations: 139.4 kB / 442.2 MB, free: 1.539 MB / 410.7 MB Notification: Performance of pre-optimization done (n=10): time 7.72e-07/0.005686, allocations: 0 / 442.2 MB, free: 1.539 MB / 410.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002185/0.005905, allocations: 133.4 kB / 442.3 MB, free: 1.402 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.245e-05/0.005937, allocations: 59.41 kB / 442.4 MB, free: 1.332 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.266e-05/0.00599, allocations: 101.8 kB / 442.5 MB, free: 1.223 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.767e-05/0.006007, allocations: 33.7 kB / 442.5 MB, free: 1.184 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.561e-05/0.006033, allocations: 80.14 kB / 442.6 MB, free: 1.102 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.334e-05/0.006056, allocations: 23.84 kB / 442.6 MB, free: 1.078 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.25e-05/0.006089, allocations: 29.72 kB / 442.6 MB, free: 1.043 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.459e-05/0.006164, allocations: 322.8 kB / 442.9 MB, free: 0.7188 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.318e-05/0.006207, allocations: 49.69 kB / 443 MB, free: 0.6641 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.973e-05/0.006266, allocations: 108.5 kB / 443.1 MB, free: 0.5273 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001328/0.006399, allocations: 140.4 kB / 443.2 MB, free: 368 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.006401, allocations: 4 kB / 443.2 MB, free: 364 kB / 410.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001476/0.006549, allocations: 188.9 kB / 443.4 MB, free: 156 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.522e-05/0.006614, allocations: 33.7 kB / 443.4 MB, free: 116 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.006619, allocations: 0 / 443.4 MB, free: 116 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.291e-05/0.006632, allocations: 7.938 kB / 443.5 MB, free: 108 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.432e-05/0.006716, allocations: 19.92 kB / 443.5 MB, free: 88 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.952e-06/0.006722, allocations: 4 kB / 443.5 MB, free: 84 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.204e-05/0.006754, allocations: 24.05 kB / 443.5 MB, free: 60 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.147e-06/0.006763, allocations: 4 kB / 443.5 MB, free: 56 kB / 410.7 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.1563/0.163, allocations: 125.8 kB / 443.6 MB, free: 45.92 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.067e-05/0.1631, allocations: 5.797 kB / 443.6 MB, free: 45.92 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.765e-05/0.1631, allocations: 6.75 kB / 443.6 MB, free: 45.92 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.1631, allocations: 6.344 kB / 443.6 MB, free: 45.92 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.1631, allocations: 0 / 443.6 MB, free: 45.92 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.1631, allocations: 3.234 kB / 443.6 MB, free: 45.92 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.47e-05/0.1632, allocations: 138.5 kB / 443.8 MB, free: 45.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1632, allocations: 0.5938 kB / 443.8 MB, free: 45.77 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.859e-05/0.1632, allocations: 9.781 kB / 443.8 MB, free: 45.77 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.1633, allocations: 3.234 kB / 443.8 MB, free: 45.77 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.335e-06/0.1633, allocations: 3.562 kB / 443.8 MB, free: 45.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.1633, allocations: 2.594 kB / 443.8 MB, free: 45.77 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.1633, allocations: 0.5312 kB / 443.8 MB, free: 45.77 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001442/0.1634, allocations: 134.4 kB / 443.9 MB, free: 45.7 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.063e-06/0.1634, allocations: 6.453 kB / 443.9 MB, free: 45.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.42e-05/0.1634, allocations: 7.938 kB / 443.9 MB, free: 45.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001038/0.1635, allocations: 18.28 kB / 444 MB, free: 45.7 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.089e-05/0.1636, allocations: 10.98 kB / 444 MB, free: 45.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.441e-05/0.1636, allocations: 7.422 kB / 444 MB, free: 45.7 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.727e-05/0.1636, allocations: 80.19 kB / 444.1 MB, free: 45.62 MB / 410.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1636, allocations: 0 / 444.1 MB, free: 45.62 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002474/0.1638, allocations: 47.45 kB / 444.1 MB, free: 45.62 MB / 410.7 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.0004267/0.1643, allocations: 0.7603 MB / 444.9 MB, free: 45.04 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001408/0.1644, allocations: 156.8 kB / 445 MB, free: 44.95 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1644, allocations: 2.875 kB / 445 MB, free: 44.95 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 3.07e-05/0.1644, allocations: 25.38 kB / 445 MB, free: 44.95 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001163/0.1646, allocations: 13.56 kB / 445.1 MB, free: 44.94 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007183/0.1653, allocations: 1.55 MB / 446.6 MB, free: 43.6 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.836e-05/0.1653, allocations: 65.39 kB / 446.7 MB, free: 43.53 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 3.746e-05/0.1653, allocations: 21.62 kB / 446.7 MB, free: 43.53 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.776e-05/0.1654, allocations: 18.31 kB / 446.7 MB, free: 43.52 MB / 410.7 MB Notification: Performance of SimCode: time 5.31e-07/0.1654, allocations: 0 / 446.7 MB, free: 43.52 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01544/0.1808, allocations: 3.855 MB / 450.6 MB, free: 42.46 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.863/7.043, allocations: 9.688 kB / 450.6 MB, free: 42.45 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_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_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.csv. Warning: Get data of variable y from file ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.csv failed! Error: Could not read variable cnt[2] in file ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.csv. Warning: Get data of variable cnt[2] from file ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.csv failed! Error: Could not read variable cnt[3] in file ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.csv. Warning: Get data of variable cnt[3] from file ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.csv failed! Error: Could not read variable samples in file ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.csv. Warning: Get data of variable samples from file ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.125792709179223]