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.0008569/0.0008569, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.00083/0.00083, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9482/0.9482, allocations: 177 MB / 204.1 MB, free: 5.773 MB / 186.7 MB " [Timeout remaining time 179] 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.2977/0.2977, allocations: 34.23 MB / 294.8 MB, free: 0.6914 MB / 266.7 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 1.623e-06/1.623e-06, allocations: 0 / 442.1 MB, free: 1.582 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.077e-05/2.239e-05, allocations: 5.094 kB / 442.2 MB, free: 1.578 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001087/0.001109, allocations: 0.5323 MB / 442.7 MB, free: 1.047 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007264/0.001836, allocations: 430.3 kB / 443.1 MB, free: 0.625 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.82e-05/0.001874, allocations: 0 / 443.1 MB, free: 0.625 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 9.239e-05/0.001966, allocations: 0 / 443.1 MB, free: 0.625 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001316/0.002098, allocations: 11.88 kB / 443.1 MB, free: 0.6133 MB / 410.7 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.0004948/0.002593, allocations: 171.4 kB / 443.3 MB, free: 456 kB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001449/0.002738, allocations: 83.86 kB / 443.4 MB, free: 372 kB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.148e-05/0.002779, allocations: 3.938 kB / 443.4 MB, free: 368 kB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.044e-05/0.00286, allocations: 55.83 kB / 443.4 MB, free: 312 kB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.825e-05/0.002918, allocations: 11.98 kB / 443.4 MB, free: 300 kB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 2.52e-05/0.002943, allocations: 4 kB / 443.4 MB, free: 296 kB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000182/0.003125, allocations: 131.7 kB / 443.6 MB, free: 164 kB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 5.415e-05/0.003179, allocations: 23.91 kB / 443.6 MB, free: 140 kB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 3.749e-05/0.003217, allocations: 19.97 kB / 443.6 MB, free: 120 kB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2028/0.206, allocations: 152.4 kB / 443.8 MB, free: 43.21 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.206, allocations: 2.75 kB / 443.8 MB, free: 43.21 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.206, allocations: 1.625 kB / 443.8 MB, free: 43.21 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.759e-06/0.206, allocations: 0 / 443.8 MB, free: 43.21 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.0004246/0.2065, allocations: 326.7 kB / 444.1 MB, free: 42.92 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.2065, allocations: 12.31 kB / 444.1 MB, free: 42.92 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.69e-05/0.2065, allocations: 37.02 kB / 444.1 MB, free: 42.88 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.28e-05/0.2066, allocations: 11.02 kB / 444.1 MB, free: 42.88 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001215/0.2067, allocations: 135.1 kB / 444.3 MB, free: 42.75 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.477e-06/0.2067, allocations: 5.594 kB / 444.3 MB, free: 42.75 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.508e-06/0.2067, allocations: 3.156 kB / 444.3 MB, free: 42.75 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001472/0.2069, allocations: 87.42 kB / 444.4 MB, free: 42.72 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.2069, allocations: 0.75 kB / 444.4 MB, free: 42.72 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.358e-05/0.2069, allocations: 4.188 kB / 444.4 MB, free: 42.72 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.2069, allocations: 9.656 kB / 444.4 MB, free: 42.72 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.788e-05/0.2069, allocations: 19.69 kB / 444.4 MB, free: 42.72 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001148/0.2071, allocations: 134 kB / 444.5 MB, free: 42.57 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.283e-05/0.2071, allocations: 43.53 kB / 444.6 MB, free: 42.54 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.176e-05/0.2071, allocations: 20.8 kB / 444.6 MB, free: 42.54 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.643e-05/0.2072, allocations: 0 / 444.6 MB, free: 42.54 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002392/0.2074, allocations: 137.8 kB / 444.7 MB, free: 42.49 MB / 410.7 MB Notification: Performance of pre-optimization done (n=10): time 7.01e-07/0.2074, allocations: 0 / 444.7 MB, free: 42.49 MB / 410.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002485/0.2077, allocations: 124.2 kB / 444.9 MB, free: 42.45 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.3e-05/0.2077, allocations: 56.72 kB / 444.9 MB, free: 42.39 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.277e-05/0.2077, allocations: 104 kB / 445 MB, free: 42.29 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.475e-05/0.2077, allocations: 32.52 kB / 445 MB, free: 42.26 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.927e-05/0.2078, allocations: 90.58 kB / 445.1 MB, free: 42.18 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.646e-05/0.2078, allocations: 29.19 kB / 445.2 MB, free: 42.16 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.579e-05/0.2078, allocations: 27.83 kB / 445.2 MB, free: 42.15 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.898e-05/0.2079, allocations: 320.1 kB / 445.5 MB, free: 41.84 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.017e-05/0.2079, allocations: 50.97 kB / 445.5 MB, free: 41.8 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.414e-05/0.2079, allocations: 101 kB / 445.6 MB, free: 41.71 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001265/0.2081, allocations: 153.3 kB / 445.8 MB, free: 41.62 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2081, allocations: 0 / 445.8 MB, free: 41.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001384/0.2082, allocations: 191.7 kB / 446 MB, free: 41.52 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.428e-05/0.2082, allocations: 34.02 kB / 446 MB, free: 41.49 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.2082, allocations: 2.906 kB / 446 MB, free: 41.49 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.2083, allocations: 6.625 kB / 446 MB, free: 41.48 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.677e-05/0.2084, allocations: 17.67 kB / 446 MB, free: 41.48 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.594e-06/0.2084, allocations: 5.812 kB / 446 MB, free: 41.48 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.299e-05/0.2084, allocations: 11.83 kB / 446.1 MB, free: 41.48 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.009e-05/0.2084, allocations: 5.25 kB / 446.1 MB, free: 41.48 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 0.0001042/0.2085, allocations: 134.9 kB / 446.2 MB, free: 41.37 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.544e-05/0.2085, allocations: 2.781 kB / 446.2 MB, free: 41.37 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.266e-05/0.2086, allocations: 9.875 kB / 446.2 MB, free: 41.36 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.2086, allocations: 7.375 kB / 446.2 MB, free: 41.36 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.2086, allocations: 0 / 446.2 MB, free: 41.36 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.2086, allocations: 3.328 kB / 446.2 MB, free: 41.36 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.802e-05/0.2087, allocations: 139.9 kB / 446.4 MB, free: 41.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.2087, allocations: 2.688 kB / 446.4 MB, free: 41.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.906e-05/0.2087, allocations: 8.703 kB / 446.4 MB, free: 41.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.203e-06/0.2087, allocations: 1.922 kB / 446.4 MB, free: 41.2 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.358e-06/0.2087, allocations: 2.75 kB / 446.4 MB, free: 41.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.51e-07/0.2087, allocations: 3.938 kB / 446.4 MB, free: 41.2 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.2087, allocations: 224 / 446.4 MB, free: 41.2 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001299/0.2088, allocations: 139.2 kB / 446.5 MB, free: 41.13 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.376e-06/0.2088, allocations: 8.031 kB / 446.5 MB, free: 41.13 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.49e-05/0.2088, allocations: 2.688 kB / 446.5 MB, free: 41.13 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001023/0.2089, allocations: 18.8 kB / 446.5 MB, free: 41.12 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.319e-05/0.209, allocations: 9.781 kB / 446.6 MB, free: 41.12 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.26e-05/0.209, allocations: 5.969 kB / 446.6 MB, free: 41.12 MB / 410.7 MB Notification: Performance of sorting global known variables: time 1.786e-05/0.209, allocations: 77.94 kB / 446.6 MB, free: 41.05 MB / 410.7 MB Notification: Performance of sort global known variables: time 5e-08/0.209, allocations: 2.688 kB / 446.6 MB, free: 41.05 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002041/0.2092, allocations: 46.17 kB / 446.7 MB, free: 41.05 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.0004662/0.2097, allocations: 0.7607 MB / 447.4 MB, free: 40.45 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001675/0.2098, allocations: 150 kB / 447.6 MB, free: 40.36 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.2098, allocations: 0 / 447.6 MB, free: 40.36 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 3.723e-05/0.2099, allocations: 30.41 kB / 447.6 MB, free: 40.36 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001306/0.21, allocations: 18.72 kB / 447.6 MB, free: 40.35 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008039/0.2108, allocations: 1.542 MB / 449.2 MB, free: 39 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.638e-05/0.2108, allocations: 66.2 kB / 449.2 MB, free: 38.93 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 3.903e-05/0.2109, allocations: 16.06 kB / 449.3 MB, free: 38.92 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.18e-05/0.2109, allocations: 15.44 kB / 449.3 MB, free: 38.91 MB / 410.7 MB Notification: Performance of SimCode: time 9.01e-07/0.2109, allocations: 0 / 449.3 MB, free: 38.91 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01655/0.2275, allocations: 3.845 MB / 453.1 MB, free: 37.81 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.067/7.295, allocations: 13.25 kB / 453.1 MB, free: 37.8 MB / 410.7 MB " [Timeout remaining time 653] (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/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_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: 9.563251321204007]