Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.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.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions",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.001929/0.001929, allocations: 169.9 kB / 8.742 MB, free: 344 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.494/1.494, allocations: 221.5 MB / 230.7 MB, free: 7.574 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.0008662/0.0008664, allocations: 99.3 kB / 281.6 MB, free: 5.316 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2004/0.2004, allocations: 44.15 MB / 376.5 MB, free: 3.039 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.831e-05/1.835e-05, allocations: 8.141 kB / 444.7 MB, free: 15.14 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1676/0.1677, allocations: 61.91 MB / 0.4948 GB, free: 1.168 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4408/0.6086, allocations: 88.82 MB / 0.5815 GB, free: 7.656 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002145/0.6088, allocations: 67.97 kB / 0.5816 GB, free: 7.59 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7728/1.382, allocations: 71.64 MB / 0.6515 GB, free: 15.87 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.645e-06/1.382, allocations: 0 / 0.6515 GB, free: 15.87 MB / 474.7 MB Notification: Performance of Transformations before backend: time 6.702e-06/1.382, allocations: 0 / 0.6515 GB, free: 15.87 MB / 474.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.003844/1.386, allocations: 467.8 kB / 0.652 GB, free: 15.36 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.442e-05/1.386, allocations: 11.98 kB / 0.652 GB, free: 15.35 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.944e-05/1.386, allocations: 4 kB / 0.652 GB, free: 15.34 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001072/1.386, allocations: 171 kB / 0.6522 GB, free: 15.14 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.575e-05/1.386, allocations: 0 / 0.6522 GB, free: 15.14 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.132e-05/1.386, allocations: 0 / 0.6522 GB, free: 15.14 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 5.704e-05/1.386, allocations: 4 kB / 0.6522 GB, free: 15.13 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.067e-05/1.386, allocations: 33.69 kB / 0.6522 GB, free: 15.09 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/1.386, allocations: 0 / 0.6522 GB, free: 15.09 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.849e-06/1.386, allocations: 0 / 0.6522 GB, free: 15.09 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/1.386, allocations: 0 / 0.6522 GB, free: 15.09 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001253/1.386, allocations: 122.2 kB / 0.6523 GB, free: 14.94 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.514e-05/1.386, allocations: 30.55 kB / 0.6523 GB, free: 14.9 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.523e-05/1.386, allocations: 8.797 kB / 0.6523 GB, free: 14.89 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.356e-06/1.386, allocations: 0 / 0.6523 GB, free: 14.89 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.555e-05/1.386, allocations: 56.27 kB / 0.6524 GB, free: 14.82 MB / 474.7 MB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/1.386, allocations: 0 / 0.6524 GB, free: 14.82 MB / 474.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002058/1.387, allocations: 41.75 kB / 0.6524 GB, free: 14.77 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.311e-05/1.387, allocations: 77.11 kB / 0.6525 GB, free: 14.68 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.166e-05/1.387, allocations: 89.03 kB / 0.6526 GB, free: 14.58 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.659e-05/1.387, allocations: 25.7 kB / 0.6526 GB, free: 14.55 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.379e-05/1.387, allocations: 80.14 kB / 0.6527 GB, free: 14.47 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 2e-05/1.387, allocations: 4 kB / 0.6527 GB, free: 14.46 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.913e-06/1.387, allocations: 0 / 0.6527 GB, free: 14.46 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 9.043e-05/1.387, allocations: 310.8 kB / 0.653 GB, free: 14.15 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.204e-06/1.387, allocations: 0 / 0.653 GB, free: 14.15 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.949e-06/1.387, allocations: 0 / 0.653 GB, free: 14.15 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.344e-05/1.387, allocations: 8.062 kB / 0.653 GB, free: 14.14 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/1.387, allocations: 0 / 0.653 GB, free: 14.14 MB / 474.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.96e-05/1.387, allocations: 41.62 kB / 0.653 GB, free: 14.1 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.826e-05/1.387, allocations: 37.66 kB / 0.6531 GB, free: 14.05 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/1.387, allocations: 4.688 kB / 0.6531 GB, free: 14.05 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/1.387, allocations: 0 / 0.6531 GB, free: 14.05 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.453e-06/1.387, allocations: 0 / 0.6531 GB, free: 14.05 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.256e-06/1.387, allocations: 0 / 0.6531 GB, free: 14.05 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.333e-05/1.387, allocations: 0 / 0.6531 GB, free: 14.05 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.157e-06/1.387, allocations: 4 kB / 0.6531 GB, free: 14.05 MB / 474.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 7.044e-05/1.387, allocations: 134.7 kB / 0.6532 GB, free: 13.9 MB / 474.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 6.259e-05/1.387, allocations: 37.61 kB / 0.6533 GB, free: 13.86 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.646e-06/1.387, allocations: 11.89 kB / 0.6533 GB, free: 13.85 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.709e-05/1.387, allocations: 7.703 kB / 0.6533 GB, free: 13.84 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-06/1.387, allocations: 0 / 0.6533 GB, free: 13.84 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/1.387, allocations: 0 / 0.6533 GB, free: 13.84 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.404e-06/1.387, allocations: 3.938 kB / 0.6533 GB, free: 13.84 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.918e-05/1.387, allocations: 130.2 kB / 0.6534 GB, free: 13.67 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/1.387, allocations: 0 / 0.6534 GB, free: 13.67 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-07/1.387, allocations: 8.031 kB / 0.6534 GB, free: 13.66 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.333e-06/1.387, allocations: 0 / 0.6534 GB, free: 13.66 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.696e-06/1.387, allocations: 7.953 kB / 0.6534 GB, free: 13.66 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/1.387, allocations: 0 / 0.6534 GB, free: 13.66 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/1.387, allocations: 0 / 0.6534 GB, free: 13.66 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.348e-05/1.387, allocations: 61.12 kB / 0.6535 GB, free: 13.58 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.645e-05/1.388, allocations: 77.11 kB / 0.6535 GB, free: 13.48 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.089e-05/1.388, allocations: 0 / 0.6535 GB, free: 13.48 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.188e-05/1.388, allocations: 11.98 kB / 0.6536 GB, free: 13.47 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.796e-05/1.388, allocations: 0 / 0.6536 GB, free: 13.47 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5e-06/1.388, allocations: 4 kB / 0.6536 GB, free: 13.47 MB / 474.7 MB Notification: Performance of sorting global known variables: time 2.238e-05/1.388, allocations: 75.28 kB / 0.6536 GB, free: 13.39 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.2e-07/1.388, allocations: 0 / 0.6536 GB, free: 13.39 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006068/1.394, allocations: 1.527 MB / 0.6551 GB, free: 11.87 MB / 474.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.009967/1.404, allocations: 2.525 MB / 0.6576 GB, free: 9.312 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0001014/1.404, allocations: 59.34 kB / 0.6576 GB, free: 9.242 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/1.404, allocations: 8.031 kB / 0.6577 GB, free: 9.234 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 3.045e-05/1.404, allocations: 63.34 kB / 0.6577 GB, free: 9.16 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.76e-05/1.404, allocations: 3.953 kB / 0.6577 GB, free: 9.156 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001806/1.406, allocations: 177.4 kB / 0.6579 GB, free: 8.945 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001796/1.406, allocations: 0.669 MB / 0.6585 GB, free: 8.25 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 6.803e-06/1.406, allocations: 4 kB / 0.6585 GB, free: 8.246 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.523e-05/1.406, allocations: 11.44 kB / 0.6586 GB, free: 8.234 MB / 474.7 MB Notification: Performance of SimCode: time 3.4e-07/1.406, allocations: 3.938 kB / 0.6586 GB, free: 8.23 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4485/1.855, allocations: 88.77 MB / 0.7453 GB, free: 116.7 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001461/1.855, allocations: 171.7 kB / 0.7454 GB, free: 116.5 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.484/10.34, allocations: 0 / 0.7454 GB, free: 116.5 MB / 0.4948 GB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat does not exist to compare? outputFormat=mat