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.001661/0.001661, allocations: 105 kB / 20.48 MB, free: 1.469 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.002178/0.002178, allocations: 212 kB / 23.79 MB, free: 4.68 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.577/1.577, allocations: 207.6 MB / 234.6 MB, free: 10 MB / 190.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.2313/0.2313, allocations: 44.24 MB / 331.1 MB, free: 9.523 MB / 270.1 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="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.002192/0.002192, allocations: 70.88 kB / 468.3 MB, free: 4.504 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1158, allocations: 61.05 MB / 0.5169 GB, free: 7.324 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestRandomIntegers): time 0.001865/0.1177, allocations: 0.5338 MB / 0.5174 GB, free: 6.789 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009358/0.1186, allocations: 464.5 kB / 0.5179 GB, free: 6.332 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.054e-05/0.1186, allocations: 0 / 0.5179 GB, free: 6.332 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 7.61e-05/0.1187, allocations: 0 / 0.5179 GB, free: 6.332 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001204/0.1188, allocations: 7.922 kB / 0.5179 GB, free: 6.324 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006053/0.1194, allocations: 183.5 kB / 0.5181 GB, free: 6.145 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001673/0.1196, allocations: 91.8 kB / 0.5182 GB, free: 6.055 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.647e-05/0.1196, allocations: 3.984 kB / 0.5182 GB, free: 6.051 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.567e-05/0.1197, allocations: 35.97 kB / 0.5182 GB, free: 6.016 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003135/0.1228, allocations: 473.3 kB / 0.5186 GB, free: 5.613 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.296e-05/0.1229, allocations: 4 kB / 0.5186 GB, free: 5.609 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.027e-05/0.1229, allocations: 12 kB / 0.5187 GB, free: 5.598 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 5.032e-05/0.123, allocations: 23.95 kB / 0.5187 GB, free: 5.574 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.011e-05/0.123, allocations: 27.86 kB / 0.5187 GB, free: 5.547 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001806/0.1232, allocations: 67.77 kB / 0.5188 GB, free: 5.48 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1232, allocations: 0 / 0.5188 GB, free: 5.48 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.051e-06/0.1232, allocations: 0 / 0.5188 GB, free: 5.48 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.1232, allocations: 0 / 0.5188 GB, free: 5.48 MB / 398.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.0005278/0.1238, allocations: 319.9 kB / 0.5191 GB, free: 5.129 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.468e-05/0.1238, allocations: 12.03 kB / 0.5191 GB, free: 5.117 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.386e-05/0.1238, allocations: 4.188 kB / 0.5191 GB, free: 5.113 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.593e-05/0.1238, allocations: 30.75 kB / 0.5191 GB, free: 5.074 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.639e-05/0.1239, allocations: 8.891 kB / 0.5191 GB, free: 5.066 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001751/0.1241, allocations: 134.3 kB / 0.5193 GB, free: 4.91 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.435e-06/0.1241, allocations: 4.375 kB / 0.5193 GB, free: 4.906 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.311e-05/0.1241, allocations: 384 / 0.5193 GB, free: 4.906 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002023/0.1243, allocations: 93.94 kB / 0.5194 GB, free: 4.809 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.622e-06/0.1243, allocations: 0 / 0.5194 GB, free: 4.809 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.668e-05/0.1243, allocations: 4 kB / 0.5194 GB, free: 4.805 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.1243, allocations: 4 kB / 0.5194 GB, free: 4.801 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.457e-05/0.1244, allocations: 23.97 kB / 0.5194 GB, free: 4.777 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001735/0.1246, allocations: 140.7 kB / 0.5195 GB, free: 4.598 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.595e-05/0.1247, allocations: 46.5 kB / 0.5196 GB, free: 4.543 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.407e-05/0.1247, allocations: 20.91 kB / 0.5196 GB, free: 4.52 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.033e-05/0.1247, allocations: 0 / 0.5196 GB, free: 4.52 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002401/0.1249, allocations: 139.2 kB / 0.5197 GB, free: 4.371 MB / 398.1 MB Notification: Performance of pre-optimization done (n=10): time 1.112e-06/0.125, allocations: 0 / 0.5197 GB, free: 4.371 MB / 398.1 MB Notification: Performance of matching and sorting (n=10): time 0.000299/0.1252, allocations: 121.6 kB / 0.5198 GB, free: 4.246 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.023e-05/0.1253, allocations: 55.34 kB / 0.5199 GB, free: 4.18 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.528e-05/0.1254, allocations: 98.02 kB / 0.52 GB, free: 4.074 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.247e-05/0.1254, allocations: 37.69 kB / 0.52 GB, free: 4.031 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.142e-05/0.1255, allocations: 84.12 kB / 0.5201 GB, free: 3.945 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.673e-05/0.1255, allocations: 31.75 kB / 0.5201 GB, free: 3.914 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.038e-05/0.1256, allocations: 33.7 kB / 0.5202 GB, free: 3.875 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.1257, allocations: 314.8 kB / 0.5205 GB, free: 3.559 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.305e-05/0.1258, allocations: 31.98 kB / 0.5205 GB, free: 3.527 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.571e-05/0.1258, allocations: 70.86 kB / 0.5206 GB, free: 3.434 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002088/0.1261, allocations: 144.4 kB / 0.5207 GB, free: 3.262 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.1261, allocations: 0 / 0.5207 GB, free: 3.262 MB / 398.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002411/0.1263, allocations: 163.1 kB / 0.5208 GB, free: 3.09 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.589e-05/0.1263, allocations: 29.7 kB / 0.5209 GB, free: 3.055 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.1263, allocations: 4 kB / 0.5209 GB, free: 3.051 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.712e-05/0.1264, allocations: 8.219 kB / 0.5209 GB, free: 3.043 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.898e-05/0.1265, allocations: 15.98 kB / 0.5209 GB, free: 3.027 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.584e-06/0.1265, allocations: 4.297 kB / 0.5209 GB, free: 3.023 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.943e-05/0.1265, allocations: 12.14 kB / 0.5209 GB, free: 3.012 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.655e-05/0.1265, allocations: 11.98 kB / 0.5209 GB, free: 3 MB / 398.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.0001558/0.1267, allocations: 137.7 kB / 0.5211 GB, free: 2.855 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.256e-05/0.1267, allocations: 15.88 kB / 0.5211 GB, free: 2.84 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.214e-05/0.1267, allocations: 8.062 kB / 0.5211 GB, free: 2.828 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.1268, allocations: 0 / 0.5211 GB, free: 2.828 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.1268, allocations: 3.984 kB / 0.5211 GB, free: 2.824 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.1268, allocations: 0 / 0.5211 GB, free: 2.824 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001541/0.1269, allocations: 140.7 kB / 0.5212 GB, free: 2.645 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.1269, allocations: 7.875 kB / 0.5212 GB, free: 2.637 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.926e-05/0.127, allocations: 11.92 kB / 0.5212 GB, free: 2.625 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.127, allocations: 0 / 0.5212 GB, free: 2.625 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.197e-06/0.127, allocations: 0 / 0.5212 GB, free: 2.625 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.127, allocations: 4 kB / 0.5212 GB, free: 2.621 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.127, allocations: 4.062 kB / 0.5212 GB, free: 2.617 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002163/0.1272, allocations: 137 kB / 0.5214 GB, free: 2.465 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.199e-05/0.1272, allocations: 7.938 kB / 0.5214 GB, free: 2.457 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.028e-05/0.1272, allocations: 4 kB / 0.5214 GB, free: 2.453 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002213/0.1274, allocations: 15.97 kB / 0.5214 GB, free: 2.438 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.509e-05/0.1275, allocations: 11.92 kB / 0.5214 GB, free: 2.426 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.373e-05/0.1275, allocations: 4 kB / 0.5214 GB, free: 2.422 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.697e-05/0.1275, allocations: 87.27 kB / 0.5215 GB, free: 2.336 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1275, allocations: 0 / 0.5215 GB, free: 2.336 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002295/0.1278, allocations: 20 kB / 0.5215 GB, free: 2.316 MB / 398.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.0006899/0.1284, allocations: 0.6942 MB / 0.5222 GB, free: 1.598 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002091/0.1287, allocations: 127.3 kB / 0.5223 GB, free: 1.461 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.1287, allocations: 0 / 0.5223 GB, free: 1.461 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.968e-05/0.1287, allocations: 27.92 kB / 0.5223 GB, free: 1.434 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001546/0.1289, allocations: 11.98 kB / 0.5224 GB, free: 1.422 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0015/0.1304, allocations: 1.427 MB / 0.5238 GB, free: 15.86 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003092/0.1307, allocations: 0.6846 MB / 0.5244 GB, free: 15.15 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.778e-05/0.1307, allocations: 12.66 kB / 0.5244 GB, free: 15.14 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.951e-05/0.1308, allocations: 19.42 kB / 0.5245 GB, free: 15.12 MB / 414.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1308, allocations: 0 / 0.5245 GB, free: 15.12 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02205/0.1528, allocations: 2.645 MB / 0.527 GB, free: 12.45 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.27/11.43, allocations: 11.97 kB / 0.527 GB, free: 12.44 MB / 414.1 MB " [Timeout remaining time 648] (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: 14.680121231009252] Failed to read output from testmodel.py, exit status != 0: ['time', 'y', 'cnt[1]', 'cnt[2]', 'cnt[3]', 'avg', 'lowBound', 'highBound', 'samples'] 11.589214092004113 11.813388894 11.489409831 Calling exit ...