Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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.0009596/0.0009596, allocations: 75.7 kB / 20.01 MB, free: 4.508 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.001295/0.001295, allocations: 169.9 kB / 23.32 MB, free: 1.199 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9124/0.9124, allocations: 158.6 MB / 185.1 MB, free: 3 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1482/0.1482, allocations: 32.36 MB / 269.7 MB, free: 14.92 MB / 266.7 MB " [Timeout remaining time 180] Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.966e-06/2.966e-06, allocations: 0 / 407.1 MB, free: 2.141 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.673e-05/2.97e-05, allocations: 2.281 kB / 407.1 MB, free: 2.137 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001364/0.001393, allocations: 0.5415 MB / 407.6 MB, free: 1.598 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007123/0.002106, allocations: 445 kB / 408 MB, free: 1.16 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.515e-05/0.002151, allocations: 0 / 408 MB, free: 1.16 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 8.718e-05/0.002238, allocations: 0 / 408 MB, free: 1.16 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001338/0.002372, allocations: 7.875 kB / 408 MB, free: 1.152 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005911/0.002963, allocations: 179.4 kB / 408.2 MB, free: 0.9766 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001451/0.003108, allocations: 75.86 kB / 408.3 MB, free: 0.9023 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.972e-05/0.003148, allocations: 4 kB / 408.3 MB, free: 0.8984 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.206e-05/0.00322, allocations: 43.95 kB / 408.3 MB, free: 0.8555 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001436/0.004656, allocations: 476.2 kB / 408.8 MB, free: 444 kB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.873e-05/0.004704, allocations: 4 kB / 408.8 MB, free: 440 kB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.058e-05/0.004775, allocations: 12 kB / 408.8 MB, free: 428 kB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.903e-05/0.004824, allocations: 23.95 kB / 408.8 MB, free: 404 kB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.051e-05/0.004864, allocations: 27.91 kB / 408.9 MB, free: 376 kB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001964/0.005061, allocations: 75.81 kB / 408.9 MB, free: 300 kB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.595e-06/0.005064, allocations: 3.938 kB / 408.9 MB, free: 296 kB / 378.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.005066, allocations: 4 kB / 408.9 MB, free: 292 kB / 378.7 MB Notification: Performance of Transformations before backend: time 4.518e-06/0.00507, allocations: 0 / 408.9 MB, free: 292 kB / 378.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.0004769/0.005547, allocations: 319.9 kB / 409.3 MB, free: 15.93 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.656e-05/0.005584, allocations: 8.031 kB / 409.3 MB, free: 15.93 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.451e-05/0.005618, allocations: 34.75 kB / 409.3 MB, free: 15.88 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.967e-05/0.005668, allocations: 4.891 kB / 409.3 MB, free: 15.88 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001991/0.005867, allocations: 125.8 kB / 409.4 MB, free: 15.73 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.097e-05/0.005878, allocations: 12.36 kB / 409.4 MB, free: 15.72 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.331e-05/0.005891, allocations: 8.359 kB / 409.5 MB, free: 15.71 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001709/0.006062, allocations: 86.2 kB / 409.5 MB, free: 15.62 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.707e-06/0.006071, allocations: 192 / 409.5 MB, free: 15.62 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.47e-05/0.006086, allocations: 384 / 409.5 MB, free: 15.62 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.563e-06/0.006092, allocations: 4.125 kB / 409.5 MB, free: 15.62 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.476e-05/0.006147, allocations: 27.91 kB / 409.6 MB, free: 15.59 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001424/0.006289, allocations: 136.7 kB / 409.7 MB, free: 15.41 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.656e-05/0.006356, allocations: 38.56 kB / 409.7 MB, free: 15.37 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.263e-05/0.006388, allocations: 24.91 kB / 409.8 MB, free: 15.34 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.5e-05/0.006403, allocations: 0 / 409.8 MB, free: 15.34 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000212/0.006615, allocations: 139.2 kB / 409.9 MB, free: 15.19 MB / 394.7 MB Notification: Performance of pre-optimization done (n=10): time 1.353e-06/0.006617, allocations: 0 / 409.9 MB, free: 15.19 MB / 394.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002448/0.006862, allocations: 125.5 kB / 410 MB, free: 15.06 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.577e-05/0.006907, allocations: 59.39 kB / 410.1 MB, free: 14.99 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.542e-05/0.006973, allocations: 101.8 kB / 410.2 MB, free: 14.88 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.764e-05/0.00699, allocations: 29.69 kB / 410.2 MB, free: 14.85 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.412e-05/0.007015, allocations: 84.14 kB / 410.3 MB, free: 14.76 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.822e-05/0.007043, allocations: 32 kB / 410.3 MB, free: 14.73 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.928e-05/0.007082, allocations: 29.7 kB / 410.3 MB, free: 14.7 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.682e-05/0.007159, allocations: 318.8 kB / 410.7 MB, free: 14.38 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000116/0.007275, allocations: 49.69 kB / 410.7 MB, free: 14.32 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.9e-05/0.007334, allocations: 96.56 kB / 410.8 MB, free: 14.2 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001492/0.007483, allocations: 156.4 kB / 411 MB, free: 14.01 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.007485, allocations: 0 / 411 MB, free: 14.01 MB / 394.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001822/0.007667, allocations: 180.9 kB / 411.1 MB, free: 13.82 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.955e-05/0.007697, allocations: 29.7 kB / 411.2 MB, free: 13.78 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.762e-06/0.007704, allocations: 4 kB / 411.2 MB, free: 13.78 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.219e-05/0.007716, allocations: 3.938 kB / 411.2 MB, free: 13.77 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.982e-05/0.007816, allocations: 23.92 kB / 411.2 MB, free: 13.75 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/0.007826, allocations: 8.281 kB / 411.2 MB, free: 13.74 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.358e-05/0.007859, allocations: 11.95 kB / 411.2 MB, free: 13.73 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.025e-05/0.00787, allocations: 7.984 kB / 411.2 MB, free: 13.72 MB / 394.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.000125/0.007995, allocations: 129.8 kB / 411.3 MB, free: 13.59 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.676e-05/0.008011, allocations: 7.953 kB / 411.4 MB, free: 13.58 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.919e-05/0.008051, allocations: 16.11 kB / 411.4 MB, free: 13.56 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.008054, allocations: 3.938 kB / 411.4 MB, free: 13.56 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.008058, allocations: 3.938 kB / 411.4 MB, free: 13.55 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.008061, allocations: 4 kB / 411.4 MB, free: 13.55 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.637e-05/0.008158, allocations: 132.8 kB / 411.5 MB, free: 13.38 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.008159, allocations: 0 / 411.5 MB, free: 13.38 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.397e-05/0.008183, allocations: 4 kB / 411.5 MB, free: 13.38 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.008185, allocations: 0 / 411.5 MB, free: 13.38 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.146e-05/0.008196, allocations: 7.984 kB / 411.5 MB, free: 13.37 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.075e-06/0.008199, allocations: 7.922 kB / 411.5 MB, free: 13.36 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.008201, allocations: 4 kB / 411.5 MB, free: 13.36 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001479/0.008349, allocations: 133 kB / 411.7 MB, free: 13.21 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.578e-06/0.008358, allocations: 4 kB / 411.7 MB, free: 13.2 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.451e-05/0.008373, allocations: 4.188 kB / 411.7 MB, free: 13.2 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001037/0.008476, allocations: 31.89 kB / 411.7 MB, free: 13.17 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.649e-05/0.008503, allocations: 7.984 kB / 411.7 MB, free: 13.16 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.286e-05/0.008516, allocations: 4 kB / 411.7 MB, free: 13.16 MB / 394.7 MB Notification: Performance of sorting global known variables: time 2.739e-05/0.008543, allocations: 83.28 kB / 411.8 MB, free: 13.07 MB / 394.7 MB Notification: Performance of sort global known variables: time 4e-08/0.008543, allocations: 0 / 411.8 MB, free: 13.07 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0001715/0.008715, allocations: 19.98 kB / 411.8 MB, free: 13.05 MB / 394.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.0006519/0.009366, allocations: 0.6986 MB / 412.5 MB, free: 12.33 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001987/0.009565, allocations: 153 kB / 412.7 MB, free: 12.16 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.009568, allocations: 0 / 412.7 MB, free: 12.16 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 3.664e-05/0.009605, allocations: 23.98 kB / 412.7 MB, free: 12.14 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001529/0.009757, allocations: 15.88 kB / 412.7 MB, free: 12.12 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001041/0.0108, allocations: 1.548 MB / 414.3 MB, free: 10.41 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.741e-05/0.01085, allocations: 67.78 kB / 414.3 MB, free: 10.33 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 4.437e-05/0.01089, allocations: 16.72 kB / 414.3 MB, free: 10.3 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.524e-05/0.01093, allocations: 16.5 kB / 414.4 MB, free: 10.29 MB / 394.7 MB Notification: Performance of SimCode: time 5.71e-07/0.01093, allocations: 0 / 414.4 MB, free: 10.29 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0171/0.02803, allocations: 3.259 MB / 417.6 MB, free: 6.98 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.819/6.847, allocations: 3.906 kB / 417.6 MB, free: 6.977 MB / 394.7 MB " [Timeout remaining time 653] (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_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_3_2_3_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 9.077564980834723] Failed to read output from testmodel.py, exit status != 0: ['time', 'y', 'cnt[1]', 'cnt[2]', 'cnt[3]', 'avg', 'lowBound', 'highBound', 'samples'] 6.928299111314118 6.938336878 6.931598169 Calling exit ...