Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.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.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestTruncatedDistributions",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.001385/0.001385, allocations: 181.5 kB / 8.005 MB, free: 1.066 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.808/1.808, allocations: 205.3 MB / 213.7 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008221/0.000822, allocations: 90.62 kB / 261.7 MB, free: 1.68 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2233/0.2233, allocations: 43.49 MB / 353.2 MB, free: 280 kB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 2.573e-05/2.599e-05, allocations: 4 kB / 418.4 MB, free: 28.46 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1211, allocations: 58.85 MB / 477.2 MB, free: 1.555 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5106/0.6318, allocations: 87.74 MB / 0.5517 GB, free: 7.055 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002834/0.6322, allocations: 66.69 kB / 0.5518 GB, free: 7.023 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7812/1.413, allocations: 71.58 MB / 0.6217 GB, free: 7.844 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.784e-06/1.413, allocations: 0 / 0.6217 GB, free: 7.844 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.095e-06/1.413, allocations: 0 / 0.6217 GB, free: 7.844 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.004358/1.418, allocations: 470.9 kB / 0.6221 GB, free: 7.336 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/1.418, allocations: 8.031 kB / 0.6221 GB, free: 7.328 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.993e-05/1.418, allocations: 3.953 kB / 0.6221 GB, free: 7.324 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.633e-05/1.418, allocations: 167 kB / 0.6223 GB, free: 7.125 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.657e-05/1.418, allocations: 7.875 kB / 0.6223 GB, free: 7.121 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.147e-05/1.418, allocations: 4 kB / 0.6223 GB, free: 7.117 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.731e-05/1.418, allocations: 3.984 kB / 0.6223 GB, free: 7.113 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.171e-05/1.418, allocations: 25.7 kB / 0.6223 GB, free: 7.082 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.112e-06/1.418, allocations: 3.938 kB / 0.6223 GB, free: 7.078 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.123e-05/1.418, allocations: 0 / 0.6223 GB, free: 7.078 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/1.418, allocations: 4 kB / 0.6223 GB, free: 7.074 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001302/1.418, allocations: 130.2 kB / 0.6225 GB, free: 6.91 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.464e-05/1.418, allocations: 18.58 kB / 0.6225 GB, free: 6.883 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.998e-05/1.418, allocations: 4.953 kB / 0.6225 GB, free: 6.875 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.676e-06/1.418, allocations: 4 kB / 0.6225 GB, free: 6.871 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.005e-05/1.419, allocations: 63.56 kB / 0.6225 GB, free: 6.797 MB / 426.7 MB Notification: Performance of pre-optimization done (n=1): time 1.333e-06/1.419, allocations: 0.5625 kB / 0.6225 GB, free: 6.797 MB / 426.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002107/1.419, allocations: 29.7 kB / 0.6226 GB, free: 6.762 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.757e-05/1.419, allocations: 89.08 kB / 0.6227 GB, free: 6.656 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.858e-05/1.419, allocations: 85 kB / 0.6227 GB, free: 6.566 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.203e-05/1.419, allocations: 25.7 kB / 0.6228 GB, free: 6.535 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.763e-05/1.419, allocations: 80.14 kB / 0.6228 GB, free: 6.453 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.047e-05/1.419, allocations: 4.562 kB / 0.6228 GB, free: 6.449 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.564e-06/1.419, allocations: 0 / 0.6228 GB, free: 6.449 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001218/1.419, allocations: 314.6 kB / 0.6231 GB, free: 6.137 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.025e-05/1.419, allocations: 4 kB / 0.6232 GB, free: 6.133 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.245e-06/1.419, allocations: 3.984 kB / 0.6232 GB, free: 6.129 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.569e-05/1.419, allocations: 8.016 kB / 0.6232 GB, free: 6.121 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/1.419, allocations: 0 / 0.6232 GB, free: 6.121 MB / 426.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.91e-05/1.419, allocations: 33.7 kB / 0.6232 GB, free: 6.082 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.065e-05/1.419, allocations: 29.7 kB / 0.6232 GB, free: 6.047 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/1.419, allocations: 0 / 0.6232 GB, free: 6.047 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/1.419, allocations: 0 / 0.6232 GB, free: 6.047 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.413e-06/1.419, allocations: 4 kB / 0.6232 GB, free: 6.043 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/1.419, allocations: 3.984 kB / 0.6232 GB, free: 6.039 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.462e-05/1.419, allocations: 0 / 0.6232 GB, free: 6.039 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.336e-06/1.419, allocations: 32 / 0.6232 GB, free: 6.039 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * 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.0001032/1.419, allocations: 138.6 kB / 0.6234 GB, free: 5.891 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001035/1.42, allocations: 41.52 kB / 0.6234 GB, free: 5.848 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.478e-06/1.42, allocations: 0 / 0.6234 GB, free: 5.848 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.685e-05/1.42, allocations: 11.67 kB / 0.6234 GB, free: 5.836 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/1.42, allocations: 0 / 0.6234 GB, free: 5.836 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/1.42, allocations: 0 / 0.6234 GB, free: 5.836 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/1.42, allocations: 4 kB / 0.6234 GB, free: 5.832 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.267e-05/1.42, allocations: 126.2 kB / 0.6235 GB, free: 5.672 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/1.42, allocations: 32 / 0.6235 GB, free: 5.672 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.81e-07/1.42, allocations: 4 kB / 0.6235 GB, free: 5.668 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/1.42, allocations: 0 / 0.6235 GB, free: 5.668 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.276e-06/1.42, allocations: 0 / 0.6235 GB, free: 5.668 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/1.42, allocations: 4 kB / 0.6235 GB, free: 5.664 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/1.42, allocations: 3.984 kB / 0.6235 GB, free: 5.66 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001077/1.42, allocations: 68.88 kB / 0.6236 GB, free: 5.578 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.088e-05/1.42, allocations: 77.11 kB / 0.6237 GB, free: 5.484 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.666e-05/1.42, allocations: 8.031 kB / 0.6237 GB, free: 5.477 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.142e-05/1.42, allocations: 3.984 kB / 0.6237 GB, free: 5.473 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.667e-05/1.42, allocations: 0 / 0.6237 GB, free: 5.473 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.717e-06/1.42, allocations: 0 / 0.6237 GB, free: 5.473 MB / 426.7 MB Notification: Performance of sorting global known variables: time 3.767e-05/1.42, allocations: 75.28 kB / 0.6238 GB, free: 5.398 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.42, allocations: 0 / 0.6238 GB, free: 5.398 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0067/1.427, allocations: 1.526 MB / 0.6253 GB, free: 3.879 MB / 426.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: 1 (result) * Number of discrete states: 1 (result) * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * 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 Backend phase and start with SimCode phase: time 0.01484/1.442, allocations: 2.538 MB / 0.6277 GB, free: 1.32 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0002475/1.442, allocations: 55.41 kB / 0.6278 GB, free: 1.254 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/1.442, allocations: 4.094 kB / 0.6278 GB, free: 1.25 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 5.366e-05/1.442, allocations: 55.28 kB / 0.6278 GB, free: 1.188 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001529/1.442, allocations: 7.984 kB / 0.6279 GB, free: 1.18 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004308/1.447, allocations: 185.2 kB / 0.628 GB, free: 0.9609 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003124/1.447, allocations: 0.6768 MB / 0.6287 GB, free: 264 kB / 426.7 MB Notification: Performance of simCode: alias equations: time 1.155e-05/1.447, allocations: 0 / 0.6287 GB, free: 264 kB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.601e-05/1.447, allocations: 7.438 kB / 0.6287 GB, free: 256 kB / 426.7 MB Notification: Performance of SimCode: time 1.092e-06/1.447, allocations: 0 / 0.6287 GB, free: 256 kB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.499/1.946, allocations: 88.76 MB / 0.7154 GB, free: 108 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001597/1.946, allocations: 181.9 kB / 0.7156 GB, free: 107.8 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.286/10.23, allocations: 1.312 kB / 0.7156 GB, free: 107.8 MB / 0.4948 GB (rm -f ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestTruncatedDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Math_Random_TestTruncatedDistributions.fmu > ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat does not exist to compare? outputFormat=mat