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.001403/0.001403, allocations: 117.3 kB / 18.5 MB, free: 4.434 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.001801/0.001801, allocations: 218.6 kB / 21.47 MB, free: 1.473 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.506/1.506, allocations: 230.2 MB / 254.5 MB, free: 15.41 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.2299/0.2299, allocations: 46.9 MB / 357.4 MB, free: 10.51 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.002338/0.002338, allocations: 78.41 kB / 0.4912 GB, free: 26.98 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1475/0.1498, allocations: 65.98 MB / 0.5556 GB, free: 9.145 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001556/0.1514, allocations: 0.5064 MB / 0.5561 GB, free: 8.633 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003543/0.1549, allocations: 2.384 MB / 0.5585 GB, free: 6.227 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.467e-05/0.1549, allocations: 8 kB / 0.5585 GB, free: 6.219 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.429e-05/0.1549, allocations: 0 / 0.5585 GB, free: 6.219 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 6.261e-06/0.155, allocations: 0 / 0.5585 GB, free: 6.219 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.001583/0.1565, allocations: 0.5642 MB / 0.559 GB, free: 5.656 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.681e-05/0.1566, allocations: 7.984 kB / 0.559 GB, free: 5.648 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.585e-05/0.1566, allocations: 3.984 kB / 0.559 GB, free: 5.645 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.583e-05/0.1566, allocations: 4 kB / 0.559 GB, free: 5.641 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.867e-05/0.1567, allocations: 3.938 kB / 0.559 GB, free: 5.637 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.771e-06/0.1567, allocations: 0 / 0.559 GB, free: 5.637 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00119/0.1579, allocations: 0.737 MB / 0.5598 GB, free: 4.898 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.354e-06/0.1579, allocations: 0 / 0.5598 GB, free: 4.898 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.695e-05/0.1579, allocations: 0 / 0.5598 GB, free: 4.898 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006628/0.1585, allocations: 459.1 kB / 0.5602 GB, free: 4.449 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.1585, allocations: 4 kB / 0.5602 GB, free: 4.445 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1586, allocations: 0 / 0.5602 GB, free: 4.445 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.186e-05/0.1586, allocations: 4 kB / 0.5602 GB, free: 4.441 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.0004815/0.159, allocations: 440.2 kB / 0.5606 GB, free: 3.957 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.965e-05/0.1591, allocations: 8.031 kB / 0.5606 GB, free: 3.949 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.226e-05/0.1591, allocations: 38.7 kB / 0.5607 GB, free: 3.902 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.236e-05/0.1592, allocations: 0.9375 kB / 0.5607 GB, free: 3.902 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001249/0.1593, allocations: 168.3 kB / 0.5608 GB, free: 3.699 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.173e-05/0.1593, allocations: 384 / 0.5608 GB, free: 3.699 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.156e-05/0.1593, allocations: 4.375 kB / 0.5608 GB, free: 3.695 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.863e-05/0.1594, allocations: 41.75 kB / 0.5609 GB, free: 3.648 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/0.1594, allocations: 3.938 kB / 0.5609 GB, free: 3.645 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.973e-06/0.1594, allocations: 0 / 0.5609 GB, free: 3.645 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.1594, allocations: 7.984 kB / 0.5609 GB, free: 3.637 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.679e-05/0.1595, allocations: 0 / 0.5609 GB, free: 3.637 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000264/0.1597, allocations: 232.9 kB / 0.5611 GB, free: 3.359 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.55e-05/0.1598, allocations: 22.61 kB / 0.5611 GB, free: 3.328 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.87e-05/0.1598, allocations: 12.92 kB / 0.5611 GB, free: 3.312 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.478e-06/0.1598, allocations: 3.938 kB / 0.5611 GB, free: 3.309 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.053e-05/0.1599, allocations: 56.27 kB / 0.5612 GB, free: 3.238 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.1599, allocations: 0 / 0.5612 GB, free: 3.238 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002059/0.1601, allocations: 71.39 kB / 0.5613 GB, free: 3.156 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.047e-05/0.1601, allocations: 81.11 kB / 0.5613 GB, free: 3.059 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.54e-05/0.1602, allocations: 93.98 kB / 0.5614 GB, free: 2.957 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.14e-05/0.1602, allocations: 25.7 kB / 0.5615 GB, free: 2.926 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.838e-05/0.1603, allocations: 84.08 kB / 0.5615 GB, free: 2.84 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.42e-05/0.1603, allocations: 7.938 kB / 0.5616 GB, free: 2.832 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.104e-05/0.1603, allocations: 17.72 kB / 0.5616 GB, free: 2.809 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001722/0.1605, allocations: 310.8 kB / 0.5619 GB, free: 2.496 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.476e-05/0.1605, allocations: 0 / 0.5619 GB, free: 2.496 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.087e-06/0.1605, allocations: 7.938 kB / 0.5619 GB, free: 2.488 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.541e-05/0.1606, allocations: 68.33 kB / 0.5619 GB, free: 2.406 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.302e-06/0.1606, allocations: 3.938 kB / 0.5619 GB, free: 2.402 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.713e-05/0.1607, allocations: 67.39 kB / 0.562 GB, free: 2.324 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.672e-05/0.1607, allocations: 29.7 kB / 0.562 GB, free: 2.289 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.1607, allocations: 0 / 0.562 GB, free: 2.289 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.1608, allocations: 0 / 0.562 GB, free: 2.289 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.589e-05/0.1608, allocations: 4 kB / 0.562 GB, free: 2.285 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.162e-06/0.1608, allocations: 0 / 0.562 GB, free: 2.285 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.802e-05/0.1608, allocations: 4 kB / 0.562 GB, free: 2.281 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.6e-06/0.1608, allocations: 4.031 kB / 0.562 GB, free: 2.277 MB / 414.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 0.0001373/0.1609, allocations: 147.4 kB / 0.5622 GB, free: 2.117 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.278e-05/0.161, allocations: 0 / 0.5622 GB, free: 2.117 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.386e-05/0.161, allocations: 3.125 kB / 0.5622 GB, free: 2.117 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.233e-06/0.161, allocations: 0 / 0.5622 GB, free: 2.117 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.161, allocations: 0 / 0.5622 GB, free: 2.117 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.161, allocations: 4 kB / 0.5622 GB, free: 2.113 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002968/0.1613, allocations: 300.2 kB / 0.5625 GB, free: 1.758 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.945e-06/0.1613, allocations: 8.016 kB / 0.5625 GB, free: 1.75 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.831e-06/0.1613, allocations: 4 kB / 0.5625 GB, free: 1.746 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.1613, allocations: 0 / 0.5625 GB, free: 1.746 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.456e-06/0.1613, allocations: 8 kB / 0.5625 GB, free: 1.738 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.1613, allocations: 0 / 0.5625 GB, free: 1.738 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1613, allocations: 0 / 0.5625 GB, free: 1.738 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001474/0.1614, allocations: 169.1 kB / 0.5627 GB, free: 1.551 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.514e-05/0.1615, allocations: 81.11 kB / 0.5627 GB, free: 1.453 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.186e-05/0.1615, allocations: 4.031 kB / 0.5627 GB, free: 1.449 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.683e-05/0.1615, allocations: 0 / 0.5627 GB, free: 1.449 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.697e-05/0.1616, allocations: 0 / 0.5627 GB, free: 1.449 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.94e-06/0.1616, allocations: 4 kB / 0.5627 GB, free: 1.445 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.628e-05/0.1616, allocations: 75.28 kB / 0.5628 GB, free: 1.371 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1616, allocations: 0 / 0.5628 GB, free: 1.371 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005445/0.1621, allocations: 171.3 kB / 0.563 GB, free: 1.203 MB / 414.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.00122/0.1634, allocations: 0.9451 MB / 0.5639 GB, free: 228 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001337/0.1635, allocations: 63.41 kB / 0.564 GB, free: 152 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.1635, allocations: 4.094 kB / 0.564 GB, free: 148 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.709e-05/0.1636, allocations: 55.41 kB / 0.564 GB, free: 80 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001902/0.1637, allocations: 3.984 kB / 0.564 GB, free: 76 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001268/0.165, allocations: 1.211 MB / 0.5652 GB, free: 14.78 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003839/0.1654, allocations: 0.6729 MB / 0.5659 GB, free: 14.08 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.38e-05/0.1654, allocations: 4 kB / 0.5659 GB, free: 14.07 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.317e-05/0.1654, allocations: 7.438 kB / 0.5659 GB, free: 14.07 MB / 430.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1654, allocations: 0 / 0.5659 GB, free: 14.07 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03084/0.1963, allocations: 4.65 MB / 0.5704 GB, free: 9.531 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.209/8.405, allocations: 11.97 kB / 0.5704 GB, free: 9.52 MB / 430.1 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestTruncatedDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 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.413262791000307] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.476746961008757 8.497990729 8.336486773 Calling exit ...