Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.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.0008178/0.0008178, 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.0007895/0.0007895, allocations: 170 kB / 23.95 MB, free: 0.6094 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.9032/0.9032, allocations: 177.1 MB / 204.3 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2365/0.2365, allocations: 34.25 MB / 294.9 MB, free: 0.6875 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.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_1_0_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.973e-06/1.973e-06, allocations: 0 / 442.2 MB, free: 1.664 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.118e-05/2.315e-05, allocations: 4.391 kB / 442.2 MB, free: 1.66 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001737/0.001761, allocations: 0.5245 MB / 442.7 MB, free: 1.137 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008196/0.00258, allocations: 430.4 kB / 443.1 MB, free: 0.7148 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.833e-05/0.002619, allocations: 0 / 443.1 MB, free: 0.7148 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 8.1e-05/0.0027, allocations: 7.938 kB / 443.1 MB, free: 0.707 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001335/0.002833, allocations: 11.86 kB / 443.1 MB, free: 0.6953 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.0006854/0.003518, allocations: 175.1 kB / 443.3 MB, free: 0.5273 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.000174/0.003692, allocations: 83.84 kB / 443.4 MB, free: 456 kB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.204e-05/0.003734, allocations: 0 / 443.4 MB, free: 456 kB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.439e-05/0.003829, allocations: 51.89 kB / 443.4 MB, free: 404 kB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.188e-05/0.003891, allocations: 19.97 kB / 443.5 MB, free: 384 kB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.434e-05/0.003915, allocations: 0 / 443.5 MB, free: 384 kB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002454/0.00416, allocations: 127.7 kB / 443.6 MB, free: 256 kB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 5.25e-05/0.004213, allocations: 19.97 kB / 443.6 MB, free: 236 kB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 4.069e-05/0.004254, allocations: 23.91 kB / 443.6 MB, free: 212 kB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002636/0.004517, allocations: 167.5 kB / 443.8 MB, free: 44 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.525e-06/0.00452, allocations: 0 / 443.8 MB, free: 44 kB / 410.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.004521, allocations: 0 / 443.8 MB, free: 44 kB / 410.7 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.004526, allocations: 0 / 443.8 MB, free: 44 kB / 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.1937/0.1982, allocations: 325 kB / 444.1 MB, free: 44.2 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.92e-05/0.1983, allocations: 8.094 kB / 444.1 MB, free: 44.2 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.795e-05/0.1983, allocations: 41.59 kB / 444.2 MB, free: 44.16 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.009e-05/0.1984, allocations: 8.797 kB / 444.2 MB, free: 44.15 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001385/0.1985, allocations: 120.4 kB / 444.3 MB, free: 44.03 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.315e-05/0.1985, allocations: 5.406 kB / 444.3 MB, free: 44.03 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.147e-05/0.1985, allocations: 2.906 kB / 444.3 MB, free: 44.03 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001537/0.1987, allocations: 90.28 kB / 444.4 MB, free: 44 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-06/0.1987, allocations: 192 / 444.4 MB, free: 44 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.503e-05/0.1987, allocations: 4.812 kB / 444.4 MB, free: 44 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.1987, allocations: 4.125 kB / 444.4 MB, free: 43.99 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.068e-05/0.1988, allocations: 25.39 kB / 444.4 MB, free: 43.99 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001128/0.1989, allocations: 133.4 kB / 444.5 MB, free: 43.84 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.726e-05/0.1989, allocations: 47.86 kB / 444.6 MB, free: 43.82 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.385e-05/0.199, allocations: 21.67 kB / 444.6 MB, free: 43.81 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.469e-05/0.199, allocations: 0.625 kB / 444.6 MB, free: 43.81 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002217/0.1992, allocations: 133.6 kB / 444.7 MB, free: 43.76 MB / 410.7 MB Notification: Performance of pre-optimization done (n=10): time 9.92e-07/0.1992, allocations: 0 / 444.7 MB, free: 43.76 MB / 410.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002349/0.1995, allocations: 136.6 kB / 444.9 MB, free: 43.72 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.753e-05/0.1995, allocations: 57.91 kB / 444.9 MB, free: 43.66 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.499e-05/0.1995, allocations: 106.1 kB / 445 MB, free: 43.56 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.349e-05/0.1995, allocations: 30.83 kB / 445.1 MB, free: 43.53 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.492e-05/0.1996, allocations: 81.89 kB / 445.2 MB, free: 43.45 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.285e-05/0.1996, allocations: 30.3 kB / 445.2 MB, free: 43.44 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.133e-05/0.1996, allocations: 28.94 kB / 445.2 MB, free: 43.42 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.281e-05/0.1996, allocations: 316.5 kB / 445.5 MB, free: 43.11 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.121e-05/0.1997, allocations: 53.14 kB / 445.6 MB, free: 43.08 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.662e-05/0.1997, allocations: 106.4 kB / 445.7 MB, free: 42.98 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001181/0.1998, allocations: 144.6 kB / 445.8 MB, free: 42.89 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.1999, allocations: 3.062 kB / 445.8 MB, free: 42.89 MB / 410.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001262/0.2, allocations: 188.9 kB / 446 MB, free: 42.78 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.381e-05/0.2, allocations: 37.23 kB / 446 MB, free: 42.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.159e-06/0.2, allocations: 3.875 kB / 446 MB, free: 42.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.355e-05/0.2, allocations: 6.719 kB / 446 MB, free: 42.75 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.675e-05/0.2001, allocations: 16.81 kB / 446.1 MB, free: 42.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.583e-06/0.2001, allocations: 2.719 kB / 446.1 MB, free: 42.75 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.931e-05/0.2001, allocations: 10.48 kB / 446.1 MB, free: 42.74 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.418e-06/0.2002, allocations: 5.375 kB / 446.1 MB, free: 42.74 MB / 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 9.683e-05/0.2002, allocations: 132.5 kB / 446.2 MB, free: 42.62 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.479e-05/0.2003, allocations: 2.938 kB / 446.2 MB, free: 42.62 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.211e-05/0.2003, allocations: 17.81 kB / 446.2 MB, free: 42.62 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.2003, allocations: 6.938 kB / 446.2 MB, free: 42.62 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.2003, allocations: 0 / 446.2 MB, free: 42.62 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.806e-06/0.2003, allocations: 0 / 446.2 MB, free: 42.62 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.76e-05/0.2004, allocations: 143.4 kB / 446.4 MB, free: 42.46 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.2004, allocations: 0.5625 kB / 446.4 MB, free: 42.46 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.932e-05/0.2004, allocations: 8.438 kB / 446.4 MB, free: 42.46 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.2004, allocations: 0 / 446.4 MB, free: 42.46 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.045e-06/0.2004, allocations: 2.438 kB / 446.4 MB, free: 42.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.644e-06/0.2004, allocations: 9.938 kB / 446.4 MB, free: 42.46 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.2004, allocations: 7.781 kB / 446.4 MB, free: 42.46 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001152/0.2005, allocations: 126.8 kB / 446.5 MB, free: 42.39 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.971e-06/0.2005, allocations: 6.734 kB / 446.5 MB, free: 42.39 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.498e-05/0.2005, allocations: 9.141 kB / 446.5 MB, free: 42.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.615e-05/0.2006, allocations: 26.53 kB / 446.6 MB, free: 42.38 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.061e-05/0.2007, allocations: 6.062 kB / 446.6 MB, free: 42.38 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.017e-05/0.2007, allocations: 2.688 kB / 446.6 MB, free: 42.38 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.425e-05/0.2007, allocations: 78.09 kB / 446.7 MB, free: 42.3 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.2007, allocations: 3.938 kB / 446.7 MB, free: 42.3 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0001935/0.2009, allocations: 48.98 kB / 446.7 MB, free: 42.29 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.000434/0.2013, allocations: 0.7433 MB / 447.5 MB, free: 41.68 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001283/0.2014, allocations: 152.1 kB / 447.6 MB, free: 41.56 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.2014, allocations: 0.6562 kB / 447.6 MB, free: 41.56 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 3.121e-05/0.2015, allocations: 33.34 kB / 447.6 MB, free: 41.55 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001168/0.2016, allocations: 21.09 kB / 447.7 MB, free: 41.54 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007299/0.2023, allocations: 1.542 MB / 449.2 MB, free: 40.11 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.2e-05/0.2024, allocations: 73.25 kB / 449.3 MB, free: 40.03 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 3.826e-05/0.2024, allocations: 12.72 kB / 449.3 MB, free: 40.03 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.982e-05/0.2024, allocations: 18.7 kB / 449.3 MB, free: 40.02 MB / 410.7 MB Notification: Performance of SimCode: time 6.81e-07/0.2024, allocations: 0 / 449.3 MB, free: 40.02 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01492/0.2173, allocations: 3.844 MB / 453.1 MB, free: 38.92 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.102/7.32, allocations: 7.312 kB / 453.2 MB, free: 38.92 MB / 410.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.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_1_0_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/Random/TestRandomIntegers/TestRandomIntegers.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.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.1.0_ModelicaTest.Math.Random.TestRandomIntegers_res.csv. Warning: Get data of variable y from file ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers_res.csv failed! Error: Could not read variable cnt[2] in file ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers_res.csv. Warning: Get data of variable cnt[2] from file ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers_res.csv failed! Error: Could not read variable cnt[3] in file ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers_res.csv. Warning: Get data of variable cnt[3] from file ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers_res.csv failed! Error: Could not read variable samples in file ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers_res.csv. Warning: Get data of variable samples from file ModelicaTest_4.1.0_ModelicaTest.Math.Random.TestRandomIntegers_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.429076329804957]