Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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_trunk_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_trunk_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.0009796/0.0009797, allocations: 97.58 kB / 17 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001336/0.001336, allocations: 191.5 kB / 17.9 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.475/1.475, allocations: 227.3 MB / 246 MB, free: 12 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2311/0.2311, allocations: 45.92 MB / 344.1 MB, free: 12.21 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003434/0.0003436, allocations: 8 kB / 418.2 MB, free: 20.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1408/0.1411, allocations: 63.47 MB / 481.6 MB, free: 5.273 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.0007612/0.142, allocations: 234.9 kB / 481.9 MB, free: 5.043 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003195/0.1452, allocations: 2.222 MB / 484.1 MB, free: 2.801 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.737e-05/0.1452, allocations: 0 / 484.1 MB, free: 2.801 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.25e-05/0.1452, allocations: 4 kB / 484.1 MB, free: 2.797 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.073e-06/0.1452, allocations: 0 / 484.1 MB, free: 2.797 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.001521/0.1468, allocations: 462.9 kB / 484.5 MB, free: 2.344 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.463e-05/0.1468, allocations: 0 / 484.5 MB, free: 2.344 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.829e-05/0.1469, allocations: 11.98 kB / 484.6 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.037e-05/0.1469, allocations: 0 / 484.6 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.152e-05/0.1469, allocations: 0 / 484.6 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.023e-06/0.1469, allocations: 0 / 484.6 MB, free: 2.332 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001252/0.1482, allocations: 0.7136 MB / 485.3 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.735e-06/0.1482, allocations: 0 / 485.3 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.054e-05/0.1483, allocations: 37.62 kB / 485.3 MB, free: 1.574 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004449/0.1487, allocations: 291.7 kB / 485.6 MB, free: 1.289 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.183e-06/0.1487, allocations: 4 kB / 485.6 MB, free: 1.285 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1487, allocations: 0 / 485.6 MB, free: 1.285 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.1488, allocations: 4 kB / 485.6 MB, free: 1.281 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.0004377/0.1492, allocations: 433 kB / 486 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/0.1493, allocations: 12.03 kB / 486 MB, free: 0.793 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.882e-05/0.1493, allocations: 30.56 kB / 486.1 MB, free: 0.7539 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.371e-05/0.1494, allocations: 3.938 kB / 486.1 MB, free: 0.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.728e-05/0.1495, allocations: 163 kB / 486.2 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.008e-05/0.1495, allocations: 0 / 486.2 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.043e-05/0.1495, allocations: 4 kB / 486.2 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001125/0.1496, allocations: 37.67 kB / 486.3 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/0.1496, allocations: 0 / 486.3 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.128e-05/0.1496, allocations: 4 kB / 486.3 MB, free: 0.5 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.1496, allocations: 0 / 486.3 MB, free: 0.5 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.188e-05/0.1497, allocations: 4 kB / 486.3 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002486/0.1499, allocations: 228.9 kB / 486.5 MB, free: 228 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.984e-05/0.15, allocations: 26.59 kB / 486.5 MB, free: 192 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.409e-05/0.15, allocations: 12.92 kB / 486.5 MB, free: 176 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.777e-06/0.15, allocations: 0 / 486.5 MB, free: 176 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.199e-05/0.1501, allocations: 60.27 kB / 486.6 MB, free: 100 kB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 8.01e-07/0.1501, allocations: 0 / 486.6 MB, free: 100 kB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002079/0.1503, allocations: 75.33 kB / 486.7 MB, free: 12 kB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.039e-05/0.1504, allocations: 77.11 kB / 486.7 MB, free: 15.92 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.982e-05/0.1504, allocations: 93.77 kB / 486.8 MB, free: 15.82 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.422e-05/0.1505, allocations: 29.83 kB / 486.9 MB, free: 15.78 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.701e-05/0.1505, allocations: 80.14 kB / 486.9 MB, free: 15.7 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.433e-05/0.1505, allocations: 11.94 kB / 487 MB, free: 15.69 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.735e-06/0.1505, allocations: 3.938 kB / 487 MB, free: 15.68 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.1507, allocations: 314.8 kB / 487.3 MB, free: 15.37 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.281e-05/0.1507, allocations: 3.984 kB / 487.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.574e-06/0.1507, allocations: 4 kB / 487.3 MB, free: 15.36 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.376e-05/0.1507, allocations: 25.7 kB / 487.3 MB, free: 15.33 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1507, allocations: 4.062 kB / 487.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.289e-05/0.1508, allocations: 67.41 kB / 487.4 MB, free: 15.25 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.743e-05/0.1509, allocations: 33.69 kB / 487.4 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.1509, allocations: 3.938 kB / 487.4 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.878e-06/0.1509, allocations: 0 / 487.4 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.648e-05/0.1509, allocations: 4 kB / 487.4 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/0.1509, allocations: 0 / 487.4 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.723e-05/0.1509, allocations: 4 kB / 487.4 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.744e-06/0.151, allocations: 3.938 kB / 487.4 MB, free: 15.19 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 (result,$outputAlias_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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001028/0.1511, allocations: 151.5 kB / 487.6 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.235e-05/0.1511, allocations: 0 / 487.6 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.62e-05/0.1511, allocations: 3.125 kB / 487.6 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/0.1511, allocations: 0 / 487.6 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.1511, allocations: 3.984 kB / 487.6 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.1511, allocations: 0 / 487.6 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002471/0.1514, allocations: 300.2 kB / 487.9 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1514, allocations: 0 / 487.9 MB, free: 14.67 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.059e-06/0.1514, allocations: 3.938 kB / 487.9 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.744e-06/0.1514, allocations: 4.031 kB / 487.9 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.041e-05/0.1514, allocations: 8 kB / 487.9 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1514, allocations: 0 / 487.9 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1514, allocations: 0 / 487.9 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001179/0.1516, allocations: 169.2 kB / 488 MB, free: 14.46 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.074e-05/0.1516, allocations: 81.11 kB / 488.1 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.306e-05/0.1516, allocations: 0 / 488.1 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.225e-05/0.1517, allocations: 0 / 488.1 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.373e-05/0.1517, allocations: 8.016 kB / 488.1 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.048e-06/0.1517, allocations: 4 kB / 488.1 MB, free: 14.36 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.681e-05/0.1518, allocations: 75.28 kB / 488.2 MB, free: 14.28 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1518, allocations: 0 / 488.2 MB, free: 14.28 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004571/0.1522, allocations: 156 kB / 488.4 MB, free: 14.13 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001092/0.1533, allocations: 0.9496 MB / 489.3 MB, free: 13.16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001105/0.1534, allocations: 67.33 kB / 489.4 MB, free: 13.08 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1535, allocations: 0 / 489.4 MB, free: 13.08 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.016e-05/0.1535, allocations: 63.41 kB / 489.4 MB, free: 13 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001905/0.1537, allocations: 12 kB / 489.5 MB, free: 12.99 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005275/0.1542, allocations: 364.6 kB / 489.8 MB, free: 12.59 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002394/0.1545, allocations: 0.6771 MB / 490.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.121e-05/0.1545, allocations: 0 / 490.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.736e-05/0.1545, allocations: 7.438 kB / 490.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1545, allocations: 0 / 490.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01564/0.1702, allocations: 4.403 MB / 494.9 MB, free: 7.609 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001704/0.1704, allocations: 233.1 kB / 495.1 MB, free: 7.367 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.064/2.234, allocations: 0 / 495.1 MB, free: 7.367 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_Random_TestTruncatedDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_Random_TestTruncatedDistributions.fmu > ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat does not exist to compare? outputFormat=mat