Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.conf.json 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 4.0.0+maint.om/package.mo", uses=false) 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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestRandomIntegers,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002497/0.002497, allocations: 180.5 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.625/1.625, allocations: 221.3 MB / 236 MB, free: 2.965 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009636/0.0009638, allocations: 91.84 kB / 287 MB, free: 248 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2054/0.2054, allocations: 44.16 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.185e-05/3.187e-05, allocations: 4.219 kB / 451.9 MB, free: 9.348 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1322/0.1323, allocations: 61.92 MB / 0.5018 GB, free: 11.36 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4017/0.534, allocations: 85.83 MB / 0.5856 GB, free: 3.32 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001985/0.5343, allocations: 63.97 kB / 0.5857 GB, free: 3.258 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01011/0.5444, allocations: 3.321 MB / 0.5889 GB, free: 15.95 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.5444, allocations: 0 / 0.5889 GB, free: 15.95 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.002e-05/0.5444, allocations: 0 / 0.5889 GB, free: 15.95 MB / 410.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.0003961/0.5448, allocations: 396.1 kB / 0.5893 GB, free: 15.52 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.5449, allocations: 8.031 kB / 0.5893 GB, free: 15.51 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.035e-05/0.5449, allocations: 42.44 kB / 0.5893 GB, free: 15.46 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.848e-05/0.545, allocations: 7.906 kB / 0.5894 GB, free: 15.45 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002134/0.5452, allocations: 179 kB / 0.5895 GB, free: 15.23 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.619e-05/0.5452, allocations: 15.11 kB / 0.5895 GB, free: 15.22 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.765e-05/0.5452, allocations: 7.953 kB / 0.5895 GB, free: 15.21 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001945/0.5454, allocations: 85.62 kB / 0.5896 GB, free: 15.12 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.804e-06/0.5455, allocations: 4 kB / 0.5896 GB, free: 15.12 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.03e-05/0.5455, allocations: 4 kB / 0.5896 GB, free: 15.12 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.5455, allocations: 3.938 kB / 0.5896 GB, free: 15.11 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.21e-05/0.5456, allocations: 19.98 kB / 0.5897 GB, free: 15.09 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001939/0.5458, allocations: 169.6 kB / 0.5898 GB, free: 14.88 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.52e-05/0.5459, allocations: 46.58 kB / 0.5899 GB, free: 14.82 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.35e-05/0.5459, allocations: 25.08 kB / 0.5899 GB, free: 14.8 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.401e-05/0.5459, allocations: 7.938 kB / 0.5899 GB, free: 14.79 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002191/0.5462, allocations: 135.3 kB / 0.59 GB, free: 14.64 MB / 410.7 MB Notification: Performance of pre-optimization done (n=10): time 1.593e-06/0.5462, allocations: 0 / 0.59 GB, free: 14.64 MB / 410.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002422/0.5464, allocations: 101.5 kB / 0.5901 GB, free: 14.54 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.722e-05/0.5465, allocations: 63.41 kB / 0.5902 GB, free: 14.46 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.352e-05/0.5466, allocations: 92.98 kB / 0.5903 GB, free: 14.37 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.564e-05/0.5466, allocations: 29.7 kB / 0.5903 GB, free: 14.33 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.947e-05/0.5466, allocations: 80.33 kB / 0.5904 GB, free: 14.25 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.126e-05/0.5467, allocations: 31.64 kB / 0.5904 GB, free: 14.21 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.242e-06/0.5467, allocations: 4 kB / 0.5904 GB, free: 14.21 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.5468, allocations: 310.8 kB / 0.5907 GB, free: 13.9 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.635e-05/0.5468, allocations: 27.98 kB / 0.5907 GB, free: 13.87 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.093e-05/0.5469, allocations: 78.8 kB / 0.5908 GB, free: 13.77 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.865e-05/0.547, allocations: 53.69 kB / 0.5909 GB, free: 13.71 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.547, allocations: 4 kB / 0.5909 GB, free: 13.71 MB / 410.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002399/0.5473, allocations: 155.1 kB / 0.591 GB, free: 13.54 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.942e-05/0.5473, allocations: 41.64 kB / 0.5911 GB, free: 13.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.793e-06/0.5473, allocations: 4 kB / 0.5911 GB, free: 13.49 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.5473, allocations: 96 / 0.5911 GB, free: 13.49 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.344e-05/0.5474, allocations: 19.94 kB / 0.5911 GB, free: 13.47 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/0.5475, allocations: 12.14 kB / 0.5911 GB, free: 13.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.726e-05/0.5475, allocations: 8 kB / 0.5911 GB, free: 13.45 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.041e-05/0.5475, allocations: 7.938 kB / 0.5911 GB, free: 13.45 MB / 410.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.0001117/0.5477, allocations: 120.9 kB / 0.5912 GB, free: 13.32 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.266e-05/0.5477, allocations: 7.906 kB / 0.5912 GB, free: 13.31 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.669e-05/0.5477, allocations: 16.91 kB / 0.5912 GB, free: 13.29 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.5477, allocations: 4 kB / 0.5912 GB, free: 13.29 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.5478, allocations: 4 kB / 0.5912 GB, free: 13.28 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.5478, allocations: 0 / 0.5912 GB, free: 13.28 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001418/0.5479, allocations: 169.6 kB / 0.5914 GB, free: 13.07 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.5479, allocations: 0 / 0.5914 GB, free: 13.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.61e-05/0.548, allocations: 8 kB / 0.5914 GB, free: 13.06 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.548, allocations: 8 kB / 0.5914 GB, free: 13.05 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.331e-05/0.548, allocations: 7.984 kB / 0.5914 GB, free: 13.04 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.879e-06/0.548, allocations: 3.953 kB / 0.5914 GB, free: 13.04 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.548, allocations: 0 / 0.5914 GB, free: 13.04 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001883/0.5482, allocations: 136.9 kB / 0.5916 GB, free: 12.89 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.289e-05/0.5483, allocations: 81.3 kB / 0.5916 GB, free: 12.79 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.005e-05/0.5483, allocations: 0 / 0.5916 GB, free: 12.79 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001546/0.5484, allocations: 27.95 kB / 0.5917 GB, free: 12.76 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.967e-05/0.5485, allocations: 11.95 kB / 0.5917 GB, free: 12.75 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.338e-05/0.5485, allocations: 7.984 kB / 0.5917 GB, free: 12.74 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.323e-05/0.5485, allocations: 79.28 kB / 0.5918 GB, free: 12.66 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5485, allocations: 4 kB / 0.5918 GB, free: 12.66 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002876/0.5488, allocations: 59.92 kB / 0.5918 GB, free: 12.6 MB / 410.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.0007142/0.5496, allocations: 0.7556 MB / 0.5926 GB, free: 11.84 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001773/0.5498, allocations: 127.3 kB / 0.5927 GB, free: 11.71 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.5498, allocations: 0 / 0.5927 GB, free: 11.71 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 5.581e-05/0.5498, allocations: 32.02 kB / 0.5927 GB, free: 11.68 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001041/0.5499, allocations: 12.69 kB / 0.5927 GB, free: 11.66 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004616/0.5504, allocations: 159.1 kB / 0.5929 GB, free: 11.47 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002666/0.5507, allocations: 0.6926 MB / 0.5936 GB, free: 10.75 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 4.823e-05/0.5507, allocations: 12.66 kB / 0.5936 GB, free: 10.74 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.704e-05/0.5508, allocations: 19.38 kB / 0.5936 GB, free: 10.72 MB / 410.7 MB Notification: Performance of SimCode: time 4.31e-07/0.5508, allocations: 0 / 0.5936 GB, free: 10.72 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01437/0.5652, allocations: 2.878 MB / 0.5964 GB, free: 7.938 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002382/0.5655, allocations: 190 kB / 0.5966 GB, free: 7.711 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.565/2.13, allocations: 1.547 kB / 0.5966 GB, free: 7.711 MB / 410.7 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestRandomIntegers.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestRandomIntegers_res.mat does not exist to compare? outputFormat=mat