Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.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.TestDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestDistributions",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.002059/0.002059, allocations: 179.6 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.532/1.532, allocations: 221.3 MB / 236 MB, free: 2.984 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.0008827/0.0008825, allocations: 99.97 kB / 287 MB, free: 256 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.2486/0.2486, allocations: 44.15 MB / 382 MB, free: 14.69 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.844e-05/3.869e-05, allocations: 4.219 kB / 451.9 MB, free: 9.34 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1451/0.1452, allocations: 61.92 MB / 0.5018 GB, free: 11.36 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4639/0.6091, allocations: 88.05 MB / 0.5878 GB, free: 1.207 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002083/0.6094, allocations: 71.97 kB / 0.5878 GB, free: 1.137 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.038/1.648, allocations: 97.2 MB / 0.6828 GB, free: 15.82 MB / 0.4948 GB Notification: Performance of FrontEnd: time 1.523e-06/1.648, allocations: 0 / 0.6828 GB, free: 15.82 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 5.29e-06/1.648, allocations: 4 kB / 0.6828 GB, free: 15.81 MB / 0.4948 GB 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.004181/1.652, allocations: 439.9 kB / 0.6832 GB, free: 15.33 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 6.695e-05/1.652, allocations: 8.031 kB / 0.6832 GB, free: 15.32 MB / 0.4948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.339e-05/1.652, allocations: 30.56 kB / 0.6832 GB, free: 15.29 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.337e-05/1.652, allocations: 0 / 0.6832 GB, free: 15.29 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001026/1.652, allocations: 175 kB / 0.6834 GB, free: 15.07 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.193e-05/1.652, allocations: 0 / 0.6834 GB, free: 15.07 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.554e-05/1.652, allocations: 0 / 0.6834 GB, free: 15.07 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001207/1.653, allocations: 41.64 kB / 0.6834 GB, free: 15.03 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.532e-06/1.653, allocations: 0 / 0.6834 GB, free: 15.03 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.045e-05/1.653, allocations: 4 kB / 0.6834 GB, free: 15.02 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.418e-06/1.653, allocations: 0 / 0.6834 GB, free: 15.02 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.321e-05/1.653, allocations: 7.938 kB / 0.6834 GB, free: 15.02 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000252/1.653, allocations: 232.9 kB / 0.6837 GB, free: 14.74 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 5.616e-05/1.653, allocations: 18.61 kB / 0.6837 GB, free: 14.71 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.647e-05/1.653, allocations: 16.86 kB / 0.6837 GB, free: 14.69 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.22e-05/1.653, allocations: 0 / 0.6837 GB, free: 14.69 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.14e-05/1.653, allocations: 64.27 kB / 0.6838 GB, free: 14.61 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=2): time 2.955e-06/1.653, allocations: 0 / 0.6838 GB, free: 14.61 MB / 0.4948 GB Notification: Performance of matching and sorting (n=2): time 0.0002005/1.653, allocations: 67.33 kB / 0.6838 GB, free: 14.54 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.243e-05/1.653, allocations: 77.11 kB / 0.6839 GB, free: 14.44 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.517e-05/1.653, allocations: 85 kB / 0.684 GB, free: 14.35 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 1.531e-05/1.653, allocations: 29.73 kB / 0.684 GB, free: 14.32 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 3.195e-05/1.653, allocations: 88.12 kB / 0.6841 GB, free: 14.23 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 1.964e-05/1.653, allocations: 7.906 kB / 0.6841 GB, free: 14.22 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.885e-06/1.653, allocations: 0 / 0.6841 GB, free: 14.22 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001135/1.654, allocations: 314.8 kB / 0.6844 GB, free: 13.9 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.006e-05/1.654, allocations: 0 / 0.6844 GB, free: 13.9 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.625e-06/1.654, allocations: 7.938 kB / 0.6844 GB, free: 13.89 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.48e-05/1.654, allocations: 33.69 kB / 0.6844 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/1.654, allocations: 0 / 0.6844 GB, free: 13.86 MB / 0.4948 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.879e-05/1.654, allocations: 67.47 kB / 0.6845 GB, free: 13.78 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.418e-05/1.654, allocations: 29.7 kB / 0.6845 GB, free: 13.74 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/1.654, allocations: 4 kB / 0.6845 GB, free: 13.74 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/1.654, allocations: 0 / 0.6845 GB, free: 13.74 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.197e-05/1.654, allocations: 3.984 kB / 0.6845 GB, free: 13.73 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.722e-06/1.654, allocations: 0 / 0.6845 GB, free: 13.73 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.682e-05/1.654, allocations: 0 / 0.6845 GB, free: 13.73 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.712e-06/1.654, allocations: 0 / 0.6845 GB, free: 13.73 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (result,$outputAlias_result) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * 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 8.325e-05/1.654, allocations: 134.6 kB / 0.6847 GB, free: 13.59 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.275e-05/1.654, allocations: 8.031 kB / 0.6847 GB, free: 13.58 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.32e-05/1.654, allocations: 7.078 kB / 0.6847 GB, free: 13.57 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-06/1.654, allocations: 0 / 0.6847 GB, free: 13.57 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/1.654, allocations: 4 kB / 0.6847 GB, free: 13.57 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.695e-06/1.654, allocations: 0 / 0.6847 GB, free: 13.57 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002629/1.654, allocations: 300.2 kB / 0.685 GB, free: 13.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/1.654, allocations: 0 / 0.685 GB, free: 13.21 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.396e-06/1.654, allocations: 0 / 0.685 GB, free: 13.21 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.848e-06/1.654, allocations: 4 kB / 0.685 GB, free: 13.21 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.133e-06/1.654, allocations: 4.031 kB / 0.685 GB, free: 13.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/1.654, allocations: 0 / 0.685 GB, free: 13.2 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/1.654, allocations: 0 / 0.685 GB, free: 13.2 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001625/1.655, allocations: 169.1 kB / 0.6851 GB, free: 13.02 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 3.824e-05/1.655, allocations: 81.11 kB / 0.6852 GB, free: 12.92 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.569e-05/1.655, allocations: 3.938 kB / 0.6852 GB, free: 12.91 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.195e-05/1.655, allocations: 3.938 kB / 0.6852 GB, free: 12.91 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.043e-05/1.655, allocations: 4.031 kB / 0.6852 GB, free: 12.91 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.578e-06/1.655, allocations: 4 kB / 0.6852 GB, free: 12.9 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 3.48e-05/1.655, allocations: 75.28 kB / 0.6853 GB, free: 12.83 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.3e-07/1.655, allocations: 0 / 0.6853 GB, free: 12.83 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.008525/1.663, allocations: 2.16 MB / 0.6874 GB, free: 10.67 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (result,$outputAlias_result) * Number of discrete states: 1 ($outputAlias_result) * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * 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.01464/1.678, allocations: 2.872 MB / 0.6902 GB, free: 7.77 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0001525/1.678, allocations: 59.41 kB / 0.6903 GB, free: 7.699 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/1.678, allocations: 0 / 0.6903 GB, free: 7.699 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 3.711e-05/1.678, allocations: 63.41 kB / 0.6903 GB, free: 7.625 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001202/1.678, allocations: 4.125 kB / 0.6903 GB, free: 7.621 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003438/1.682, allocations: 169.7 kB / 0.6905 GB, free: 7.422 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000219/1.682, allocations: 0.6731 MB / 0.6912 GB, free: 6.723 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 1.576e-05/1.682, allocations: 4 kB / 0.6912 GB, free: 6.719 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.677e-05/1.682, allocations: 7.438 kB / 0.6912 GB, free: 6.711 MB / 0.4948 GB Notification: Performance of SimCode: time 9.02e-07/1.682, allocations: 0 / 0.6912 GB, free: 6.711 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5181/2.2, allocations: 124.7 MB / 0.8129 GB, free: 87.34 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001692/2.2, allocations: 190.6 kB / 0.8131 GB, free: 87.12 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.66/17.86, allocations: 0 / 0.8131 GB, free: 87.12 MB / 0.5105 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestDistributions.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestDistributions_res.mat does not exist to compare? outputFormat=mat