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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001299/0.001299, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001382/0.001382, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.453/1.453, allocations: 227.4 MB / 246.8 MB, free: 10.58 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2619/0.2619, allocations: 46.11 MB / 344.2 MB, free: 11.56 MB / 286.1 MB 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.002316/0.002316, allocations: 77.11 kB / 417.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1308/0.1331, allocations: 62.45 MB / 480.2 MB, free: 5.137 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001896/0.1351, allocations: 0.4944 MB / 480.7 MB, free: 4.641 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003828/0.1389, allocations: 2.373 MB / 483.1 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.616e-05/0.139, allocations: 0 / 483.1 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.811e-05/0.139, allocations: 0 / 483.1 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.621e-06/0.139, allocations: 4 kB / 483.1 MB, free: 2.242 MB / 350.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.001598/0.1406, allocations: 0.568 MB / 483.6 MB, free: 1.676 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.712e-05/0.1407, allocations: 0 / 483.6 MB, free: 1.676 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.46e-05/0.1407, allocations: 4 kB / 483.6 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.931e-05/0.1408, allocations: 4 kB / 483.6 MB, free: 1.668 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.794e-05/0.1408, allocations: 0 / 483.6 MB, free: 1.668 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.201e-06/0.1408, allocations: 0 / 483.6 MB, free: 1.668 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00124/0.142, allocations: 0.7058 MB / 484.4 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.009e-05/0.1421, allocations: 0 / 484.4 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.281e-05/0.1421, allocations: 0 / 484.4 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007634/0.1429, allocations: 455.5 kB / 484.8 MB, free: 0.5156 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.404e-06/0.1429, allocations: 4 kB / 484.8 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.646e-06/0.1429, allocations: 0 / 484.8 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.46e-06/0.1429, allocations: 3.938 kB / 484.8 MB, free: 0.5078 MB / 350.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.0006081/0.1435, allocations: 433.2 kB / 485.2 MB, free: 32 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.063e-05/0.1436, allocations: 8.031 kB / 485.2 MB, free: 24 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.995e-05/0.1437, allocations: 38.62 kB / 485.3 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.832e-05/0.1437, allocations: 8.938 kB / 485.3 MB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001409/0.1438, allocations: 160.4 kB / 485.4 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.053e-05/0.1439, allocations: 384 / 485.4 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.566e-06/0.1439, allocations: 384 / 485.4 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001217/0.144, allocations: 37.81 kB / 485.5 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.144, allocations: 0 / 485.5 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.285e-06/0.144, allocations: 0 / 485.5 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.144, allocations: 0 / 485.5 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.833e-05/0.1441, allocations: 8 kB / 485.5 MB, free: 15.72 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003172/0.1444, allocations: 236.8 kB / 485.7 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.039e-05/0.1445, allocations: 30.53 kB / 485.7 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.549e-05/0.1445, allocations: 8.922 kB / 485.8 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.979e-06/0.1445, allocations: 0 / 485.8 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.006e-05/0.1446, allocations: 60.27 kB / 485.8 MB, free: 15.32 MB / 366.1 MB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/0.1446, allocations: 0 / 485.8 MB, free: 15.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002214/0.1448, allocations: 79.33 kB / 485.9 MB, free: 15.23 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.828e-05/0.1449, allocations: 77.11 kB / 486 MB, free: 15.13 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.792e-05/0.145, allocations: 89.86 kB / 486.1 MB, free: 15.04 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.902e-05/0.145, allocations: 29.7 kB / 486.1 MB, free: 15 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.558e-05/0.1451, allocations: 80.14 kB / 486.2 MB, free: 14.92 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.937e-05/0.1451, allocations: 11.83 kB / 486.2 MB, free: 14.91 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.452e-05/0.1451, allocations: 13.72 kB / 486.2 MB, free: 14.89 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.1453, allocations: 315 kB / 486.5 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.516e-05/0.1453, allocations: 4 kB / 486.5 MB, free: 14.57 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.228e-06/0.1453, allocations: 4 kB / 486.5 MB, free: 14.56 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.604e-05/0.1454, allocations: 60.27 kB / 486.6 MB, free: 14.49 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.1454, allocations: 7.938 kB / 486.6 MB, free: 14.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.933e-05/0.1455, allocations: 71.33 kB / 486.6 MB, free: 14.4 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.854e-05/0.1456, allocations: 29.7 kB / 486.7 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.261e-06/0.1456, allocations: 0 / 486.7 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.1456, allocations: 4.094 kB / 486.7 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.894e-05/0.1457, allocations: 4 kB / 486.7 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.394e-06/0.1457, allocations: 0 / 486.7 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.674e-05/0.1457, allocations: 0 / 486.7 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.445e-06/0.1457, allocations: 0 / 486.7 MB, free: 14.36 MB / 366.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.0001274/0.1458, allocations: 143.5 kB / 486.8 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.391e-05/0.1459, allocations: 4 kB / 486.8 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.078e-05/0.1459, allocations: 3.125 kB / 486.8 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.1459, allocations: 0 / 486.8 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/0.1459, allocations: 4 kB / 486.8 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.1459, allocations: 4 kB / 486.8 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003163/0.1463, allocations: 312.1 kB / 487.1 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.1463, allocations: 0 / 487.1 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.557e-06/0.1463, allocations: 0 / 487.1 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.1463, allocations: 4 kB / 487.1 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.037e-06/0.1463, allocations: 0 / 487.1 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1463, allocations: 3.938 kB / 487.1 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1463, allocations: 0 / 487.1 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001619/0.1465, allocations: 177.1 kB / 487.3 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.122e-05/0.1465, allocations: 81.11 kB / 487.4 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.468e-05/0.1466, allocations: 0 / 487.4 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.321e-05/0.1466, allocations: 0 / 487.4 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.256e-05/0.1466, allocations: 0 / 487.4 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.561e-06/0.1467, allocations: 4 kB / 487.4 MB, free: 13.52 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.553e-05/0.1467, allocations: 79.22 kB / 487.5 MB, free: 13.44 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1467, allocations: 0 / 487.5 MB, free: 13.44 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006455/0.1474, allocations: 167.9 kB / 487.6 MB, free: 13.27 MB / 366.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.001406/0.1488, allocations: 0.9356 MB / 488.6 MB, free: 12.31 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000123/0.1489, allocations: 63.41 kB / 488.6 MB, free: 12.23 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.1489, allocations: 3.938 kB / 488.6 MB, free: 12.23 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.214e-05/0.149, allocations: 59.34 kB / 488.7 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002131/0.1492, allocations: 11.98 kB / 488.7 MB, free: 12.15 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001139/0.1503, allocations: 1.211 MB / 489.9 MB, free: 10.85 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003204/0.1507, allocations: 0.6768 MB / 490.6 MB, free: 10.15 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.358e-05/0.1507, allocations: 64 / 490.6 MB, free: 10.15 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.107e-05/0.1507, allocations: 11.44 kB / 490.6 MB, free: 10.14 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1507, allocations: 0 / 490.6 MB, free: 10.14 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03315/0.1839, allocations: 4.609 MB / 495.2 MB, free: 5.633 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.223/8.407, allocations: 20.5 kB / 495.2 MB, free: 5.617 MB / 366.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions_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_TestTruncatedDistributions.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1)