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.001546/0.001545, allocations: 196.5 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 225.6 MB / 234.8 MB, free: 3.211 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008497/0.0008497, allocations: 101 kB / 286.7 MB, free: 5.309 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2047/0.2047, allocations: 45.14 MB / 383.8 MB, free: 248 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.831e-05/1.813e-05, allocations: 0 / 453.3 MB, free: 75.74 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1227, allocations: 63.25 MB / 0.5045 GB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3813/0.504, allocations: 86.22 MB / 0.5887 GB, free: 8 kB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002299/0.5043, allocations: 55.16 kB / 0.5887 GB, free: 15.98 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01013/0.5144, allocations: 3.328 MB / 0.592 GB, free: 13.2 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.817e-06/0.5145, allocations: 0 / 0.592 GB, free: 13.2 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.237e-05/0.5145, allocations: 7.938 kB / 0.592 GB, free: 13.19 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.000397/0.5149, allocations: 395.8 kB / 0.5923 GB, free: 12.76 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.5149, allocations: 8.031 kB / 0.5923 GB, free: 12.75 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.715e-05/0.515, allocations: 8.531 kB / 0.5924 GB, free: 12.74 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002025/0.5152, allocations: 183 kB / 0.5925 GB, free: 12.52 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.686e-05/0.5152, allocations: 8 kB / 0.5925 GB, free: 12.52 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.339e-05/0.5152, allocations: 0 / 0.5925 GB, free: 12.52 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.644e-05/0.5153, allocations: 23.86 kB / 0.5926 GB, free: 12.5 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001293/0.5155, allocations: 85.02 kB / 0.5926 GB, free: 12.42 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.5155, allocations: 0 / 0.5926 GB, free: 12.42 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.117e-05/0.5155, allocations: 7.938 kB / 0.5927 GB, free: 12.41 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.5155, allocations: 0 / 0.5927 GB, free: 12.41 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000157/0.5157, allocations: 145.9 kB / 0.5928 GB, free: 12.24 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.508e-05/0.5158, allocations: 46.31 kB / 0.5928 GB, free: 12.19 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.547e-05/0.5158, allocations: 16.48 kB / 0.5929 GB, free: 12.18 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.216e-05/0.5158, allocations: 11.98 kB / 0.5929 GB, free: 12.16 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001829/0.516, allocations: 123.5 kB / 0.593 GB, free: 12.05 MB / 394.7 MB Notification: Performance of pre-optimization done (n=10): time 1.262e-06/0.516, allocations: 0 / 0.593 GB, free: 12.05 MB / 394.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002539/0.5163, allocations: 108.8 kB / 0.5931 GB, free: 11.95 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.28e-05/0.5163, allocations: 63.39 kB / 0.5931 GB, free: 11.88 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.937e-05/0.5164, allocations: 100.8 kB / 0.5932 GB, free: 11.77 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.364e-05/0.5165, allocations: 25.7 kB / 0.5933 GB, free: 11.74 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.621e-05/0.5165, allocations: 80.33 kB / 0.5933 GB, free: 11.66 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.418e-05/0.5165, allocations: 27.58 kB / 0.5934 GB, free: 11.64 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.909e-06/0.5165, allocations: 0 / 0.5934 GB, free: 11.64 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001057/0.5167, allocations: 314.8 kB / 0.5937 GB, free: 11.32 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.672e-05/0.5167, allocations: 23.48 kB / 0.5937 GB, free: 11.3 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.299e-05/0.5168, allocations: 68.05 kB / 0.5938 GB, free: 11.22 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.437e-05/0.5169, allocations: 39.72 kB / 0.5938 GB, free: 11.19 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.993e-06/0.5169, allocations: 0 / 0.5938 GB, free: 11.19 MB / 394.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001956/0.5171, allocations: 121.1 kB / 0.5939 GB, free: 11.08 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.251e-05/0.5171, allocations: 33.52 kB / 0.5939 GB, free: 11.04 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.5171, allocations: 4 kB / 0.5939 GB, free: 11.04 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.5172, allocations: 0 / 0.5939 GB, free: 11.04 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001167/0.5173, allocations: 19.98 kB / 0.594 GB, free: 11.02 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.713e-06/0.5173, allocations: 4.156 kB / 0.594 GB, free: 11.02 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.115e-05/0.5174, allocations: 11.94 kB / 0.594 GB, free: 11 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.061e-05/0.5174, allocations: 4 kB / 0.594 GB, free: 11 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.0001182/0.5175, allocations: 120.8 kB / 0.5941 GB, free: 10.88 MB / 394.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001757/0.5177, allocations: 108.5 kB / 0.5942 GB, free: 10.78 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.769e-05/0.5177, allocations: 4 kB / 0.5942 GB, free: 10.77 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.257e-05/0.5177, allocations: 8.344 kB / 0.5942 GB, free: 10.77 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.5178, allocations: 0 / 0.5942 GB, free: 10.77 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.339e-06/0.5178, allocations: 8 kB / 0.5942 GB, free: 10.76 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.5178, allocations: 3.984 kB / 0.5942 GB, free: 10.76 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000118/0.5179, allocations: 150 kB / 0.5944 GB, free: 10.58 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.5179, allocations: 0 / 0.5944 GB, free: 10.58 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.79e-05/0.5179, allocations: 12.05 kB / 0.5944 GB, free: 10.57 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.518, allocations: 0 / 0.5944 GB, free: 10.57 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.227e-06/0.518, allocations: 0 / 0.5944 GB, free: 10.57 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.518, allocations: 4 kB / 0.5944 GB, free: 10.56 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.518, allocations: 4.125 kB / 0.5944 GB, free: 10.56 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000201/0.5182, allocations: 132.4 kB / 0.5945 GB, free: 10.43 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.604e-05/0.5182, allocations: 88.97 kB / 0.5946 GB, free: 10.32 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.671e-05/0.5183, allocations: 7.75 kB / 0.5946 GB, free: 10.32 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001552/0.5184, allocations: 23.91 kB / 0.5946 GB, free: 10.29 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.944e-05/0.5185, allocations: 7.938 kB / 0.5946 GB, free: 10.29 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.059e-05/0.5185, allocations: 7.984 kB / 0.5946 GB, free: 10.28 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.151e-05/0.5185, allocations: 83.09 kB / 0.5947 GB, free: 10.2 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.5e-07/0.5185, allocations: 4 kB / 0.5947 GB, free: 10.2 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002849/0.5188, allocations: 51.86 kB / 0.5948 GB, free: 10.15 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.0007812/0.5196, allocations: 0.7495 MB / 0.5955 GB, free: 9.398 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001688/0.5198, allocations: 118.8 kB / 0.5956 GB, free: 9.281 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.5198, allocations: 0 / 0.5956 GB, free: 9.281 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.808e-05/0.5199, allocations: 35.72 kB / 0.5957 GB, free: 9.254 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001086/0.52, allocations: 1.703 kB / 0.5957 GB, free: 9.254 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004671/0.5205, allocations: 153.2 kB / 0.5958 GB, free: 9.074 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002354/0.5207, allocations: 0.6885 MB / 0.5965 GB, free: 8.359 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 5.042e-05/0.5208, allocations: 12.66 kB / 0.5965 GB, free: 8.348 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.477e-05/0.5208, allocations: 14.94 kB / 0.5965 GB, free: 8.336 MB / 394.7 MB Notification: Performance of SimCode: time 2.51e-07/0.5208, allocations: 0 / 0.5965 GB, free: 8.336 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02089/0.5417, allocations: 2.578 MB / 0.599 GB, free: 5.773 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001714/0.5419, allocations: 170.8 kB / 0.5992 GB, free: 5.578 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.505/2.047, allocations: 0 / 0.5992 GB, free: 5.578 MB / 394.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