Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001008/0.001008, allocations: 93.36 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000852/0.000852, allocations: 184 kB / 17.88 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.462/1.462, allocations: 223.2 MB / 241.8 MB, free: 14.65 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.222/0.222, allocations: 44.22 MB / 337.1 MB, free: 2.656 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003557/0.0003558, allocations: 12 kB / 409.6 MB, free: 27.58 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1289/0.1293, allocations: 61.92 MB / 471.5 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.0006546/0.13, allocations: 222.9 kB / 471.8 MB, free: 13.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003391/0.1334, allocations: 2.187 MB / 473.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.24e-05/0.1334, allocations: 0 / 473.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.282e-05/0.1335, allocations: 0 / 473.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.24e-06/0.1335, allocations: 0 / 473.9 MB, free: 11.2 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.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.001473/0.1349, allocations: 454.8 kB / 474.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.658e-05/0.135, allocations: 0 / 474.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.416e-05/0.135, allocations: 0 / 474.4 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.364e-05/0.1351, allocations: 4 kB / 474.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.266e-05/0.1351, allocations: 0 / 474.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.835e-06/0.1351, allocations: 4 kB / 474.4 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001088/0.1362, allocations: 0.6786 MB / 475.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.675e-06/0.1362, allocations: 0 / 475.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.573e-05/0.1363, allocations: 25.7 kB / 475.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005306/0.1368, allocations: 307.7 kB / 475.4 MB, free: 9.738 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.1368, allocations: 0 / 475.4 MB, free: 9.738 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.504e-06/0.1368, allocations: 4 kB / 475.4 MB, free: 9.734 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.211e-06/0.1369, allocations: 0 / 475.4 MB, free: 9.734 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.0005399/0.1374, allocations: 425.1 kB / 475.8 MB, free: 9.266 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.678e-05/0.1375, allocations: 12.03 kB / 475.8 MB, free: 9.254 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.078e-05/0.1376, allocations: 34.5 kB / 475.9 MB, free: 9.211 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.109e-05/0.1376, allocations: 4 kB / 475.9 MB, free: 9.207 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001336/0.1377, allocations: 159.1 kB / 476 MB, free: 9.012 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.15e-05/0.1378, allocations: 0 / 476 MB, free: 9.012 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.39e-05/0.1378, allocations: 11.94 kB / 476 MB, free: 9 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001426/0.1379, allocations: 37.69 kB / 476.1 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.138, allocations: 0 / 476.1 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/0.138, allocations: 0 / 476.1 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.271e-06/0.138, allocations: 3.938 kB / 476.1 MB, free: 8.953 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.589e-05/0.138, allocations: 3.938 kB / 476.1 MB, free: 8.949 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003262/0.1384, allocations: 240.8 kB / 476.3 MB, free: 8.664 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.044e-05/0.1384, allocations: 22.61 kB / 476.3 MB, free: 8.633 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.019e-05/0.1384, allocations: 0 / 476.3 MB, free: 8.633 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.453e-05/0.1385, allocations: 56.27 kB / 476.4 MB, free: 8.562 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 8.72e-07/0.1385, allocations: 0 / 476.4 MB, free: 8.562 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002541/0.1388, allocations: 75.39 kB / 476.5 MB, free: 8.477 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.429e-05/0.1389, allocations: 81.23 kB / 476.5 MB, free: 8.379 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.936e-05/0.1389, allocations: 93.77 kB / 476.6 MB, free: 8.277 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.073e-05/0.139, allocations: 25.7 kB / 476.7 MB, free: 8.246 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.982e-05/0.139, allocations: 80.14 kB / 476.7 MB, free: 8.164 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.694e-05/0.139, allocations: 11.94 kB / 476.8 MB, free: 8.152 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.286e-06/0.139, allocations: 0 / 476.8 MB, free: 8.152 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001837/0.1392, allocations: 310.8 kB / 477.1 MB, free: 7.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.372e-05/0.1393, allocations: 3.984 kB / 477.1 MB, free: 7.836 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.092e-05/0.1393, allocations: 8 kB / 477.1 MB, free: 7.828 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.165e-05/0.1393, allocations: 29.7 kB / 477.1 MB, free: 7.793 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.1393, allocations: 0 / 477.1 MB, free: 7.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.486e-05/0.1394, allocations: 67.36 kB / 477.2 MB, free: 7.715 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.284e-05/0.1395, allocations: 37.62 kB / 477.2 MB, free: 7.672 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.1395, allocations: 0 / 477.2 MB, free: 7.672 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.1395, allocations: 4 kB / 477.2 MB, free: 7.668 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.049e-05/0.1395, allocations: 0 / 477.2 MB, free: 7.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.1395, allocations: 0 / 477.2 MB, free: 7.668 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.7e-05/0.1396, allocations: 0 / 477.2 MB, free: 7.668 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.935e-06/0.1396, allocations: 4.094 kB / 477.2 MB, free: 7.664 MB / 350.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.0001181/0.1397, allocations: 140.1 kB / 477.3 MB, free: 7.512 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.754e-05/0.1397, allocations: 7.953 kB / 477.4 MB, free: 7.504 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.153e-05/0.1398, allocations: 7.078 kB / 477.4 MB, free: 7.496 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-06/0.1398, allocations: 0 / 477.4 MB, free: 7.496 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.1398, allocations: 7.984 kB / 477.4 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.1398, allocations: 0 / 477.4 MB, free: 7.488 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002697/0.1401, allocations: 296.2 kB / 477.7 MB, free: 7.137 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.1401, allocations: 4.031 kB / 477.7 MB, free: 7.133 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.73e-06/0.1401, allocations: 3.938 kB / 477.7 MB, free: 7.129 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.1401, allocations: 7.938 kB / 477.7 MB, free: 7.121 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.784e-06/0.1401, allocations: 0 / 477.7 MB, free: 7.121 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.1401, allocations: 0 / 477.7 MB, free: 7.121 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.1401, allocations: 0 / 477.7 MB, free: 7.121 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001206/0.1402, allocations: 173.2 kB / 477.8 MB, free: 6.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.922e-05/0.1403, allocations: 85.09 kB / 477.9 MB, free: 6.828 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.23e-05/0.1403, allocations: 0 / 477.9 MB, free: 6.828 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.882e-05/0.1404, allocations: 3.938 kB / 477.9 MB, free: 6.824 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.147e-05/0.1404, allocations: 3.984 kB / 477.9 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.965e-06/0.1404, allocations: 4 kB / 477.9 MB, free: 6.816 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.649e-05/0.1405, allocations: 75.28 kB / 478 MB, free: 6.742 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1405, allocations: 0 / 478 MB, free: 6.742 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005346/0.141, allocations: 152 kB / 478.2 MB, free: 6.594 MB / 350.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.00115/0.1422, allocations: 0.9342 MB / 479.1 MB, free: 5.633 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001095/0.1423, allocations: 63.41 kB / 479.2 MB, free: 5.559 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.1423, allocations: 4.094 kB / 479.2 MB, free: 5.555 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.262e-05/0.1423, allocations: 67.27 kB / 479.2 MB, free: 5.477 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001288/0.1425, allocations: 2.344 kB / 479.2 MB, free: 5.477 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005626/0.143, allocations: 356.6 kB / 479.6 MB, free: 5.078 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002459/0.1433, allocations: 0.6771 MB / 480.2 MB, free: 4.375 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.237e-05/0.1433, allocations: 4.094 kB / 480.3 MB, free: 4.371 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.096e-05/0.1434, allocations: 11.44 kB / 480.3 MB, free: 4.359 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1434, allocations: 3.938 kB / 480.3 MB, free: 4.355 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01694/0.1603, allocations: 4.395 MB / 484.7 MB, free: 88 kB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002362/0.1606, allocations: 234 kB / 484.9 MB, free: 15.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.979/2.14, allocations: 3.234 kB / 484.9 MB, free: 15.84 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_Random_TestTruncatedDistributions.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat does not exist to compare? outputFormat=mat