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.001354/0.001354, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.001527/0.001527, allocations: 213.2 kB / 24.54 MB, free: 4.016 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.428/1.428, allocations: 230.5 MB / 258.2 MB, free: 8.047 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.2192/0.2192, allocations: 46.93 MB / 361.6 MB, free: 4.281 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.002333/0.002333, allocations: 87.86 kB / 0.497 GB, free: 7.793 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3382/0.3405, allocations: 66.08 MB / 0.5615 GB, free: 4.336 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.00158/0.3421, allocations: 0.4926 MB / 0.562 GB, free: 3.848 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003374/0.3455, allocations: 2.412 MB / 0.5643 GB, free: 1.414 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.708e-05/0.3455, allocations: 3.938 kB / 0.5643 GB, free: 1.41 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.634e-05/0.3455, allocations: 0 / 0.5643 GB, free: 1.41 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.48e-06/0.3455, allocations: 0 / 0.5643 GB, free: 1.41 MB / 398.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.001559/0.3471, allocations: 0.5881 MB / 0.5649 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.493e-05/0.3471, allocations: 4 kB / 0.5649 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.586e-05/0.3471, allocations: 0 / 0.5649 GB, free: 0.8164 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.323e-05/0.3472, allocations: 7.938 kB / 0.5649 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.653e-05/0.3472, allocations: 0 / 0.5649 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.651e-06/0.3472, allocations: 0 / 0.5649 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001255/0.3484, allocations: 0.8111 MB / 0.5657 GB, free: 15.99 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 5.851e-06/0.3485, allocations: 0 / 0.5657 GB, free: 15.99 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.699e-05/0.3485, allocations: 0 / 0.5657 GB, free: 15.99 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006513/0.3491, allocations: 460.8 kB / 0.5662 GB, free: 15.55 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.3491, allocations: 3.938 kB / 0.5662 GB, free: 15.54 MB / 414.1 MB Notification: Performance of FrontEnd: time 4.038e-06/0.3491, allocations: 4 kB / 0.5662 GB, free: 15.54 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.077e-06/0.3491, allocations: 0 / 0.5662 GB, free: 15.54 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.000431/0.3496, allocations: 363.1 kB / 0.5665 GB, free: 15.15 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.3496, allocations: 12.03 kB / 0.5665 GB, free: 15.14 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.062e-05/0.3497, allocations: 38.69 kB / 0.5666 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.022e-05/0.3497, allocations: 0.9375 kB / 0.5666 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.53e-05/0.3498, allocations: 102.5 kB / 0.5667 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.049e-05/0.3498, allocations: 4.312 kB / 0.5667 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.819e-06/0.3498, allocations: 4.375 kB / 0.5667 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.158e-05/0.3499, allocations: 37.83 kB / 0.5667 GB, free: 14.91 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.3499, allocations: 4 kB / 0.5667 GB, free: 14.91 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.502e-06/0.3499, allocations: 0 / 0.5667 GB, free: 14.91 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.577e-06/0.3499, allocations: 0 / 0.5667 GB, free: 14.91 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.372e-05/0.3499, allocations: 11.92 kB / 0.5667 GB, free: 14.9 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002197/0.3501, allocations: 196 kB / 0.5669 GB, free: 14.66 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.548e-05/0.3502, allocations: 22.61 kB / 0.5669 GB, free: 14.63 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.172e-05/0.3502, allocations: 8.906 kB / 0.5669 GB, free: 14.62 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.806e-06/0.3502, allocations: 8 kB / 0.5669 GB, free: 14.61 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.73e-05/0.3503, allocations: 60.27 kB / 0.567 GB, free: 14.54 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 9.32e-07/0.3503, allocations: 0 / 0.567 GB, free: 14.54 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001881/0.3504, allocations: 71.33 kB / 0.5671 GB, free: 14.46 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.249e-05/0.3505, allocations: 81.11 kB / 0.5671 GB, free: 14.36 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.457e-05/0.3505, allocations: 89.86 kB / 0.5672 GB, free: 14.26 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.853e-05/0.3506, allocations: 25.7 kB / 0.5673 GB, free: 14.23 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.519e-05/0.3506, allocations: 84.27 kB / 0.5673 GB, free: 14.14 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.231e-05/0.3506, allocations: 4 kB / 0.5673 GB, free: 14.14 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.821e-05/0.3506, allocations: 13.66 kB / 0.5674 GB, free: 14.12 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.3508, allocations: 318.8 kB / 0.5677 GB, free: 13.8 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.252e-05/0.3508, allocations: 3.984 kB / 0.5677 GB, free: 13.8 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.165e-06/0.3508, allocations: 4 kB / 0.5677 GB, free: 13.79 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.273e-05/0.3509, allocations: 60.27 kB / 0.5677 GB, free: 13.72 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.3509, allocations: 7.875 kB / 0.5677 GB, free: 13.71 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.457e-05/0.3509, allocations: 67.47 kB / 0.5678 GB, free: 13.63 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.587e-05/0.351, allocations: 37.69 kB / 0.5678 GB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.351, allocations: 4 kB / 0.5678 GB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.151e-05/0.351, allocations: 0 / 0.5678 GB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.301e-05/0.351, allocations: 0 / 0.5678 GB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.388e-06/0.351, allocations: 0 / 0.5678 GB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.585e-05/0.351, allocations: 3.953 kB / 0.5678 GB, free: 13.58 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.831e-06/0.351, allocations: 4 kB / 0.5678 GB, free: 13.58 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 9.937e-05/0.3511, allocations: 140.4 kB / 0.568 GB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.352e-05/0.3511, allocations: 8.031 kB / 0.568 GB, free: 13.42 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.677e-05/0.3512, allocations: 3.156 kB / 0.568 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.3512, allocations: 7.922 kB / 0.568 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.3512, allocations: 0 / 0.568 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.913e-06/0.3512, allocations: 0 / 0.568 GB, free: 13.4 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000257/0.3514, allocations: 271.3 kB / 0.5683 GB, free: 13.08 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.3514, allocations: 0 / 0.5683 GB, free: 13.08 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.286e-06/0.3514, allocations: 0 / 0.5683 GB, free: 13.08 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-06/0.3514, allocations: 0 / 0.5683 GB, free: 13.08 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.807e-06/0.3514, allocations: 8.016 kB / 0.5683 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.3514, allocations: 0 / 0.5683 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.3514, allocations: 4 kB / 0.5683 GB, free: 13.07 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001401/0.3516, allocations: 173.1 kB / 0.5684 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.624e-06/0.3516, allocations: 7.938 kB / 0.5684 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.264e-05/0.3516, allocations: 4 kB / 0.5684 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.68e-05/0.3516, allocations: 0 / 0.5684 GB, free: 12.87 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.193e-05/0.3517, allocations: 12 kB / 0.5685 GB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-06/0.3517, allocations: 0 / 0.5685 GB, free: 12.86 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.028e-05/0.3517, allocations: 79.31 kB / 0.5685 GB, free: 12.78 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3517, allocations: 4 kB / 0.5685 GB, free: 12.77 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004384/0.3521, allocations: 159.3 kB / 0.5687 GB, free: 12.62 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.001099/0.3532, allocations: 0.9453 MB / 0.5696 GB, free: 11.64 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001167/0.3534, allocations: 67.33 kB / 0.5697 GB, free: 11.56 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.3534, allocations: 0 / 0.5697 GB, free: 11.56 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.155e-05/0.3534, allocations: 59.41 kB / 0.5697 GB, free: 11.49 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001904/0.3536, allocations: 7.938 kB / 0.5697 GB, free: 11.48 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00107/0.3547, allocations: 1.219 MB / 0.5709 GB, free: 10.18 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002996/0.355, allocations: 0.6729 MB / 0.5716 GB, free: 9.48 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.003e-05/0.355, allocations: 0 / 0.5716 GB, free: 9.48 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.172e-05/0.355, allocations: 7.438 kB / 0.5716 GB, free: 9.473 MB / 414.1 MB Notification: Performance of SimCode: time 4e-07/0.355, allocations: 3.938 kB / 0.5716 GB, free: 9.469 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02849/0.3835, allocations: 4.646 MB / 0.5761 GB, free: 4.895 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.202/8.586, allocations: 18.27 kB / 0.5762 GB, free: 4.883 MB / 414.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 & /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.348293329123408] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.657101653050631 8.678404534 8.325288496 Calling exit ...