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.001308/0.001308, 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.001484/0.001484, 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.467/1.467, allocations: 230.5 MB / 258.2 MB, free: 8.066 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.2333/0.2333, allocations: 46.92 MB / 361.6 MB, free: 4.219 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.002249/0.002249, allocations: 83.86 kB / 0.497 GB, free: 7.797 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3712/0.3735, allocations: 66.08 MB / 0.5615 GB, free: 4.355 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.001721/0.3752, allocations: 0.5039 MB / 0.562 GB, free: 3.859 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003277/0.3784, allocations: 2.128 MB / 0.5641 GB, free: 1.711 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.51e-05/0.3785, allocations: 0 / 0.5641 GB, free: 1.711 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.527e-05/0.3785, allocations: 0 / 0.5641 GB, free: 1.711 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.172e-06/0.3785, allocations: 0 / 0.5641 GB, free: 1.711 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.001521/0.38, allocations: 0.5258 MB / 0.5646 GB, free: 1.184 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.006e-05/0.3801, allocations: 4 kB / 0.5646 GB, free: 1.18 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.779e-05/0.3801, allocations: 3.984 kB / 0.5646 GB, free: 1.176 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.652e-05/0.3801, allocations: 3.984 kB / 0.5646 GB, free: 1.172 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.643e-05/0.3801, allocations: 0 / 0.5646 GB, free: 1.172 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.871e-06/0.3801, allocations: 0 / 0.5646 GB, free: 1.172 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001235/0.3814, allocations: 0.7641 MB / 0.5653 GB, free: 416 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.404e-06/0.3814, allocations: 4 kB / 0.5653 GB, free: 412 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.171e-05/0.3814, allocations: 3.984 kB / 0.5653 GB, free: 408 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006253/0.382, allocations: 397 kB / 0.5657 GB, free: 12 kB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.382, allocations: 0 / 0.5657 GB, free: 12 kB / 398.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.382, allocations: 0 / 0.5657 GB, free: 12 kB / 398.1 MB Notification: Performance of Transformations before backend: time 1.116e-05/0.382, allocations: 0 / 0.5657 GB, free: 12 kB / 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.000471/0.3825, allocations: 351.3 kB / 0.5661 GB, free: 15.63 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/0.3826, allocations: 8.031 kB / 0.5661 GB, free: 15.62 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.142e-05/0.3826, allocations: 38.7 kB / 0.5661 GB, free: 15.58 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.09e-05/0.3826, allocations: 0.9375 kB / 0.5661 GB, free: 15.58 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.89e-05/0.3827, allocations: 106.5 kB / 0.5662 GB, free: 15.45 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.525e-05/0.3827, allocations: 4.312 kB / 0.5662 GB, free: 15.45 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.217e-05/0.3828, allocations: 384 / 0.5662 GB, free: 15.45 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001164/0.3829, allocations: 37.81 kB / 0.5662 GB, free: 15.4 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.3829, allocations: 0 / 0.5662 GB, free: 15.4 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.742e-06/0.3829, allocations: 4 kB / 0.5663 GB, free: 15.4 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.3829, allocations: 4 kB / 0.5663 GB, free: 15.39 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.195e-05/0.3829, allocations: 7.984 kB / 0.5663 GB, free: 15.39 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002486/0.3832, allocations: 204 kB / 0.5665 GB, free: 15.14 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.003e-05/0.3832, allocations: 26.55 kB / 0.5665 GB, free: 15.11 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.237e-05/0.3832, allocations: 8.922 kB / 0.5665 GB, free: 15.1 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.528e-06/0.3833, allocations: 4 kB / 0.5665 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.283e-05/0.3833, allocations: 56.27 kB / 0.5666 GB, free: 15.02 MB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 1.182e-06/0.3833, allocations: 0 / 0.5666 GB, free: 15.02 MB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002076/0.3835, allocations: 71.39 kB / 0.5666 GB, free: 14.94 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.742e-05/0.3836, allocations: 88.98 kB / 0.5667 GB, free: 14.84 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.894e-05/0.3836, allocations: 89.86 kB / 0.5668 GB, free: 14.74 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.77e-05/0.3836, allocations: 25.7 kB / 0.5668 GB, free: 14.71 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.473e-05/0.3837, allocations: 84.27 kB / 0.5669 GB, free: 14.62 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.212e-05/0.3837, allocations: 4 kB / 0.5669 GB, free: 14.62 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.131e-05/0.3837, allocations: 17.7 kB / 0.5669 GB, free: 14.59 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.3839, allocations: 310.8 kB / 0.5672 GB, free: 14.28 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.054e-05/0.3839, allocations: 0 / 0.5672 GB, free: 14.28 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.827e-06/0.3839, allocations: 4 kB / 0.5672 GB, free: 14.28 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.805e-05/0.384, allocations: 64.27 kB / 0.5673 GB, free: 14.2 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.384, allocations: 3.938 kB / 0.5673 GB, free: 14.2 MB / 414.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.271e-05/0.384, allocations: 79.41 kB / 0.5674 GB, free: 14.11 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.272e-05/0.3841, allocations: 29.7 kB / 0.5674 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.3841, allocations: 0 / 0.5674 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.263e-05/0.3841, allocations: 3.938 kB / 0.5674 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.288e-05/0.3841, allocations: 0 / 0.5674 GB, free: 14.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.742e-06/0.3841, allocations: 7.938 kB / 0.5674 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.452e-05/0.3841, allocations: 0 / 0.5674 GB, free: 14.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.861e-06/0.3841, allocations: 0 / 0.5674 GB, free: 14.06 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.000177/0.3843, allocations: 144.3 kB / 0.5675 GB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.131e-05/0.3843, allocations: 4.031 kB / 0.5675 GB, free: 13.9 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.094e-05/0.3843, allocations: 7.156 kB / 0.5675 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/0.3844, allocations: 0 / 0.5675 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.3844, allocations: 0 / 0.5675 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-06/0.3844, allocations: 0 / 0.5675 GB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002664/0.3846, allocations: 271.4 kB / 0.5678 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.3846, allocations: 0 / 0.5678 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.34e-06/0.3846, allocations: 3.938 kB / 0.5678 GB, free: 13.56 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.3846, allocations: 3.984 kB / 0.5678 GB, free: 13.56 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.975e-06/0.3846, allocations: 4.031 kB / 0.5678 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.3846, allocations: 4 kB / 0.5678 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.3846, allocations: 0 / 0.5678 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001347/0.3848, allocations: 165.2 kB / 0.568 GB, free: 13.37 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.061e-06/0.3848, allocations: 4 kB / 0.568 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.676e-05/0.3848, allocations: 4 kB / 0.568 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.97e-05/0.3848, allocations: 0 / 0.568 GB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.834e-05/0.3849, allocations: 7.938 kB / 0.568 GB, free: 13.35 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.809e-06/0.3849, allocations: 8.031 kB / 0.568 GB, free: 13.34 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.37e-05/0.3849, allocations: 75.28 kB / 0.5681 GB, free: 13.27 MB / 414.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3849, allocations: 0 / 0.5681 GB, free: 13.27 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004223/0.3853, allocations: 139.5 kB / 0.5682 GB, free: 13.13 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.001058/0.3864, allocations: 0.9093 MB / 0.5691 GB, free: 12.2 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000116/0.3865, allocations: 63.39 kB / 0.5692 GB, free: 12.12 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3865, allocations: 0 / 0.5692 GB, free: 12.12 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.713e-05/0.3865, allocations: 59.41 kB / 0.5692 GB, free: 12.05 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001831/0.3867, allocations: 3.938 kB / 0.5692 GB, free: 12.05 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001064/0.3878, allocations: 1.211 MB / 0.5704 GB, free: 10.75 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003204/0.3881, allocations: 0.669 MB / 0.571 GB, free: 10.05 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 1.578e-05/0.3881, allocations: 3.938 kB / 0.5711 GB, free: 10.05 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.162e-05/0.3881, allocations: 11.44 kB / 0.5711 GB, free: 10.04 MB / 414.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3881, allocations: 0 / 0.5711 GB, free: 10.04 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0263/0.4144, allocations: 4.533 MB / 0.5755 GB, free: 5.57 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.055/8.47, allocations: 11.44 kB / 0.5755 GB, free: 5.562 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.28961444273591] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.556518875062466 8.578244129 8.192099596 Calling exit ...