Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001336/0.001336, allocations: 118.6 kB / 18.5 MB, free: 4.602 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001389/0.001389, allocations: 206.6 kB / 21.45 MB, free: 1.652 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.577/1.577, allocations: 230.4 MB / 254.7 MB, free: 15.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2474/0.2474, allocations: 46.93 MB / 357.7 MB, free: 10.18 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002326/0.002326, allocations: 79.86 kB / 0.4917 GB, free: 7.719 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1377/0.14, allocations: 66.03 MB / 0.5562 GB, free: 5.555 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.00174/0.1417, allocations: 0.5048 MB / 0.5566 GB, free: 5.043 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003741/0.1455, allocations: 2.388 MB / 0.559 GB, free: 2.633 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.327e-05/0.1455, allocations: 0 / 0.559 GB, free: 2.633 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.607e-05/0.1455, allocations: 0 / 0.559 GB, free: 2.633 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.001e-06/0.1455, allocations: 3.938 kB / 0.559 GB, free: 2.629 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Math.mo:1098:5-1194:31:writable] Warning: Pure function 'ModelicaTest.Math.Random.truncatedDistributions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001677/0.1472, allocations: 0.5684 MB / 0.5595 GB, free: 2.062 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 4.892e-05/0.1472, allocations: 0 / 0.5595 GB, free: 2.062 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.074e-05/0.1473, allocations: 4 kB / 0.5595 GB, free: 2.059 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.419e-05/0.1473, allocations: 0 / 0.5595 GB, free: 2.059 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.901e-05/0.1473, allocations: 7.984 kB / 0.5595 GB, free: 2.051 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.562e-06/0.1473, allocations: 3.938 kB / 0.5596 GB, free: 2.047 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0013/0.1486, allocations: 0.737 MB / 0.5603 GB, free: 1.309 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.295e-05/0.1486, allocations: 7.922 kB / 0.5603 GB, free: 1.301 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.062e-05/0.1487, allocations: 0 / 0.5603 GB, free: 1.301 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007294/0.1494, allocations: 454.9 kB / 0.5607 GB, free: 0.8555 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.811e-06/0.1494, allocations: 3.984 kB / 0.5607 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1494, allocations: 0 / 0.5607 GB, free: 0.8516 MB / 414.1 MB Notification: Performance of Transformations before backend: time 8.686e-06/0.1494, allocations: 0 / 0.5607 GB, free: 0.8516 MB / 414.1 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.0005183/0.1499, allocations: 444.1 kB / 0.5611 GB, free: 372 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.15, allocations: 12.03 kB / 0.5612 GB, free: 360 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.113e-05/0.15, allocations: 34.7 kB / 0.5612 GB, free: 316 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.923e-05/0.1501, allocations: 4.922 kB / 0.5612 GB, free: 312 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001135/0.1502, allocations: 160.4 kB / 0.5613 GB, free: 112 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.858e-06/0.1502, allocations: 8.312 kB / 0.5613 GB, free: 104 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.247e-05/0.1502, allocations: 4.375 kB / 0.5614 GB, free: 100 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.966e-05/0.1503, allocations: 33.83 kB / 0.5614 GB, free: 60 kB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.1503, allocations: 4 kB / 0.5614 GB, free: 56 kB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.674e-06/0.1503, allocations: 0 / 0.5614 GB, free: 56 kB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.419e-06/0.1503, allocations: 0 / 0.5614 GB, free: 56 kB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.078e-05/0.1503, allocations: 0 / 0.5614 GB, free: 56 kB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002747/0.1506, allocations: 232.9 kB / 0.5616 GB, free: 15.78 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.907e-05/0.1507, allocations: 26.55 kB / 0.5616 GB, free: 15.74 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.677e-05/0.1507, allocations: 12.91 kB / 0.5616 GB, free: 15.73 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.656e-06/0.1507, allocations: 0 / 0.5616 GB, free: 15.73 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.667e-05/0.1508, allocations: 64.27 kB / 0.5617 GB, free: 15.65 MB / 430.1 MB Notification: Performance of pre-optimization done (n=2): time 9.62e-07/0.1508, allocations: 0 / 0.5617 GB, free: 15.65 MB / 430.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001967/0.151, allocations: 67.39 kB / 0.5618 GB, free: 15.57 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.317e-05/0.151, allocations: 85.17 kB / 0.5619 GB, free: 15.47 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.916e-05/0.1511, allocations: 93.86 kB / 0.5619 GB, free: 15.37 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.644e-05/0.1511, allocations: 25.7 kB / 0.562 GB, free: 15.34 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.403e-05/0.1511, allocations: 80.14 kB / 0.562 GB, free: 15.25 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.793e-05/0.1511, allocations: 3.953 kB / 0.5621 GB, free: 15.25 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.475e-05/0.1512, allocations: 13.72 kB / 0.5621 GB, free: 15.23 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.1513, allocations: 310.8 kB / 0.5624 GB, free: 14.92 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.587e-05/0.1513, allocations: 8 kB / 0.5624 GB, free: 14.91 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.268e-06/0.1513, allocations: 7.984 kB / 0.5624 GB, free: 14.9 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.994e-05/0.1514, allocations: 64.27 kB / 0.5624 GB, free: 14.82 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.1514, allocations: 3.938 kB / 0.5624 GB, free: 14.82 MB / 430.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.154e-05/0.1515, allocations: 63.41 kB / 0.5625 GB, free: 14.75 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.73e-05/0.1515, allocations: 33.69 kB / 0.5625 GB, free: 14.71 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.149e-06/0.1515, allocations: 7.938 kB / 0.5625 GB, free: 14.7 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.1515, allocations: 0 / 0.5625 GB, free: 14.7 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.802e-05/0.1516, allocations: 7.922 kB / 0.5625 GB, free: 14.69 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.418e-06/0.1516, allocations: 4.094 kB / 0.5626 GB, free: 14.69 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.604e-05/0.1516, allocations: 3.938 kB / 0.5626 GB, free: 14.68 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.69e-06/0.1516, allocations: 0 / 0.5626 GB, free: 14.68 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($outputAlias_result,result) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.82e-05/0.1517, allocations: 143.5 kB / 0.5627 GB, free: 14.53 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.278e-05/0.1517, allocations: 0 / 0.5627 GB, free: 14.53 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.331e-05/0.1517, allocations: 3.125 kB / 0.5627 GB, free: 14.53 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.1517, allocations: 4 kB / 0.5627 GB, free: 14.52 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.1517, allocations: 3.984 kB / 0.5627 GB, free: 14.52 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-06/0.1517, allocations: 0 / 0.5627 GB, free: 14.52 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002756/0.152, allocations: 296.3 kB / 0.563 GB, free: 14.17 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.152, allocations: 4 kB / 0.563 GB, free: 14.16 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.768e-06/0.152, allocations: 7.938 kB / 0.563 GB, free: 14.16 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.793e-06/0.152, allocations: 0 / 0.563 GB, free: 14.16 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.861e-06/0.152, allocations: 0 / 0.563 GB, free: 14.16 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.152, allocations: 0 / 0.563 GB, free: 14.16 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.152, allocations: 0 / 0.563 GB, free: 14.16 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001396/0.1522, allocations: 177.2 kB / 0.5632 GB, free: 13.96 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.652e-05/0.1522, allocations: 77.11 kB / 0.5632 GB, free: 13.87 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.238e-05/0.1522, allocations: 0 / 0.5632 GB, free: 13.87 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.866e-05/0.1523, allocations: 0 / 0.5632 GB, free: 13.87 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.304e-05/0.1523, allocations: 7.984 kB / 0.5632 GB, free: 13.86 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.096e-06/0.1523, allocations: 0 / 0.5632 GB, free: 13.86 MB / 430.1 MB Notification: Performance of sorting global known variables: time 3.729e-05/0.1523, allocations: 75.28 kB / 0.5633 GB, free: 13.79 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1523, allocations: 0 / 0.5633 GB, free: 13.79 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005704/0.1529, allocations: 167.3 kB / 0.5635 GB, free: 13.62 MB / 430.1 MB 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001232/0.1541, allocations: 0.9516 MB / 0.5644 GB, free: 12.64 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001278/0.1543, allocations: 67.42 kB / 0.5645 GB, free: 12.56 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1543, allocations: 0 / 0.5645 GB, free: 12.56 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.335e-05/0.1543, allocations: 59.34 kB / 0.5645 GB, free: 12.49 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001951/0.1545, allocations: 9.266 kB / 0.5645 GB, free: 12.48 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001114/0.1556, allocations: 1.211 MB / 0.5657 GB, free: 11.19 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003052/0.1559, allocations: 0.6729 MB / 0.5664 GB, free: 10.49 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 9.838e-06/0.1559, allocations: 3.938 kB / 0.5664 GB, free: 10.48 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.831e-05/0.1559, allocations: 7.438 kB / 0.5664 GB, free: 10.48 MB / 430.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1559, allocations: 0 / 0.5664 GB, free: 10.48 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02896/0.1849, allocations: 4.648 MB / 0.5709 GB, free: 5.934 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.248/8.433, allocations: 10.12 kB / 0.5709 GB, free: 5.926 MB / 430.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestTruncatedDistributions.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.63525191321969] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.503970758989453 8.529517715999999 8.376140406 Calling exit ...