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.001335/0.001335, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001459/0.001459, allocations: 214.4 kB / 18.59 MB, free: 4.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.457/1.457, allocations: 227.4 MB / 246.8 MB, free: 10.5 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.2446/0.2446, allocations: 46.11 MB / 344.2 MB, free: 11.54 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.002268/0.002268, allocations: 79.03 kB / 417.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1218/0.1241, allocations: 62.45 MB / 480.2 MB, free: 5.121 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001814/0.126, allocations: 499.8 kB / 480.7 MB, free: 4.629 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003717/0.1297, allocations: 2.373 MB / 483.1 MB, free: 2.234 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.536e-05/0.1297, allocations: 0 / 483.1 MB, free: 2.234 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.495e-05/0.1298, allocations: 0 / 483.1 MB, free: 2.234 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.531e-06/0.1298, allocations: 8 kB / 483.1 MB, free: 2.227 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.001654/0.1314, allocations: 0.5686 MB / 483.6 MB, free: 1.656 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.562e-05/0.1315, allocations: 0 / 483.6 MB, free: 1.656 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.219e-05/0.1315, allocations: 0 / 483.6 MB, free: 1.656 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.986e-05/0.1316, allocations: 4 kB / 483.6 MB, free: 1.652 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.835e-05/0.1316, allocations: 0 / 483.6 MB, free: 1.652 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.093e-06/0.1316, allocations: 0 / 483.6 MB, free: 1.652 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001332/0.1329, allocations: 0.7058 MB / 484.4 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.909e-06/0.133, allocations: 3.938 kB / 484.4 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.108e-05/0.133, allocations: 0 / 484.4 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000685/0.1337, allocations: 451.5 kB / 484.8 MB, free: 0.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.1337, allocations: 0 / 484.8 MB, free: 0.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1337, allocations: 3.938 kB / 484.8 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.1337, allocations: 4 kB / 484.8 MB, free: 0.4922 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.0005289/0.1342, allocations: 437.2 kB / 485.2 MB, free: 12 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.1343, allocations: 8.031 kB / 485.2 MB, free: 4 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.092e-05/0.1344, allocations: 34.73 kB / 485.3 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.899e-05/0.1344, allocations: 4.938 kB / 485.3 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001195/0.1345, allocations: 160.4 kB / 485.4 MB, free: 15.76 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.135e-05/0.1346, allocations: 384 / 485.4 MB, free: 15.76 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.854e-06/0.1346, allocations: 384 / 485.4 MB, free: 15.76 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000112/0.1347, allocations: 37.83 kB / 485.5 MB, free: 15.72 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.1347, allocations: 3.984 kB / 485.5 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.985e-06/0.1347, allocations: 0 / 485.5 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.1347, allocations: 0 / 485.5 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.641e-05/0.1348, allocations: 11.94 kB / 485.5 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003065/0.1351, allocations: 224.9 kB / 485.7 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.089e-05/0.1351, allocations: 26.59 kB / 485.7 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.671e-05/0.1352, allocations: 12.92 kB / 485.7 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.522e-06/0.1352, allocations: 3.938 kB / 485.7 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.968e-05/0.1353, allocations: 60.27 kB / 485.8 MB, free: 15.3 MB / 366.1 MB Notification: Performance of pre-optimization done (n=2): time 3.016e-06/0.1353, allocations: 3.984 kB / 485.8 MB, free: 15.3 MB / 366.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002104/0.1355, allocations: 75.33 kB / 485.9 MB, free: 15.21 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.471e-05/0.1356, allocations: 77.11 kB / 486 MB, free: 15.12 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.904e-05/0.1356, allocations: 89.86 kB / 486 MB, free: 15.02 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.62e-05/0.1356, allocations: 29.83 kB / 486.1 MB, free: 14.99 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.144e-05/0.1357, allocations: 84.14 kB / 486.2 MB, free: 14.9 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.733e-05/0.1357, allocations: 11.83 kB / 486.2 MB, free: 14.89 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.109e-05/0.1358, allocations: 13.72 kB / 486.2 MB, free: 14.87 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.1359, allocations: 314.8 kB / 486.5 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.387e-05/0.1359, allocations: 4 kB / 486.5 MB, free: 14.55 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.887e-06/0.136, allocations: 7.938 kB / 486.5 MB, free: 14.54 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.329e-05/0.136, allocations: 64.33 kB / 486.6 MB, free: 14.46 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.394e-06/0.136, allocations: 7.938 kB / 486.6 MB, free: 14.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.695e-05/0.1361, allocations: 71.33 kB / 486.6 MB, free: 14.38 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.536e-05/0.1362, allocations: 29.7 kB / 486.7 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.1362, allocations: 0 / 486.7 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.311e-05/0.1362, allocations: 4 kB / 486.7 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.374e-05/0.1362, allocations: 0 / 486.7 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.1362, allocations: 0 / 486.7 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.678e-05/0.1362, allocations: 4 kB / 486.7 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.921e-06/0.1362, allocations: 0 / 486.7 MB, free: 14.33 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.0001036/0.1364, allocations: 143.5 kB / 486.8 MB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.377e-05/0.1364, allocations: 3.984 kB / 486.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.488e-05/0.1364, allocations: 7.125 kB / 486.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-06/0.1364, allocations: 0 / 486.8 MB, free: 14.17 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.1364, allocations: 4 kB / 486.8 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.1364, allocations: 0 / 486.8 MB, free: 14.16 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002678/0.1367, allocations: 296.2 kB / 487.1 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.1367, allocations: 0 / 487.1 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.487e-06/0.1367, allocations: 4.031 kB / 487.1 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.412e-06/0.1367, allocations: 4 kB / 487.1 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.931e-06/0.1367, allocations: 0 / 487.1 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.1367, allocations: 0 / 487.1 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.22e-06/0.1368, allocations: 3.984 kB / 487.1 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001377/0.1369, allocations: 173 kB / 487.3 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.234e-05/0.137, allocations: 85.03 kB / 487.4 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.175e-05/0.137, allocations: 0 / 487.4 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.061e-05/0.137, allocations: 8.031 kB / 487.4 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.149e-05/0.137, allocations: 0 / 487.4 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.785e-06/0.1371, allocations: 4 kB / 487.4 MB, free: 13.5 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.152e-05/0.1371, allocations: 75.28 kB / 487.5 MB, free: 13.42 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1371, allocations: 0 / 487.5 MB, free: 13.42 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004806/0.1376, allocations: 159.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.001274/0.1389, allocations: 0.9437 MB / 488.6 MB, free: 12.3 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001469/0.139, allocations: 71.33 kB / 488.6 MB, free: 12.21 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.325e-06/0.139, allocations: 0 / 488.6 MB, free: 12.21 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.325e-05/0.1391, allocations: 59.5 kB / 488.7 MB, free: 12.14 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002007/0.1393, allocations: 6.234 kB / 488.7 MB, free: 12.14 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001135/0.1404, allocations: 1.219 MB / 489.9 MB, free: 10.84 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003269/0.1408, allocations: 0.6729 MB / 490.6 MB, free: 10.14 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.12e-05/0.1408, allocations: 0 / 490.6 MB, free: 10.14 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.99e-05/0.1408, allocations: 7.438 kB / 490.6 MB, free: 10.13 MB / 366.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1408, allocations: 0 / 490.6 MB, free: 10.13 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02832/0.1692, allocations: 4.608 MB / 495.2 MB, free: 5.625 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.271/8.44, allocations: 16.62 kB / 495.2 MB, free: 5.609 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 & /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)