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.001309/0.001309, allocations: 115.2 kB / 17.13 MB, free: 5.93 MB / 14.72 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.002422/0.002422, allocations: 212 kB / 20.09 MB, free: 2.977 MB / 14.72 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 1.722/1.722, allocations: 207.6 MB / 230.5 MB, free: 4.043 MB / 174.1 MB " [Timeout remaining time 178] 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.3948/0.3948, allocations: 44.22 MB / 326.6 MB, free: 7.223 MB / 254.1 MB " [Timeout remaining time 179] 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: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00247/0.00247, allocations: 68.23 kB / 462.2 MB, free: 1.035 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3455/0.348, allocations: 61 MB / 0.5109 GB, free: 13.32 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001645/0.3497, allocations: 0.5583 MB / 0.5115 GB, free: 12.9 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008273/0.3505, allocations: 448.4 kB / 0.5119 GB, free: 12.57 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.63e-05/0.3505, allocations: 0 / 0.5119 GB, free: 12.57 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 8.618e-05/0.3506, allocations: 5.125 kB / 0.5119 GB, free: 12.57 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001218/0.3507, allocations: 5.203 kB / 0.5119 GB, free: 12.56 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005721/0.3513, allocations: 177.5 kB / 0.5121 GB, free: 12.45 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001868/0.3515, allocations: 82.66 kB / 0.5122 GB, free: 12.41 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.991e-05/0.3515, allocations: 2 kB / 0.5122 GB, free: 12.41 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.413e-05/0.3516, allocations: 44.52 kB / 0.5122 GB, free: 12.39 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002783/0.3544, allocations: 370.6 kB / 0.5126 GB, free: 12.21 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.763e-05/0.3544, allocations: 7.188 kB / 0.5126 GB, free: 12.2 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.466e-05/0.3545, allocations: 19.11 kB / 0.5126 GB, free: 12.2 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.532e-05/0.3545, allocations: 22.88 kB / 0.5126 GB, free: 12.18 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.117e-05/0.3546, allocations: 28.33 kB / 0.5126 GB, free: 12.16 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001996/0.3548, allocations: 62.94 kB / 0.5127 GB, free: 12.12 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.3548, allocations: 0 / 0.5127 GB, free: 12.12 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.734e-06/0.3548, allocations: 0 / 0.5127 GB, free: 12.12 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.317e-05/0.3548, allocations: 9.094 kB / 0.5127 GB, free: 12.12 MB / 382.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.0005455/0.3554, allocations: 399.6 kB / 0.5131 GB, free: 11.7 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.172e-05/0.3554, allocations: 12.39 kB / 0.5131 GB, free: 11.7 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.186e-05/0.3554, allocations: 36.88 kB / 0.5131 GB, free: 11.65 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.72e-05/0.3555, allocations: 8.984 kB / 0.5132 GB, free: 11.65 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001369/0.3556, allocations: 177.7 kB / 0.5133 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.1e-05/0.3556, allocations: 384 / 0.5133 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.699e-05/0.3556, allocations: 2.594 kB / 0.5133 GB, free: 11.45 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001967/0.3558, allocations: 95.7 kB / 0.5134 GB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.3559, allocations: 7.938 kB / 0.5134 GB, free: 11.37 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.2e-05/0.3559, allocations: 4 kB / 0.5134 GB, free: 11.37 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.3559, allocations: 0 / 0.5134 GB, free: 11.37 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.234e-05/0.3559, allocations: 29.56 kB / 0.5135 GB, free: 11.35 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001491/0.3561, allocations: 160.4 kB / 0.5136 GB, free: 11.15 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.71e-05/0.3562, allocations: 42.19 kB / 0.5136 GB, free: 11.12 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.411e-05/0.3562, allocations: 27.61 kB / 0.5137 GB, free: 11.1 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.799e-05/0.3562, allocations: 0 / 0.5137 GB, free: 11.1 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002341/0.3565, allocations: 136.6 kB / 0.5138 GB, free: 11 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.152e-06/0.3565, allocations: 0 / 0.5138 GB, free: 11 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003036/0.3568, allocations: 129.4 kB / 0.5139 GB, free: 10.92 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.057e-05/0.3568, allocations: 54.88 kB / 0.514 GB, free: 10.86 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.811e-05/0.3569, allocations: 101.1 kB / 0.5141 GB, free: 10.75 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.475e-05/0.3569, allocations: 32.72 kB / 0.5141 GB, free: 10.72 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.095e-05/0.3569, allocations: 89.2 kB / 0.5142 GB, free: 10.63 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.944e-05/0.3569, allocations: 27.88 kB / 0.5142 GB, free: 10.61 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.49e-05/0.357, allocations: 32.42 kB / 0.5142 GB, free: 10.58 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.86e-05/0.357, allocations: 316 kB / 0.5146 GB, free: 10.26 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.978e-05/0.3571, allocations: 29.67 kB / 0.5146 GB, free: 10.25 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.002e-05/0.3571, allocations: 73.17 kB / 0.5146 GB, free: 10.17 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001614/0.3573, allocations: 148.2 kB / 0.5148 GB, free: 10.03 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.3573, allocations: 0 / 0.5148 GB, free: 10.03 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001993/0.3575, allocations: 157.4 kB / 0.5149 GB, free: 9.922 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.934e-05/0.3575, allocations: 33.27 kB / 0.515 GB, free: 9.891 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.264e-06/0.3575, allocations: 9.469 kB / 0.515 GB, free: 9.883 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.829e-05/0.3576, allocations: 2.906 kB / 0.515 GB, free: 9.883 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000114/0.3577, allocations: 24.45 kB / 0.515 GB, free: 9.871 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.787e-06/0.3577, allocations: 3.094 kB / 0.515 GB, free: 9.871 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.773e-05/0.3577, allocations: 6.547 kB / 0.515 GB, free: 9.867 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.359e-05/0.3578, allocations: 5.562 kB / 0.515 GB, free: 9.867 MB / 382.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.0001224/0.3579, allocations: 125.5 kB / 0.5151 GB, free: 9.742 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.851e-05/0.3579, allocations: 16.08 kB / 0.5152 GB, free: 9.73 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.408e-05/0.3579, allocations: 13.25 kB / 0.5152 GB, free: 9.711 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.3579, allocations: 8.641 kB / 0.5152 GB, free: 9.703 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.3579, allocations: 1.094 kB / 0.5152 GB, free: 9.703 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.358, allocations: 0 / 0.5152 GB, free: 9.703 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001074/0.3581, allocations: 171.1 kB / 0.5153 GB, free: 9.496 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.3581, allocations: 0 / 0.5153 GB, free: 9.496 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.553e-05/0.3581, allocations: 11.83 kB / 0.5154 GB, free: 9.488 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.3581, allocations: 1.281 kB / 0.5154 GB, free: 9.488 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.018e-05/0.3581, allocations: 1.188 kB / 0.5154 GB, free: 9.488 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.3581, allocations: 5.469 kB / 0.5154 GB, free: 9.484 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.3581, allocations: 0 / 0.5154 GB, free: 9.484 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001841/0.3583, allocations: 135.2 kB / 0.5155 GB, free: 9.383 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.945e-05/0.3583, allocations: 82.83 kB / 0.5156 GB, free: 9.285 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.972e-05/0.3583, allocations: 5.734 kB / 0.5156 GB, free: 9.281 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002101/0.3585, allocations: 14.58 kB / 0.5156 GB, free: 9.277 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.59e-05/0.3586, allocations: 9.797 kB / 0.5156 GB, free: 9.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.42e-05/0.3586, allocations: 7.562 kB / 0.5156 GB, free: 9.266 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.487e-05/0.3586, allocations: 82.83 kB / 0.5157 GB, free: 9.188 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3586, allocations: 0 / 0.5157 GB, free: 9.188 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000242/0.3589, allocations: 20.41 kB / 0.5157 GB, free: 9.184 MB / 382.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.0005312/0.3594, allocations: 0.7072 MB / 0.5164 GB, free: 8.52 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002046/0.3596, allocations: 123.2 kB / 0.5165 GB, free: 8.43 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.3596, allocations: 0 / 0.5165 GB, free: 8.43 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.655e-05/0.3597, allocations: 28.47 kB / 0.5165 GB, free: 8.418 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001612/0.3598, allocations: 12.11 kB / 0.5166 GB, free: 8.41 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001112/0.3609, allocations: 1.442 MB / 0.518 GB, free: 7.016 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001137/0.3611, allocations: 0.6823 MB / 0.5186 GB, free: 6.316 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.699e-05/0.3611, allocations: 12.91 kB / 0.5186 GB, free: 6.309 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.481e-05/0.3611, allocations: 20.92 kB / 0.5187 GB, free: 6.293 MB / 382.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3611, allocations: 0 / 0.5187 GB, free: 6.293 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02336/0.3845, allocations: 2.453 MB / 0.5211 GB, free: 4.191 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.965/8.35, allocations: 12.66 kB / 0.5211 GB, free: 4.18 MB / 382.1 MB " [Timeout remaining time 652] (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: 11.503663256997243] Failed to read output from testmodel.py, exit status != 0: ['time', 'y', 'cnt[1]', 'cnt[2]', 'cnt[3]', 'avg', 'lowBound', 'highBound', 'samples'] 8.41725022700848 8.428875475 8.071318893 Calling exit ...