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.0009292/0.0009292, allocations: 94 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001061/0.001061, allocations: 200.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.397/1.397, allocations: 227.7 MB / 246.8 MB, free: 11.4 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2121/0.2121, allocations: 46.19 MB / 345.2 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003684/0.0003684, allocations: 8 kB / 419.6 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1421/0.1425, allocations: 63.55 MB / 483.2 MB, free: 4.055 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.000859/0.1435, allocations: 230.9 kB / 483.4 MB, free: 3.828 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003314/0.1468, allocations: 2.408 MB / 485.8 MB, free: 1.398 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.185e-05/0.1468, allocations: 0 / 485.8 MB, free: 1.398 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.625e-05/0.1469, allocations: 0 / 485.8 MB, free: 1.398 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.551e-06/0.1469, allocations: 0 / 485.8 MB, free: 1.398 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.001349/0.1482, allocations: 478.1 kB / 486.3 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.326e-05/0.1483, allocations: 4 kB / 486.3 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.49e-05/0.1483, allocations: 3.984 kB / 486.3 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.813e-05/0.1484, allocations: 0 / 486.3 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.736e-05/0.1484, allocations: 0 / 486.3 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.192e-06/0.1484, allocations: 4 kB / 486.3 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001229/0.1496, allocations: 0.7369 MB / 487 MB, free: 188 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.099e-05/0.1496, allocations: 7.922 kB / 487 MB, free: 180 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.263e-05/0.1497, allocations: 25.7 kB / 487.1 MB, free: 148 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006797/0.1504, allocations: 467.4 kB / 487.5 MB, free: 15.69 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.1504, allocations: 0 / 487.5 MB, free: 15.69 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1504, allocations: 3.938 kB / 487.5 MB, free: 15.68 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.448e-06/0.1504, allocations: 0 / 487.5 MB, free: 15.68 MB / 366.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.0004594/0.1509, allocations: 433.3 kB / 487.9 MB, free: 15.21 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.329e-05/0.1509, allocations: 8.875 kB / 488 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.046e-05/0.151, allocations: 34.75 kB / 488 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.282e-05/0.151, allocations: 0.9375 kB / 488 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001024/0.1511, allocations: 160.4 kB / 488.1 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.298e-05/0.1512, allocations: 8.375 kB / 488.2 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.068e-05/0.1512, allocations: 4.359 kB / 488.2 MB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001091/0.1513, allocations: 37.81 kB / 488.2 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.1513, allocations: 0 / 488.2 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.355e-06/0.1513, allocations: 0 / 488.2 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.09e-06/0.1513, allocations: 4 kB / 488.2 MB, free: 14.9 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.317e-05/0.1514, allocations: 7.938 kB / 488.2 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003358/0.1517, allocations: 232.8 kB / 488.4 MB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.245e-05/0.1518, allocations: 26.61 kB / 488.5 MB, free: 14.58 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.243e-05/0.1518, allocations: 8.922 kB / 488.5 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.406e-06/0.1518, allocations: 0 / 488.5 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.233e-05/0.1519, allocations: 68.19 kB / 488.5 MB, free: 14.49 MB / 366.1 MB Notification: Performance of pre-optimization done (n=2): time 8.91e-07/0.1519, allocations: 0 / 488.5 MB, free: 14.49 MB / 366.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001873/0.1521, allocations: 67.41 kB / 488.6 MB, free: 14.41 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.127e-05/0.1521, allocations: 81.23 kB / 488.7 MB, free: 14.31 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.21e-05/0.1522, allocations: 93.84 kB / 488.8 MB, free: 14.21 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.484e-05/0.1522, allocations: 25.7 kB / 488.8 MB, free: 14.18 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.878e-05/0.1522, allocations: 84.14 kB / 488.9 MB, free: 14.09 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.554e-05/0.1523, allocations: 7.844 kB / 488.9 MB, free: 14.09 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.358e-05/0.1523, allocations: 13.72 kB / 488.9 MB, free: 14.07 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.1524, allocations: 310.8 kB / 489.2 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.217e-06/0.1524, allocations: 0 / 489.2 MB, free: 13.75 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.087e-06/0.1525, allocations: 12 kB / 489.2 MB, free: 13.74 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.199e-05/0.1525, allocations: 68.2 kB / 489.3 MB, free: 13.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.1525, allocations: 7.875 kB / 489.3 MB, free: 13.65 MB / 366.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.755e-05/0.1526, allocations: 71.39 kB / 489.4 MB, free: 13.57 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.081e-05/0.1526, allocations: 29.7 kB / 489.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.1527, allocations: 0 / 489.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.356e-05/0.1527, allocations: 0 / 489.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.457e-05/0.1527, allocations: 0 / 489.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.149e-06/0.1527, allocations: 0 / 489.4 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.586e-05/0.1527, allocations: 8.094 kB / 489.4 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.085e-06/0.1527, allocations: 3.984 kB / 489.4 MB, free: 13.52 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 9.363e-05/0.1528, allocations: 139.5 kB / 489.5 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.192e-05/0.1529, allocations: 0 / 489.5 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.592e-05/0.1529, allocations: 3.125 kB / 489.5 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.674e-06/0.1529, allocations: 0 / 489.5 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.1529, allocations: 0 / 489.5 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.1529, allocations: 0 / 489.5 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002512/0.1532, allocations: 316.2 kB / 489.8 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.1532, allocations: 0 / 489.8 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.227e-06/0.1532, allocations: 0 / 489.8 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.616e-06/0.1532, allocations: 0 / 489.8 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.392e-06/0.1532, allocations: 3.938 kB / 489.8 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.1532, allocations: 4 kB / 489.9 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.1532, allocations: 0 / 489.9 MB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001203/0.1533, allocations: 173 kB / 490 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.447e-05/0.1534, allocations: 81.17 kB / 490.1 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.523e-05/0.1534, allocations: 4 kB / 490.1 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.503e-05/0.1535, allocations: 0 / 490.1 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.564e-05/0.1535, allocations: 4 kB / 490.1 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.169e-05/0.1535, allocations: 4 kB / 490.1 MB, free: 12.69 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.02e-05/0.1535, allocations: 75.28 kB / 490.2 MB, free: 12.62 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1535, allocations: 4 kB / 490.2 MB, free: 12.61 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004408/0.154, allocations: 155.9 kB / 490.3 MB, free: 12.46 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.001101/0.1551, allocations: 0.9467 MB / 491.3 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001171/0.1552, allocations: 71.38 kB / 491.4 MB, free: 11.4 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.1552, allocations: 3.938 kB / 491.4 MB, free: 11.4 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.626e-05/0.1553, allocations: 59.41 kB / 491.4 MB, free: 11.33 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001933/0.1555, allocations: 6.328 kB / 491.4 MB, free: 11.32 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001036/0.1565, allocations: 1.209 MB / 492.6 MB, free: 10.03 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002833/0.1568, allocations: 0.6809 MB / 493.3 MB, free: 9.32 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.187e-05/0.1568, allocations: 0 / 493.3 MB, free: 9.32 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.721e-05/0.1569, allocations: 7.438 kB / 493.3 MB, free: 9.316 MB / 366.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1569, allocations: 0 / 493.3 MB, free: 9.316 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01711/0.174, allocations: 4.39 MB / 497.7 MB, free: 5.051 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002079/0.1742, allocations: 250.3 kB / 498 MB, free: 4.793 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.939/2.113, allocations: 4 kB / 498 MB, free: 4.789 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