Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions.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.001519/0.001519, allocations: 108.7 kB / 19.8 MB, free: 2.516 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.001893/0.001893, allocations: 214 kB / 23 MB, free: 5.609 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.438/1.438, allocations: 230.2 MB / 256.2 MB, free: 8.715 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.2554/0.2554, allocations: 46.89 MB / 359.4 MB, free: 4.922 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.TestDistributions,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestDistributions,fileNamePrefix="ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestDistributions",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.002242/0.002242, allocations: 79.84 kB / 0.4941 GB, free: 9.008 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3592/0.3614, allocations: 65.99 MB / 0.5586 GB, free: 5.148 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001856/0.3633, allocations: 0.4962 MB / 0.5591 GB, free: 4.652 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00351/0.3668, allocations: 2.14 MB / 0.5611 GB, free: 2.492 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.569e-05/0.3668, allocations: 0 / 0.5611 GB, free: 2.492 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.659e-05/0.3668, allocations: 0 / 0.5611 GB, free: 2.492 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.463e-06/0.3668, allocations: 0 / 0.5611 GB, free: 2.492 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/Math.mo:1013:5-1096:22:writable] Warning: Pure function 'ModelicaTest.Math.Random.distributions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.001444/0.3683, allocations: 0.4979 MB / 0.5616 GB, free: 1.996 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.284e-05/0.3683, allocations: 3.984 kB / 0.5616 GB, free: 1.992 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.555e-05/0.3684, allocations: 4 kB / 0.5616 GB, free: 1.988 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.67e-05/0.3684, allocations: 0 / 0.5616 GB, free: 1.988 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.36e-05/0.3684, allocations: 0 / 0.5616 GB, free: 1.988 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.422e-06/0.3684, allocations: 4 kB / 0.5616 GB, free: 1.984 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001065/0.3695, allocations: 0.6706 MB / 0.5623 GB, free: 1.312 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.262e-06/0.3695, allocations: 0 / 0.5623 GB, free: 1.312 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.164e-05/0.3695, allocations: 4 kB / 0.5623 GB, free: 1.309 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005701/0.3701, allocations: 396.8 kB / 0.5627 GB, free: 0.9219 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.3701, allocations: 4 kB / 0.5627 GB, free: 0.918 MB / 398.1 MB Notification: Performance of FrontEnd: time 8.92e-07/0.3701, allocations: 0 / 0.5627 GB, free: 0.918 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.991e-06/0.3701, allocations: 0 / 0.5627 GB, free: 0.918 MB / 398.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.000552/0.3706, allocations: 420.4 kB / 0.5631 GB, free: 464 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.3707, allocations: 8.031 kB / 0.5631 GB, free: 456 kB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.815e-05/0.3707, allocations: 38.7 kB / 0.5631 GB, free: 408 kB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.61e-05/0.3708, allocations: 4.922 kB / 0.5631 GB, free: 404 kB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001193/0.3709, allocations: 164.4 kB / 0.5633 GB, free: 200 kB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.905e-06/0.3709, allocations: 384 / 0.5633 GB, free: 200 kB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.316e-05/0.3709, allocations: 4.375 kB / 0.5633 GB, free: 196 kB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001048/0.371, allocations: 33.83 kB / 0.5633 GB, free: 156 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.371, allocations: 0 / 0.5633 GB, free: 156 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.027e-06/0.371, allocations: 4 kB / 0.5633 GB, free: 152 kB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.371, allocations: 0 / 0.5633 GB, free: 152 kB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.397e-05/0.3711, allocations: 7.922 kB / 0.5633 GB, free: 144 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002811/0.3713, allocations: 232.9 kB / 0.5636 GB, free: 15.86 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.908e-05/0.3714, allocations: 18.61 kB / 0.5636 GB, free: 15.84 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.626e-05/0.3714, allocations: 16.91 kB / 0.5636 GB, free: 15.82 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.022e-05/0.3714, allocations: 0 / 0.5636 GB, free: 15.82 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.881e-05/0.3715, allocations: 56.27 kB / 0.5636 GB, free: 15.75 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.3715, allocations: 4 kB / 0.5636 GB, free: 15.74 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002071/0.3717, allocations: 79.27 kB / 0.5637 GB, free: 15.65 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.215e-05/0.3717, allocations: 81.11 kB / 0.5638 GB, free: 15.55 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.788e-05/0.3718, allocations: 93.8 kB / 0.5639 GB, free: 15.45 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.551e-05/0.3718, allocations: 25.7 kB / 0.5639 GB, free: 15.42 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.586e-05/0.3719, allocations: 80.14 kB / 0.564 GB, free: 15.34 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.239e-05/0.3719, allocations: 3.953 kB / 0.564 GB, free: 15.34 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.152e-05/0.372, allocations: 13.72 kB / 0.564 GB, free: 15.32 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.3721, allocations: 314.8 kB / 0.5643 GB, free: 15 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.221e-05/0.3721, allocations: 8.109 kB / 0.5643 GB, free: 14.99 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.038e-05/0.3721, allocations: 8 kB / 0.5643 GB, free: 14.98 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.074e-05/0.3722, allocations: 68.2 kB / 0.5644 GB, free: 14.9 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.3722, allocations: 3.938 kB / 0.5644 GB, free: 14.9 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.831e-05/0.3723, allocations: 63.41 kB / 0.5645 GB, free: 14.82 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.465e-05/0.3723, allocations: 33.69 kB / 0.5645 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-06/0.3723, allocations: 0 / 0.5645 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.173e-05/0.3723, allocations: 0 / 0.5645 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.274e-05/0.3723, allocations: 0 / 0.5645 GB, free: 14.79 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.538e-06/0.3723, allocations: 8.094 kB / 0.5645 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.6e-05/0.3723, allocations: 0 / 0.5645 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.235e-06/0.3723, allocations: 3.984 kB / 0.5645 GB, free: 14.77 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.954e-05/0.3724, allocations: 143.5 kB / 0.5646 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.224e-05/0.3725, allocations: 0 / 0.5646 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.354e-05/0.3725, allocations: 3.125 kB / 0.5646 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.307e-06/0.3725, allocations: 3.984 kB / 0.5646 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.3725, allocations: 0 / 0.5646 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.3725, allocations: 0 / 0.5646 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002803/0.3728, allocations: 308.2 kB / 0.5649 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.3728, allocations: 0 / 0.5649 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.526e-06/0.3728, allocations: 0 / 0.5649 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.232e-06/0.3728, allocations: 0 / 0.5649 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.142e-06/0.3728, allocations: 0 / 0.5649 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.3728, allocations: 4 kB / 0.5649 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.3728, allocations: 0 / 0.5649 GB, free: 14.25 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002359/0.373, allocations: 177.2 kB / 0.5651 GB, free: 14.05 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.451e-05/0.3731, allocations: 81.05 kB / 0.5652 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.264e-05/0.3731, allocations: 4 kB / 0.5652 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.217e-05/0.3731, allocations: 3.938 kB / 0.5652 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.849e-05/0.3732, allocations: 3.984 kB / 0.5652 GB, free: 13.94 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.805e-06/0.3732, allocations: 0 / 0.5652 GB, free: 13.94 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.738e-05/0.3732, allocations: 75.28 kB / 0.5653 GB, free: 13.87 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3732, allocations: 0 / 0.5653 GB, free: 13.87 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004291/0.3736, allocations: 139.5 kB / 0.5654 GB, free: 13.73 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.001183/0.3748, allocations: 0.9072 MB / 0.5663 GB, free: 12.79 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000123/0.3749, allocations: 75.36 kB / 0.5664 GB, free: 12.71 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.3749, allocations: 0 / 0.5664 GB, free: 12.71 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.129e-05/0.375, allocations: 55.41 kB / 0.5664 GB, free: 12.64 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001942/0.3752, allocations: 6.344 kB / 0.5664 GB, free: 12.64 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001047/0.3762, allocations: 1.211 MB / 0.5676 GB, free: 11.34 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003152/0.3765, allocations: 0.6807 MB / 0.5683 GB, free: 10.63 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.788e-06/0.3765, allocations: 0 / 0.5683 GB, free: 10.63 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.861e-05/0.3766, allocations: 7.438 kB / 0.5683 GB, free: 10.62 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.3766, allocations: 4.031 kB / 0.5683 GB, free: 10.62 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02859/0.4051, allocations: 4.508 MB / 0.5727 GB, free: 6.172 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.091/8.496, allocations: 8.266 kB / 0.5727 GB, free: 6.168 MB / 414.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions_res.mat --tempDir=temp_ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0-beta_om_ModelicaTest_Math_Random_TestDistributions.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 11.391857750015333] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.568149813014315 8.592269124 8.217804289 Calling exit ...