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.001884/0.001884, allocations: 120.2 kB / 17.83 MB, free: 5.242 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.002284/0.002284, allocations: 204.7 kB / 20.79 MB, free: 2.297 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.646/1.646, allocations: 207.6 MB / 231.2 MB, free: 4.102 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.4208/0.4208, allocations: 44.23 MB / 327.3 MB, free: 6.676 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="cs",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.00225/0.00225, allocations: 63.91 kB / 462.9 MB, free: 0.9297 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3501/0.3524, allocations: 61.02 MB / 0.5116 GB, free: 13.43 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.002046/0.3544, allocations: 0.5424 MB / 0.5122 GB, free: 13.02 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001029/0.3555, allocations: 448.7 kB / 0.5126 GB, free: 12.69 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.055e-05/0.3555, allocations: 4 kB / 0.5126 GB, free: 12.69 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001084/0.3556, allocations: 3.938 kB / 0.5126 GB, free: 12.68 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001545/0.3558, allocations: 10.14 kB / 0.5126 GB, free: 12.68 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006087/0.3564, allocations: 179.6 kB / 0.5128 GB, free: 12.56 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000166/0.3565, allocations: 80.42 kB / 0.5129 GB, free: 12.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.891e-05/0.3566, allocations: 3.984 kB / 0.5129 GB, free: 12.52 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.644e-05/0.3567, allocations: 42.94 kB / 0.5129 GB, free: 12.5 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002877/0.3595, allocations: 372.6 kB / 0.5133 GB, free: 12.32 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.98e-05/0.3596, allocations: 2.844 kB / 0.5133 GB, free: 12.32 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.25e-05/0.3597, allocations: 18.8 kB / 0.5133 GB, free: 12.31 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 5.779e-05/0.3597, allocations: 23.31 kB / 0.5133 GB, free: 12.3 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 4.801e-05/0.3598, allocations: 23.38 kB / 0.5133 GB, free: 12.28 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001948/0.36, allocations: 67.14 kB / 0.5134 GB, free: 12.24 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.36, allocations: 0 / 0.5134 GB, free: 12.24 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.36, allocations: 0 / 0.5134 GB, free: 12.24 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.282e-05/0.36, allocations: 1.375 kB / 0.5134 GB, free: 12.24 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.0005303/0.3605, allocations: 395.1 kB / 0.5138 GB, free: 11.83 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.45e-05/0.3606, allocations: 17.77 kB / 0.5138 GB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.709e-05/0.3606, allocations: 1.688 kB / 0.5138 GB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.059e-05/0.3606, allocations: 36.22 kB / 0.5138 GB, free: 11.78 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.533e-05/0.3607, allocations: 11.95 kB / 0.5138 GB, free: 11.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001526/0.3608, allocations: 180.3 kB / 0.514 GB, free: 11.56 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.469e-05/0.3608, allocations: 5.484 kB / 0.514 GB, free: 11.56 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.901e-05/0.3609, allocations: 6.969 kB / 0.514 GB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002025/0.3611, allocations: 94.16 kB / 0.5141 GB, free: 11.49 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.799e-06/0.3611, allocations: 0 / 0.5141 GB, free: 11.49 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.183e-05/0.3611, allocations: 5.609 kB / 0.5141 GB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.3611, allocations: 0 / 0.5141 GB, free: 11.48 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.999e-05/0.3612, allocations: 26.2 kB / 0.5141 GB, free: 11.47 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001765/0.3613, allocations: 172.8 kB / 0.5143 GB, free: 11.26 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001057/0.3615, allocations: 37.72 kB / 0.5143 GB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.348e-05/0.3615, allocations: 22.38 kB / 0.5144 GB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.876e-05/0.3615, allocations: 1.594 kB / 0.5144 GB, free: 11.21 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002419/0.3618, allocations: 147 kB / 0.5145 GB, free: 11.1 MB / 382.1 MB Notification: Performance of pre-optimization done (n=10): time 1.362e-06/0.3618, allocations: 0 / 0.5145 GB, free: 11.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003583/0.3621, allocations: 122.1 kB / 0.5146 GB, free: 11.04 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.859e-05/0.3622, allocations: 54.16 kB / 0.5147 GB, free: 10.97 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.174e-05/0.3622, allocations: 97.97 kB / 0.5148 GB, free: 10.87 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.734e-05/0.3623, allocations: 36.39 kB / 0.5148 GB, free: 10.83 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.819e-05/0.3623, allocations: 80.14 kB / 0.5149 GB, free: 10.75 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.783e-05/0.3623, allocations: 37.38 kB / 0.5149 GB, free: 10.72 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.395e-05/0.3624, allocations: 31.16 kB / 0.5149 GB, free: 10.69 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.635e-05/0.3625, allocations: 321.5 kB / 0.5152 GB, free: 10.37 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.549e-05/0.3625, allocations: 19.73 kB / 0.5153 GB, free: 10.36 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.713e-05/0.3626, allocations: 77.25 kB / 0.5153 GB, free: 10.28 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002195/0.3628, allocations: 141 kB / 0.5155 GB, free: 10.15 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.3628, allocations: 4 kB / 0.5155 GB, free: 10.15 MB / 382.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000252/0.3631, allocations: 166 kB / 0.5156 GB, free: 10.03 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.403e-05/0.3631, allocations: 35.56 kB / 0.5157 GB, free: 9.996 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.3631, allocations: 2.594 kB / 0.5157 GB, free: 9.996 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.245e-05/0.3632, allocations: 2.656 kB / 0.5157 GB, free: 9.996 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001405/0.3633, allocations: 17.06 kB / 0.5157 GB, free: 9.992 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.261e-05/0.3633, allocations: 6.703 kB / 0.5157 GB, free: 9.988 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.008e-05/0.3634, allocations: 10.42 kB / 0.5157 GB, free: 9.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.649e-05/0.3634, allocations: 9.812 kB / 0.5157 GB, free: 9.977 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.0001549/0.3635, allocations: 117.7 kB / 0.5158 GB, free: 9.859 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.125e-05/0.3636, allocations: 16.27 kB / 0.5158 GB, free: 9.848 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.331e-05/0.3636, allocations: 13.02 kB / 0.5159 GB, free: 9.828 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.3636, allocations: 1.125 kB / 0.5159 GB, free: 9.828 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.3636, allocations: 3.938 kB / 0.5159 GB, free: 9.824 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.3636, allocations: 0 / 0.5159 GB, free: 9.824 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001501/0.3638, allocations: 179.5 kB / 0.516 GB, free: 9.609 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.3638, allocations: 3.938 kB / 0.516 GB, free: 9.605 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.455e-05/0.3638, allocations: 4.656 kB / 0.516 GB, free: 9.605 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.3638, allocations: 1.344 kB / 0.516 GB, free: 9.605 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.124e-05/0.3638, allocations: 1.25 kB / 0.516 GB, free: 9.605 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.3638, allocations: 0 / 0.516 GB, free: 9.605 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.3638, allocations: 8.109 kB / 0.5161 GB, free: 9.598 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002189/0.364, allocations: 127.6 kB / 0.5162 GB, free: 9.504 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.099e-05/0.3641, allocations: 94.3 kB / 0.5163 GB, free: 9.395 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.505e-05/0.3641, allocations: 7.656 kB / 0.5163 GB, free: 9.391 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002271/0.3643, allocations: 17.38 kB / 0.5163 GB, free: 9.383 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.522e-05/0.3644, allocations: 2.188 kB / 0.5163 GB, free: 9.383 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.91e-05/0.3644, allocations: 11.64 kB / 0.5163 GB, free: 9.375 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.81e-05/0.3644, allocations: 77.88 kB / 0.5164 GB, free: 9.301 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3644, allocations: 0 / 0.5164 GB, free: 9.301 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002604/0.3647, allocations: 21.38 kB / 0.5164 GB, free: 9.297 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.0005687/0.3653, allocations: 0.7029 MB / 0.5171 GB, free: 8.637 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0002127/0.3655, allocations: 127.1 kB / 0.5172 GB, free: 8.543 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.3655, allocations: 4.375 kB / 0.5172 GB, free: 8.539 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 5.649e-05/0.3655, allocations: 25.19 kB / 0.5172 GB, free: 8.531 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001638/0.3657, allocations: 12.55 kB / 0.5172 GB, free: 8.523 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001218/0.3669, allocations: 1.439 MB / 0.5186 GB, free: 7.133 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001396/0.367, allocations: 0.6823 MB / 0.5193 GB, free: 6.434 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.976e-05/0.3671, allocations: 22.27 kB / 0.5193 GB, free: 6.418 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.82e-05/0.3671, allocations: 11.56 kB / 0.5193 GB, free: 6.41 MB / 382.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3671, allocations: 0 / 0.5193 GB, free: 6.41 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01845/0.3856, allocations: 2.494 MB / 0.5218 GB, free: 4.137 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.465/8.85, allocations: 12.66 kB / 0.5218 GB, free: 4.125 MB / 382.1 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestRandomIntegers_fmu --startTime=0 --stopTime=1 --stepSize=0.000166639 --timeout=50 --tolerance=1e-06 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.987533078005072] Failed to read output from testmodel.py, exit status != 0: ['time', 'y', 'cnt[1]', 'cnt[2]', 'cnt[3]', 'avg', 'lowBound', 'highBound', 'samples'] 8.976315103005618 8.993192941 8.630132179 Calling exit ...