Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_3_2_3_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Math.Random.Examples.GenerateRandomNumbers,fileNamePrefix="Modelica_3_2_3_Modelica_Math_Random_Examples_GenerateRandomNumbers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001045/0.001045, allocations: 95.06 kB / 16.93 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00122/0.00122, allocations: 180.4 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.523/1.523, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004493/0.0004493, allocations: 8 kB / 280.8 MB, free: 3.664 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1023, allocations: 47.59 MB / 328.4 MB, free: 4.008 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Math.Random.Examples.GenerateRandomNumbers): time 0.001941/0.1043, allocations: 0.9539 MB / 329.4 MB, free: 3.039 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001381/0.1057, allocations: 430.1 kB / 329.8 MB, free: 2.621 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.956e-05/0.1058, allocations: 0 / 329.8 MB, free: 2.621 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 3.891e-05/0.1059, allocations: 0 / 329.8 MB, free: 2.621 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005228/0.1064, allocations: 59.8 kB / 329.8 MB, free: 2.562 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003988/0.1068, allocations: 55.81 kB / 329.9 MB, free: 2.508 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001236/0.107, allocations: 27.95 kB / 329.9 MB, free: 2.48 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.581e-05/0.1071, allocations: 4 kB / 329.9 MB, free: 2.477 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.163e-05/0.1071, allocations: 11.94 kB / 329.9 MB, free: 2.465 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.695e-05/0.1072, allocations: 19.91 kB / 330 MB, free: 2.445 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 1.626e-05/0.1072, allocations: 4 kB / 330 MB, free: 2.441 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003353/0.1076, allocations: 91.78 kB / 330.1 MB, free: 2.352 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.584e-05/0.1077, allocations: 27.92 kB / 330.1 MB, free: 2.324 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 7e-05/0.1077, allocations: 45.64 kB / 330.1 MB, free: 2.273 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003199/0.1081, allocations: 123.8 kB / 330.3 MB, free: 2.152 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.1081, allocations: 0 / 330.3 MB, free: 2.152 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.896e-06/0.1081, allocations: 0 / 330.3 MB, free: 2.152 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.132e-06/0.1081, allocations: 0 / 330.3 MB, free: 2.152 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0007205/0.1088, allocations: 0.5529 MB / 330.8 MB, free: 1.539 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.499e-05/0.1089, allocations: 8.031 kB / 330.8 MB, free: 1.531 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.544e-05/0.109, allocations: 50.53 kB / 330.9 MB, free: 1.473 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001819/0.1092, allocations: 23.81 kB / 330.9 MB, free: 1.449 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001889/0.1094, allocations: 174.9 kB / 331.1 MB, free: 1.238 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.619e-05/0.1094, allocations: 8 kB / 331.1 MB, free: 1.23 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.375e-05/0.1095, allocations: 7.953 kB / 331.1 MB, free: 1.223 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004958/0.11, allocations: 286.3 kB / 331.4 MB, free: 0.9258 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.11, allocations: 0 / 331.4 MB, free: 0.9258 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.893e-05/0.11, allocations: 4 kB / 331.4 MB, free: 0.9219 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.11, allocations: 4 kB / 331.4 MB, free: 0.918 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002169/0.1103, allocations: 144.3 kB / 331.5 MB, free: 0.7734 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004714/0.1107, allocations: 385.4 kB / 331.9 MB, free: 352 kB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007235/0.1115, allocations: 0.5054 MB / 332.4 MB, free: 15.82 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.276e-05/0.1115, allocations: 0 / 332.4 MB, free: 15.82 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008093/0.1123, allocations: 490.8 kB / 332.9 MB, free: 15.3 MB / 286.1 MB Notification: Performance of pre-optimization done (n=49): time 3.978e-06/0.1123, allocations: 7.922 kB / 332.9 MB, free: 15.29 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.001261/0.1136, allocations: 0.8961 MB / 333.8 MB, free: 14.34 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.908e-05/0.1137, allocations: 152.5 kB / 333.9 MB, free: 14.16 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001271/0.1139, allocations: 101.8 kB / 334 MB, free: 14.05 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.164e-05/0.1139, allocations: 29.7 kB / 334 MB, free: 14.02 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.329e-05/0.114, allocations: 85.14 kB / 334.1 MB, free: 13.93 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001239/0.1141, allocations: 98.67 kB / 334.2 MB, free: 13.84 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.516e-06/0.1141, allocations: 4 kB / 334.2 MB, free: 13.83 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001807/0.1143, allocations: 326.8 kB / 334.5 MB, free: 13.5 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002302/0.1145, allocations: 88.41 kB / 334.6 MB, free: 13.42 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00017/0.1147, allocations: 116.2 kB / 334.7 MB, free: 13.3 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002737/0.115, allocations: 207.9 kB / 334.9 MB, free: 13.09 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.115, allocations: 0 / 334.9 MB, free: 13.09 MB / 286.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005504/0.1156, allocations: 372.4 kB / 335.3 MB, free: 12.7 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001268/0.1157, allocations: 107.4 kB / 335.4 MB, free: 12.59 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.1157, allocations: 4 kB / 335.4 MB, free: 12.58 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.628e-05/0.1158, allocations: 3.938 kB / 335.4 MB, free: 12.58 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.525e-05/0.1159, allocations: 4 kB / 335.4 MB, free: 12.57 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.468e-06/0.1159, allocations: 0 / 335.4 MB, free: 12.57 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001128/0.116, allocations: 23.75 kB / 335.5 MB, free: 12.55 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.871e-05/0.116, allocations: 11.98 kB / 335.5 MB, free: 12.54 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 ($whenCondition2,$outputAlias_r64,$outputAlias_r128,$outputAlias_r1024,state64[1],state64[2],state128[1],state128[2],state128[3],state128[4],state1024[1],state1024[2],state1024[3],state1024[4],state1024[5],state1024[6],state1024[7],state1024[8],state1024[9],state1024[10],state1024[11],state1024[12],state1024[13],state1024[14],state1024[15],state1024[16],state1024[17],state1024[18],state1024[19],state1024[20],state1024[21],state1024[22],state1024[23],state1024[24],state1024[25],state1024[26],state1024[27],state1024[28],state1024[29],state1024[30],state1024[31],state1024[32],state1024[33],$whenCondition1,rImpure,iImpure) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004197/0.1165, allocations: 299.7 kB / 335.8 MB, free: 12.23 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.872e-05/0.1165, allocations: 27.77 kB / 335.8 MB, free: 12.2 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.289e-05/0.1166, allocations: 5.625 kB / 335.8 MB, free: 12.2 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-06/0.1166, allocations: 8 kB / 335.8 MB, free: 12.19 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.1166, allocations: 0 / 335.8 MB, free: 12.19 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.175e-06/0.1166, allocations: 3.984 kB / 335.8 MB, free: 12.18 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001826/0.1184, allocations: 1.444 MB / 337.2 MB, free: 10.68 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.1185, allocations: 0 / 337.2 MB, free: 10.68 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.183e-05/0.1185, allocations: 4 kB / 337.2 MB, free: 10.67 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.97e-06/0.1185, allocations: 0 / 337.2 MB, free: 10.67 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.117e-05/0.1186, allocations: 19.98 kB / 337.3 MB, free: 10.65 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.1186, allocations: 0 / 337.3 MB, free: 10.65 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.1186, allocations: 4 kB / 337.3 MB, free: 10.65 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002073/0.1207, allocations: 1.325 MB / 338.6 MB, free: 9.281 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.432e-05/0.1208, allocations: 96.77 kB / 338.7 MB, free: 9.168 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001404/0.1209, allocations: 67.94 kB / 338.8 MB, free: 9.102 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001508/0.1211, allocations: 8 kB / 338.8 MB, free: 9.094 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001014/0.1212, allocations: 19.92 kB / 338.8 MB, free: 9.074 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.468e-05/0.1212, allocations: 19.98 kB / 338.8 MB, free: 9.055 MB / 286.1 MB Notification: Performance of sorting global known variables: time 7.234e-05/0.1213, allocations: 79.75 kB / 338.9 MB, free: 8.977 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.1213, allocations: 8 kB / 338.9 MB, free: 8.969 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005957/0.1219, allocations: 87.98 kB / 339 MB, free: 8.883 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 46 ($whenCondition1,rImpure,iImpure,$whenCondition2,$outputAlias_r64,$outputAlias_r128,$outputAlias_r1024,state64[1],state64[2],state128[1],state128[2],state128[3],state128[4],state1024[1],state1024[2],state1024[3],state1024[4],state1024[5],state1024[6],state1024[7],state1024[8],state1024[9],state1024[10],state1024[11],state1024[12],state1024[13],state1024[14],state1024[15],state1024[16],state1024[17],state1024[18],state1024[19],state1024[20],state1024[21],state1024[22],state1024[23],state1024[24],state1024[25],state1024[26],state1024[27],state1024[28],state1024[29],state1024[30],state1024[31],state1024[32],state1024[33]) * Number of discrete states: 46 ($outputAlias_r1024,$outputAlias_r128,$outputAlias_r64,state1024[33],state1024[32],state1024[31],state1024[30],state1024[29],state1024[28],state1024[27],state1024[26],state1024[25],state1024[24],state1024[23],state1024[22],state1024[21],state1024[20],state1024[19],state1024[18],state1024[17],state1024[16],state1024[15],state1024[14],state1024[13],state1024[12],state1024[11],state1024[10],state1024[9],state1024[8],state1024[7],state1024[6],state1024[5],state1024[4],state1024[3],state1024[2],state1024[1],state128[4],state128[3],state128[2],state128[1],state64[2],state64[1],$whenCondition2,iImpure,rImpure,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003349/0.1253, allocations: 2.392 MB / 341.4 MB, free: 6.457 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.002724/0.128, allocations: 2.136 MB / 343.5 MB, free: 4.293 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.1281, allocations: 0 / 343.5 MB, free: 4.293 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002406/0.1305, allocations: 2.201 MB / 345.7 MB, free: 2.066 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000255/0.1307, allocations: 8 kB / 345.7 MB, free: 2.059 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00227/0.133, allocations: 1.525 MB / 347.2 MB, free: 480 kB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003128/0.1334, allocations: 0.736 MB / 348 MB, free: 15.7 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.856e-05/0.1334, allocations: 4 kB / 348 MB, free: 15.7 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.291e-05/0.1334, allocations: 31.42 kB / 348 MB, free: 15.67 MB / 302.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1334, allocations: 0 / 348 MB, free: 15.67 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01684/0.1503, allocations: 4.54 MB / 352.5 MB, free: 11.12 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002052/0.1505, allocations: 218.3 kB / 352.8 MB, free: 10.88 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.756/1.907, allocations: 0 / 352.8 MB, free: 10.88 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; mkfifo Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe >> ../files/Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Math_Random_Examples_GenerateRandomNumbers_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Math_Random_Examples_GenerateRandomNumbers.fmu > Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Math.Random.Examples.GenerateRandomNumbers_res.mat does not exist to compare? outputFormat=mat