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.001271/0.001271, allocations: 117.9 kB / 18.5 MB, free: 4.52 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.001361/0.001361, allocations: 214.5 kB / 21.46 MB, free: 1.566 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.453/1.453, allocations: 230.5 MB / 254.7 MB, free: 15.21 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.229/0.229, allocations: 46.93 MB / 357.7 MB, free: 10.22 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.002293/0.002293, allocations: 83.86 kB / 0.4917 GB, free: 7.742 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1273/0.1296, allocations: 66.04 MB / 0.5562 GB, free: 5.574 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestDistributions): time 0.0018/0.1314, allocations: 0.5009 MB / 0.5566 GB, free: 5.066 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.003303/0.1347, allocations: 2.115 MB / 0.5587 GB, free: 2.93 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.629e-05/0.1347, allocations: 0 / 0.5587 GB, free: 2.93 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.32e-05/0.1347, allocations: 4 kB / 0.5587 GB, free: 2.926 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.601e-06/0.1347, allocations: 0 / 0.5587 GB, free: 2.926 MB / 414.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.001721/0.1364, allocations: 0.502 MB / 0.5592 GB, free: 2.426 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.831e-05/0.1365, allocations: 3.984 kB / 0.5592 GB, free: 2.422 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.228e-05/0.1365, allocations: 4 kB / 0.5592 GB, free: 2.418 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.527e-05/0.1365, allocations: 0 / 0.5592 GB, free: 2.418 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.771e-05/0.1365, allocations: 3.938 kB / 0.5592 GB, free: 2.414 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.041e-06/0.1366, allocations: 0 / 0.5592 GB, free: 2.414 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00114/0.1377, allocations: 0.6746 MB / 0.5599 GB, free: 1.738 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.885e-06/0.1377, allocations: 0 / 0.5599 GB, free: 1.738 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.421e-05/0.1377, allocations: 0 / 0.5599 GB, free: 1.738 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005783/0.1383, allocations: 387 kB / 0.5602 GB, free: 1.359 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.003e-06/0.1383, allocations: 8 kB / 0.5602 GB, free: 1.352 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1383, allocations: 0 / 0.5602 GB, free: 1.352 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.658e-06/0.1383, allocations: 0 / 0.5602 GB, free: 1.352 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.0004971/0.1388, allocations: 416.5 kB / 0.5606 GB, free: 0.8906 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.111e-05/0.1389, allocations: 8.031 kB / 0.5607 GB, free: 0.8828 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.858e-05/0.1389, allocations: 38.7 kB / 0.5607 GB, free: 0.8359 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.34e-05/0.1389, allocations: 0.9375 kB / 0.5607 GB, free: 0.8359 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001228/0.1391, allocations: 172.3 kB / 0.5609 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.083e-05/0.1391, allocations: 384 / 0.5609 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.187e-06/0.1391, allocations: 384 / 0.5609 GB, free: 0.6289 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.781e-05/0.1392, allocations: 37.83 kB / 0.5609 GB, free: 0.5859 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.1392, allocations: 0 / 0.5609 GB, free: 0.5859 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.157e-06/0.1392, allocations: 4 kB / 0.5609 GB, free: 0.582 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.1392, allocations: 0 / 0.5609 GB, free: 0.582 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.857e-05/0.1392, allocations: 0 / 0.5609 GB, free: 0.582 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002508/0.1395, allocations: 236.8 kB / 0.5611 GB, free: 308 kB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.586e-05/0.1395, allocations: 30.53 kB / 0.5612 GB, free: 268 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.602e-05/0.1396, allocations: 16.91 kB / 0.5612 GB, free: 248 kB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.346e-06/0.1396, allocations: 0 / 0.5612 GB, free: 248 kB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.502e-05/0.1396, allocations: 56.27 kB / 0.5612 GB, free: 176 kB / 414.1 MB Notification: Performance of pre-optimization done (n=2): time 8.72e-07/0.1396, allocations: 4 kB / 0.5612 GB, free: 172 kB / 414.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001829/0.1398, allocations: 75.27 kB / 0.5613 GB, free: 84 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.799e-05/0.1399, allocations: 81.11 kB / 0.5614 GB, free: 15.98 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.704e-05/0.1399, allocations: 93.98 kB / 0.5615 GB, free: 15.88 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.47e-05/0.1399, allocations: 25.7 kB / 0.5615 GB, free: 15.85 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.562e-05/0.14, allocations: 80.14 kB / 0.5616 GB, free: 15.77 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.742e-05/0.14, allocations: 3.953 kB / 0.5616 GB, free: 15.77 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.115e-05/0.14, allocations: 17.72 kB / 0.5616 GB, free: 15.74 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.1402, allocations: 310.8 kB / 0.5619 GB, free: 15.43 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.019e-05/0.1402, allocations: 0 / 0.5619 GB, free: 15.43 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.079e-05/0.1402, allocations: 7.984 kB / 0.5619 GB, free: 15.42 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.349e-05/0.1403, allocations: 68.33 kB / 0.562 GB, free: 15.34 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.576e-06/0.1403, allocations: 3.938 kB / 0.562 GB, free: 15.34 MB / 430.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.472e-05/0.1404, allocations: 67.34 kB / 0.562 GB, free: 15.26 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.552e-05/0.1404, allocations: 33.69 kB / 0.5621 GB, free: 15.22 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.1404, allocations: 0 / 0.5621 GB, free: 15.22 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.313e-05/0.1404, allocations: 0 / 0.5621 GB, free: 15.22 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.33e-05/0.1404, allocations: 0 / 0.5621 GB, free: 15.22 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.047e-06/0.1404, allocations: 4 kB / 0.5621 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.624e-05/0.1404, allocations: 0 / 0.5621 GB, free: 15.21 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.246e-06/0.1405, allocations: 4 kB / 0.5621 GB, free: 15.21 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 0.0001052/0.1406, allocations: 151.5 kB / 0.5622 GB, free: 15.05 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.158e-05/0.1406, allocations: 0 / 0.5622 GB, free: 15.05 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.204e-05/0.1406, allocations: 3.125 kB / 0.5622 GB, free: 15.05 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.1406, allocations: 0 / 0.5622 GB, free: 15.05 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.1406, allocations: 0 / 0.5622 GB, free: 15.05 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.333e-06/0.1406, allocations: 3.984 kB / 0.5622 GB, free: 15.04 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002773/0.1409, allocations: 308.2 kB / 0.5625 GB, free: 14.68 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.1409, allocations: 0 / 0.5625 GB, free: 14.68 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.707e-06/0.1409, allocations: 4.031 kB / 0.5625 GB, free: 14.68 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.302e-06/0.1409, allocations: 0 / 0.5625 GB, free: 14.68 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.566e-06/0.1409, allocations: 4 kB / 0.5625 GB, free: 14.67 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.1409, allocations: 7.938 kB / 0.5625 GB, free: 14.66 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1409, allocations: 0 / 0.5625 GB, free: 14.66 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000222/0.1411, allocations: 165.2 kB / 0.5627 GB, free: 14.48 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.607e-05/0.1412, allocations: 77.11 kB / 0.5628 GB, free: 14.39 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.4e-05/0.1412, allocations: 4 kB / 0.5628 GB, free: 14.38 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.76e-05/0.1412, allocations: 4.031 kB / 0.5628 GB, free: 14.38 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.081e-05/0.1412, allocations: 3.984 kB / 0.5628 GB, free: 14.38 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.776e-06/0.1412, allocations: 0 / 0.5628 GB, free: 14.38 MB / 430.1 MB Notification: Performance of sorting global known variables: time 4.014e-05/0.1413, allocations: 75.28 kB / 0.5628 GB, free: 14.3 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1413, allocations: 0 / 0.5628 GB, free: 14.3 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0004362/0.1417, allocations: 143.4 kB / 0.563 GB, free: 14.16 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.001106/0.1428, allocations: 0.9095 MB / 0.5639 GB, free: 13.22 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001175/0.1429, allocations: 67.39 kB / 0.5639 GB, free: 13.14 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.1429, allocations: 0 / 0.5639 GB, free: 13.14 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.071e-05/0.143, allocations: 63.44 kB / 0.564 GB, free: 13.07 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001851/0.1432, allocations: 4 kB / 0.564 GB, free: 13.07 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001041/0.1442, allocations: 1.199 MB / 0.5652 GB, free: 11.78 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003239/0.1445, allocations: 0.669 MB / 0.5658 GB, free: 11.09 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.17e-05/0.1445, allocations: 7.984 kB / 0.5658 GB, free: 11.08 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.687e-05/0.1446, allocations: 7.438 kB / 0.5658 GB, free: 11.07 MB / 430.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1446, allocations: 0 / 0.5658 GB, free: 11.07 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02677/0.1713, allocations: 4.542 MB / 0.5703 GB, free: 6.617 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.238/8.41, allocations: 7.562 kB / 0.5703 GB, free: 6.613 MB / 430.1 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestDistributions_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_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.4556267359294] Failed to read output from testmodel.py, exit status != 0: ['time', 'result'] 8.480603159870952 8.510750833 8.366833273 Calling exit ...