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.001138/0.001138, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001262/0.001262, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.361/1.361, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2283/0.2283, allocations: 46.1 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 75.44 kB / 417.7 MB, free: 19.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1334/0.1348, allocations: 62.45 MB / 480.1 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.002224/0.1371, allocations: 495 kB / 480.6 MB, free: 4.699 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004089/0.1412, allocations: 2.38 MB / 483 MB, free: 2.297 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.462e-05/0.1412, allocations: 0 / 483 MB, free: 2.297 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.363e-05/0.1413, allocations: 0 / 483 MB, free: 2.297 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.881e-06/0.1413, allocations: 0 / 483 MB, free: 2.297 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.00224/0.1436, allocations: 0.5569 MB / 483.6 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.065e-05/0.1436, allocations: 11.98 kB / 483.6 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.616e-05/0.1437, allocations: 7.984 kB / 483.6 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.947e-05/0.1437, allocations: 0 / 483.6 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.968e-05/0.1437, allocations: 0 / 483.6 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.292e-06/0.1438, allocations: 0 / 483.6 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001481/0.1452, allocations: 0.698 MB / 484.3 MB, free: 1.02 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.411e-05/0.1453, allocations: 7.922 kB / 484.3 MB, free: 1.012 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.027e-05/0.1453, allocations: 4 kB / 484.3 MB, free: 1.008 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001041/0.1464, allocations: 451.5 kB / 484.7 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.1464, allocations: 4 kB / 484.7 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.637e-06/0.1464, allocations: 0 / 484.7 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.1464, allocations: 3.938 kB / 484.7 MB, free: 0.5586 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.0005122/0.1469, allocations: 429.2 kB / 485.2 MB, free: 88 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.147, allocations: 12.03 kB / 485.2 MB, free: 76 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.23e-05/0.147, allocations: 34.75 kB / 485.2 MB, free: 32 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.944e-05/0.1471, allocations: 8.922 kB / 485.2 MB, free: 24 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001175/0.1472, allocations: 160.4 kB / 485.4 MB, free: 15.83 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.27e-05/0.1472, allocations: 384 / 485.4 MB, free: 15.83 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.163e-05/0.1472, allocations: 4.375 kB / 485.4 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.329e-05/0.1473, allocations: 29.83 kB / 485.4 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.1473, allocations: 4 kB / 485.4 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.654e-06/0.1473, allocations: 3.938 kB / 485.4 MB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.748e-06/0.1474, allocations: 0 / 485.4 MB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.486e-05/0.1474, allocations: 11.92 kB / 485.4 MB, free: 15.77 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00027/0.1477, allocations: 228.9 kB / 485.6 MB, free: 15.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.151e-05/0.1477, allocations: 18.61 kB / 485.7 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.628e-05/0.1478, allocations: 16.91 kB / 485.7 MB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.318e-06/0.1478, allocations: 7.938 kB / 485.7 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.159e-05/0.1478, allocations: 60.27 kB / 485.7 MB, free: 15.37 MB / 366.1 MB Notification: Performance of pre-optimization done (n=2): time 1.332e-06/0.1478, allocations: 0 / 485.7 MB, free: 15.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002067/0.1481, allocations: 75.33 kB / 485.8 MB, free: 15.28 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.245e-05/0.1481, allocations: 77.11 kB / 485.9 MB, free: 15.19 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.641e-05/0.1482, allocations: 89.86 kB / 486 MB, free: 15.09 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.12e-05/0.1482, allocations: 25.7 kB / 486 MB, free: 15.06 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.049e-05/0.1482, allocations: 80.14 kB / 486.1 MB, free: 14.98 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.369e-05/0.1483, allocations: 11.84 kB / 486.1 MB, free: 14.96 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.628e-05/0.1483, allocations: 17.84 kB / 486.1 MB, free: 14.94 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.1484, allocations: 314.8 kB / 486.4 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.47e-05/0.1484, allocations: 7.984 kB / 486.4 MB, free: 14.62 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.632e-06/0.1485, allocations: 0 / 486.4 MB, free: 14.62 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.481e-05/0.1485, allocations: 68.27 kB / 486.5 MB, free: 14.54 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.1485, allocations: 3.938 kB / 486.5 MB, free: 14.53 MB / 366.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.121e-05/0.1486, allocations: 67.34 kB / 486.6 MB, free: 14.45 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.789e-05/0.1487, allocations: 37.69 kB / 486.6 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.1487, allocations: 4.094 kB / 486.6 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.1487, allocations: 0 / 486.6 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.479e-05/0.1487, allocations: 0 / 486.6 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.479e-06/0.1487, allocations: 0 / 486.6 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.603e-05/0.1487, allocations: 0 / 486.6 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.638e-06/0.1488, allocations: 4 kB / 486.6 MB, free: 14.4 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.0001043/0.1489, allocations: 135.5 kB / 486.7 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.239e-05/0.1489, allocations: 4 kB / 486.7 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.689e-05/0.1489, allocations: 3.125 kB / 486.7 MB, free: 14.25 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.149, allocations: 7.984 kB / 486.8 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.149, allocations: 0 / 486.8 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.149, allocations: 0 / 486.8 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002576/0.1492, allocations: 308.2 kB / 487.1 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.1492, allocations: 0 / 487.1 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.09e-06/0.1493, allocations: 0 / 487.1 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.1493, allocations: 0 / 487.1 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.274e-06/0.1493, allocations: 0 / 487.1 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.1493, allocations: 0 / 487.1 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.1493, allocations: 0 / 487.1 MB, free: 13.88 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001288/0.1494, allocations: 185 kB / 487.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.691e-05/0.1495, allocations: 81.09 kB / 487.3 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.437e-05/0.1495, allocations: 3.938 kB / 487.3 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.919e-05/0.1496, allocations: 7.984 kB / 487.3 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.753e-05/0.1496, allocations: 0 / 487.3 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.667e-06/0.1496, allocations: 0 / 487.3 MB, free: 13.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.138e-05/0.1496, allocations: 79.31 kB / 487.4 MB, free: 13.49 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1497, allocations: 0 / 487.4 MB, free: 13.49 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006392/0.1503, allocations: 163.9 kB / 487.6 MB, free: 13.33 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.001253/0.1516, allocations: 0.9361 MB / 488.5 MB, free: 12.36 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001216/0.1517, allocations: 71.33 kB / 488.6 MB, free: 12.28 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.1517, allocations: 0 / 488.6 MB, free: 12.28 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.658e-05/0.1517, allocations: 55.41 kB / 488.6 MB, free: 12.21 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001998/0.152, allocations: 5.828 kB / 488.6 MB, free: 12.21 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0011/0.1531, allocations: 1.219 MB / 489.9 MB, free: 10.9 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000269/0.1533, allocations: 0.6768 MB / 490.5 MB, free: 10.2 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.239e-05/0.1534, allocations: 0 / 490.5 MB, free: 10.2 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.09e-05/0.1534, allocations: 11.44 kB / 490.5 MB, free: 10.19 MB / 366.1 MB Notification: Performance of SimCode: time 1.8e-07/0.1534, allocations: 0 / 490.5 MB, free: 10.19 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02332/0.1767, allocations: 4.59 MB / 495.1 MB, free: 5.68 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.376/7.553, allocations: 5.141 kB / 495.1 MB, free: 5.676 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/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) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches