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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001168/0.001168, allocations: 183.3 kB / 15.76 MB, free: 6.363 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.654/1.654, allocations: 205.4 MB / 221.9 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008668/0.0008668, allocations: 90.84 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2427/0.2427, allocations: 43.56 MB / 362 MB, free: 11.31 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003383/0.0003384, allocations: 12 kB / 431.5 MB, free: 19.5 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1281/0.1285, allocations: 58.85 MB / 490.3 MB, free: 8.586 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3818/0.5103, allocations: 84.82 MB / 0.5617 GB, free: 14.89 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002096/0.5106, allocations: 59.19 kB / 0.5617 GB, free: 14.86 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01015/0.5207, allocations: 3.32 MB / 0.565 GB, free: 12.04 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.5208, allocations: 0 / 0.565 GB, free: 12.04 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.101e-05/0.5208, allocations: 0 / 0.565 GB, free: 12.04 MB / 378.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.000453/0.5213, allocations: 392.8 kB / 0.5654 GB, free: 11.61 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/0.5213, allocations: 12.03 kB / 0.5654 GB, free: 11.59 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.72e-05/0.5214, allocations: 33.81 kB / 0.5654 GB, free: 11.55 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.946e-05/0.5214, allocations: 13.33 kB / 0.5654 GB, free: 11.54 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002555/0.5217, allocations: 194.9 kB / 0.5656 GB, free: 11.31 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.544e-05/0.5217, allocations: 3.75 kB / 0.5656 GB, free: 11.31 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.723e-05/0.5217, allocations: 4 kB / 0.5656 GB, free: 11.31 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002291/0.522, allocations: 87.19 kB / 0.5657 GB, free: 11.23 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.107e-06/0.522, allocations: 0 / 0.5657 GB, free: 11.23 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.103e-05/0.522, allocations: 3.984 kB / 0.5657 GB, free: 11.23 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.522, allocations: 4 kB / 0.5657 GB, free: 11.22 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.774e-05/0.5221, allocations: 23.61 kB / 0.5657 GB, free: 11.2 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001983/0.5223, allocations: 174.3 kB / 0.5659 GB, free: 10.99 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.713e-05/0.5224, allocations: 58.36 kB / 0.5659 GB, free: 10.93 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.64e-05/0.5224, allocations: 0 / 0.5659 GB, free: 10.93 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002195/0.5227, allocations: 134.9 kB / 0.5661 GB, free: 10.81 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.333e-06/0.5227, allocations: 4 kB / 0.5661 GB, free: 10.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003214/0.523, allocations: 131 kB / 0.5662 GB, free: 10.69 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.072e-05/0.5231, allocations: 55.41 kB / 0.5662 GB, free: 10.62 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.347e-05/0.5231, allocations: 88.75 kB / 0.5663 GB, free: 10.54 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.97e-05/0.5232, allocations: 37.44 kB / 0.5664 GB, free: 10.5 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.296e-05/0.5232, allocations: 80.56 kB / 0.5664 GB, free: 10.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.118e-05/0.5233, allocations: 22.14 kB / 0.5665 GB, free: 10.39 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.795e-06/0.5233, allocations: 7 kB / 0.5665 GB, free: 10.39 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.5234, allocations: 326.2 kB / 0.5668 GB, free: 10.06 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.297e-05/0.5234, allocations: 19.3 kB / 0.5668 GB, free: 10.05 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.611e-05/0.5235, allocations: 73.09 kB / 0.5669 GB, free: 9.961 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.977e-05/0.5236, allocations: 64.89 kB / 0.5669 GB, free: 9.902 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.5236, allocations: 0 / 0.5669 GB, free: 9.902 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002064/0.5238, allocations: 160.3 kB / 0.5671 GB, free: 9.754 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.404e-05/0.5239, allocations: 32.67 kB / 0.5671 GB, free: 9.719 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.5239, allocations: 7.938 kB / 0.5671 GB, free: 9.711 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.4e-05/0.5239, allocations: 4.219 kB / 0.5671 GB, free: 9.707 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.401e-05/0.524, allocations: 23.61 kB / 0.5672 GB, free: 9.688 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.816e-06/0.524, allocations: 4 kB / 0.5672 GB, free: 9.684 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.794e-05/0.5241, allocations: 3.938 kB / 0.5672 GB, free: 9.68 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.278e-05/0.5241, allocations: 8 kB / 0.5672 GB, free: 9.672 MB / 378.7 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,$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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001526/0.5243, allocations: 141.5 kB / 0.5673 GB, free: 9.531 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.225e-05/0.5243, allocations: 7.906 kB / 0.5673 GB, free: 9.523 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.195e-05/0.5243, allocations: 7.469 kB / 0.5673 GB, free: 9.508 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.5244, allocations: 4.188 kB / 0.5673 GB, free: 9.504 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.555e-06/0.5244, allocations: 4 kB / 0.5673 GB, free: 9.5 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.5244, allocations: 3.984 kB / 0.5673 GB, free: 9.496 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001682/0.5246, allocations: 176.3 kB / 0.5675 GB, free: 9.281 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.5246, allocations: 0 / 0.5675 GB, free: 9.281 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.846e-05/0.5246, allocations: 12.05 kB / 0.5675 GB, free: 9.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.987e-06/0.5246, allocations: 4 kB / 0.5675 GB, free: 9.266 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.127e-05/0.5246, allocations: 0 / 0.5675 GB, free: 9.266 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.5246, allocations: 0 / 0.5675 GB, free: 9.266 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.5247, allocations: 0 / 0.5675 GB, free: 9.266 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001998/0.5249, allocations: 141.6 kB / 0.5676 GB, free: 9.129 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.663e-05/0.5249, allocations: 85.05 kB / 0.5677 GB, free: 9.027 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.611e-05/0.5249, allocations: 7.938 kB / 0.5677 GB, free: 9.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001617/0.5251, allocations: 23.17 kB / 0.5678 GB, free: 9 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.665e-05/0.5251, allocations: 7.922 kB / 0.5678 GB, free: 8.992 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.19e-05/0.5252, allocations: 10.69 kB / 0.5678 GB, free: 8.984 MB / 378.7 MB Notification: Performance of sorting global known variables: time 5.153e-05/0.5252, allocations: 83.27 kB / 0.5679 GB, free: 8.902 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5252, allocations: 0 / 0.5679 GB, free: 8.902 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002823/0.5255, allocations: 54.75 kB / 0.5679 GB, free: 8.855 MB / 378.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) * Number of clocked states: 0 () * 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.0007835/0.5263, allocations: 0.769 MB / 0.5687 GB, free: 8.098 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002214/0.5265, allocations: 125.1 kB / 0.5688 GB, free: 7.977 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.5266, allocations: 0 / 0.5688 GB, free: 7.977 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.845e-05/0.5266, allocations: 34.97 kB / 0.5688 GB, free: 7.949 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001278/0.5268, allocations: 8 kB / 0.5688 GB, free: 7.945 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00131/0.5281, allocations: 1.457 MB / 0.5702 GB, free: 6.434 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004213/0.5285, allocations: 0.6926 MB / 0.5709 GB, free: 5.715 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.12e-05/0.5286, allocations: 12.66 kB / 0.5709 GB, free: 5.699 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.018e-05/0.5286, allocations: 19.25 kB / 0.5709 GB, free: 5.684 MB / 378.7 MB Notification: Performance of SimCode: time 2.9e-07/0.5286, allocations: 3.938 kB / 0.5709 GB, free: 5.68 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01383/0.5425, allocations: 2.844 MB / 0.5737 GB, free: 2.875 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001609/0.5427, allocations: 222.6 kB / 0.5739 GB, free: 2.625 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.68/2.222, allocations: 0 / 0.5739 GB, free: 2.625 MB / 378.7 MB (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/linux/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 --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) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestRandomIntegers_res.mat does not exist to compare? outputFormat=mat