Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00103/0.00103, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.255/1.255, allocations: 225.4 MB / 240.1 MB, free: 15.05 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008322/0.0008322, allocations: 95.39 kB / 292.1 MB, free: 6.039 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1819/0.1819, allocations: 45.15 MB / 389.3 MB, free: 11.86 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.464e-05/2.474e-05, allocations: 4 kB / 460.5 MB, free: 69.92 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08699/0.08703, allocations: 63.24 MB / 0.5114 GB, free: 6.707 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3299/0.417, allocations: 86.89 MB / 0.5963 GB, free: 6.945 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001592/0.4172, allocations: 59.22 kB / 0.5964 GB, free: 6.914 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00986/0.4271, allocations: 3.327 MB / 0.5996 GB, free: 4.086 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.4271, allocations: 0 / 0.5996 GB, free: 4.086 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.013e-05/0.4271, allocations: 3.938 kB / 0.5996 GB, free: 4.082 MB / 394.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.0003391/0.4274, allocations: 392.8 kB / 0.6 GB, free: 3.656 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.964e-05/0.4275, allocations: 11.97 kB / 0.6 GB, free: 3.645 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.057e-05/0.4275, allocations: 45.55 kB / 0.6 GB, free: 3.598 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.247e-05/0.4276, allocations: 12.53 kB / 0.6001 GB, free: 3.586 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002027/0.4278, allocations: 179 kB / 0.6002 GB, free: 3.371 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.009e-05/0.4278, allocations: 4 kB / 0.6002 GB, free: 3.367 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.561e-05/0.4278, allocations: 15.36 kB / 0.6002 GB, free: 3.355 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001475/0.428, allocations: 79.58 kB / 0.6003 GB, free: 3.281 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.968e-06/0.428, allocations: 0 / 0.6003 GB, free: 3.281 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.529e-05/0.428, allocations: 7.438 kB / 0.6003 GB, free: 3.277 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.524e-06/0.428, allocations: 0 / 0.6003 GB, free: 3.277 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.001e-05/0.4281, allocations: 19.17 kB / 0.6003 GB, free: 3.262 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001542/0.4282, allocations: 175.7 kB / 0.6005 GB, free: 3.047 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.548e-05/0.4283, allocations: 51.94 kB / 0.6006 GB, free: 2.996 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.619e-05/0.4284, allocations: 28.03 kB / 0.6006 GB, free: 2.969 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.074e-05/0.4284, allocations: 3.984 kB / 0.6006 GB, free: 2.965 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001931/0.4286, allocations: 127.1 kB / 0.6007 GB, free: 2.848 MB / 394.7 MB Notification: Performance of pre-optimization done (n=10): time 1.312e-06/0.4286, allocations: 3.938 kB / 0.6007 GB, free: 2.844 MB / 394.7 MB Notification: Performance of matching and sorting (n=10): time 0.0001842/0.4288, allocations: 107.8 kB / 0.6008 GB, free: 2.746 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.046e-05/0.4288, allocations: 55.41 kB / 0.6009 GB, free: 2.68 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.738e-05/0.4289, allocations: 95.92 kB / 0.601 GB, free: 2.582 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.264e-05/0.4289, allocations: 25.7 kB / 0.601 GB, free: 2.551 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.959e-05/0.429, allocations: 88.2 kB / 0.6011 GB, free: 2.461 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.312e-05/0.429, allocations: 31.67 kB / 0.6011 GB, free: 2.434 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.057e-06/0.429, allocations: 3.938 kB / 0.6011 GB, free: 2.43 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.077e-05/0.4291, allocations: 318.7 kB / 0.6014 GB, free: 2.113 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.961e-05/0.4291, allocations: 27.11 kB / 0.6014 GB, free: 2.094 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.067e-05/0.4292, allocations: 65.56 kB / 0.6015 GB, free: 2.012 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.875e-05/0.4293, allocations: 60.23 kB / 0.6016 GB, free: 1.953 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.4293, allocations: 4 kB / 0.6016 GB, free: 1.949 MB / 394.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001891/0.4295, allocations: 160 kB / 0.6017 GB, free: 1.801 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.327e-05/0.4295, allocations: 37.64 kB / 0.6017 GB, free: 1.758 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.4296, allocations: 4 kB / 0.6017 GB, free: 1.754 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.905e-06/0.4296, allocations: 0 / 0.6017 GB, free: 1.754 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.225e-05/0.4296, allocations: 19.92 kB / 0.6018 GB, free: 1.734 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.568e-06/0.4297, allocations: 4 kB / 0.6018 GB, free: 1.73 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.598e-05/0.4297, allocations: 11.62 kB / 0.6018 GB, free: 1.723 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.065e-05/0.4297, allocations: 7.984 kB / 0.6018 GB, free: 1.715 MB / 394.7 MB Warning: Assuming fixed start value for the following 1 variables: y:DISCRETE(fixed = false ) 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,$PRE.cnt[3],cnt[3],$PRE.cnt[2],cnt[2],$PRE.cnt[1],cnt[1],$PRE.y,y,$whenCondition2,$whenCondition1,$PRE.samples,samples) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001064/0.4299, allocations: 132.4 kB / 0.6019 GB, free: 1.586 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2e-05/0.4299, allocations: 7.906 kB / 0.6019 GB, free: 1.578 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.929e-05/0.4299, allocations: 7.469 kB / 0.6019 GB, free: 1.566 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.481e-06/0.4299, allocations: 7.984 kB / 0.6019 GB, free: 1.559 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.464e-06/0.4299, allocations: 0 / 0.6019 GB, free: 1.559 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.4299, allocations: 0 / 0.6019 GB, free: 1.559 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00013/0.4301, allocations: 173.5 kB / 0.6021 GB, free: 1.344 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.4301, allocations: 0 / 0.6021 GB, free: 1.344 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.306e-05/0.4301, allocations: 7.438 kB / 0.6021 GB, free: 1.34 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.416e-06/0.4301, allocations: 8 kB / 0.6021 GB, free: 1.332 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.256e-06/0.4301, allocations: 0 / 0.6021 GB, free: 1.332 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.4302, allocations: 3.984 kB / 0.6021 GB, free: 1.328 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.4302, allocations: 0 / 0.6021 GB, free: 1.328 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001808/0.4303, allocations: 131.6 kB / 0.6022 GB, free: 1.195 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.279e-05/0.4304, allocations: 85.06 kB / 0.6023 GB, free: 1.094 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.773e-05/0.4304, allocations: 7.938 kB / 0.6023 GB, free: 1.09 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001452/0.4306, allocations: 23.97 kB / 0.6024 GB, free: 1.066 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.16e-05/0.4306, allocations: 4 kB / 0.6024 GB, free: 1.062 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.319e-05/0.4306, allocations: 15.8 kB / 0.6024 GB, free: 1.051 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.809e-05/0.4307, allocations: 79.28 kB / 0.6025 GB, free: 0.9727 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4307, allocations: 0 / 0.6025 GB, free: 0.9727 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002564/0.4309, allocations: 55.17 kB / 0.6025 GB, free: 0.9258 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0006804/0.4316, allocations: 0.776 MB / 0.6033 GB, free: 168 kB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001693/0.4318, allocations: 129 kB / 0.6034 GB, free: 40 kB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.4318, allocations: 0 / 0.6034 GB, free: 40 kB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.7e-05/0.4319, allocations: 31.25 kB / 0.6034 GB, free: 16 kB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.885e-05/0.432, allocations: 8.922 kB / 0.6034 GB, free: 8 kB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004356/0.4324, allocations: 153 kB / 0.6036 GB, free: 15.83 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002208/0.4326, allocations: 0.6887 MB / 0.6042 GB, free: 15.12 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.664e-05/0.4327, allocations: 16.72 kB / 0.6043 GB, free: 15.1 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.95e-05/0.4327, allocations: 15.31 kB / 0.6043 GB, free: 15.09 MB / 410.7 MB Notification: Performance of SimCode: time 3.51e-07/0.4327, allocations: 4 kB / 0.6043 GB, free: 15.08 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01331/0.4461, allocations: 2.876 MB / 0.6071 GB, free: 12.33 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000208/0.4463, allocations: 190.2 kB / 0.6073 GB, free: 12.1 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.412/1.859, allocations: 0 / 0.6073 GB, free: 12.1 MB / 410.7 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomIntegers_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Math.Random.TestRandomIntegers_res.mat does not exist to compare? outputFormat=mat