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.001676/0.001676, allocations: 110.8 kB / 17.33 MB, free: 6.023 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.001864/0.001864, allocations: 193.3 kB / 18.25 MB, free: 5.117 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.431/1.431, allocations: 222.9 MB / 241.9 MB, free: 13.71 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.2214/0.2214, allocations: 44.17 MB / 336.2 MB, free: 2.719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001518/0.001518, allocations: 67.58 kB / 408 MB, free: 27.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1374/0.139, allocations: 60.82 MB / 468.8 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.002746/0.1418, allocations: 0.5605 MB / 469.4 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003401/0.1452, allocations: 2.287 MB / 471.7 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.563e-05/0.1453, allocations: 0 / 471.7 MB, free: 11.74 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.781e-05/0.1453, allocations: 4 kB / 471.7 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.242e-06/0.1453, allocations: 0 / 471.7 MB, free: 11.73 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.001688/0.147, allocations: 0.5106 MB / 472.2 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.373e-05/0.1471, allocations: 3.938 kB / 472.2 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.701e-05/0.1471, allocations: 4 kB / 472.2 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.54e-05/0.1472, allocations: 0 / 472.2 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.831e-05/0.1472, allocations: 0 / 472.2 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.881e-06/0.1472, allocations: 0 / 472.2 MB, free: 11.21 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001136/0.1483, allocations: 0.7291 MB / 472.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.595e-06/0.1484, allocations: 0 / 472.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.864e-05/0.1484, allocations: 3.938 kB / 472.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007161/0.1491, allocations: 459.4 kB / 473.4 MB, free: 10.03 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.1491, allocations: 4 kB / 473.4 MB, free: 10.03 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.1491, allocations: 0 / 473.4 MB, free: 10.03 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.1491, allocations: 0 / 473.4 MB, free: 10.03 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.0004701/0.1496, allocations: 441.1 kB / 473.8 MB, free: 9.543 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.1497, allocations: 8.031 kB / 473.8 MB, free: 9.535 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.924e-05/0.1497, allocations: 30.75 kB / 473.8 MB, free: 9.496 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.41e-05/0.1497, allocations: 0.9375 kB / 473.8 MB, free: 9.496 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.651e-05/0.1498, allocations: 164.4 kB / 474 MB, free: 9.297 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.06e-05/0.1498, allocations: 4.375 kB / 474 MB, free: 9.293 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.686e-06/0.1499, allocations: 384 / 474 MB, free: 9.293 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.807e-05/0.15, allocations: 41.83 kB / 474.1 MB, free: 9.246 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.15, allocations: 3.984 kB / 474.1 MB, free: 9.242 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.923e-06/0.15, allocations: 0 / 474.1 MB, free: 9.242 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.627e-06/0.15, allocations: 0 / 474.1 MB, free: 9.242 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.993e-05/0.15, allocations: 4 kB / 474.1 MB, free: 9.238 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002293/0.1503, allocations: 236.9 kB / 474.3 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.951e-05/0.1503, allocations: 22.58 kB / 474.3 MB, free: 8.926 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.291e-05/0.1503, allocations: 12.91 kB / 474.3 MB, free: 8.91 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.868e-06/0.1504, allocations: 0 / 474.3 MB, free: 8.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.938e-05/0.1504, allocations: 60.27 kB / 474.4 MB, free: 8.836 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 9.01e-07/0.1504, allocations: 0 / 474.4 MB, free: 8.836 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001757/0.1506, allocations: 71.33 kB / 474.5 MB, free: 8.754 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.545e-05/0.1506, allocations: 89.09 kB / 474.5 MB, free: 8.648 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.395e-05/0.1507, allocations: 97.89 kB / 474.6 MB, free: 8.543 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.301e-05/0.1507, allocations: 25.7 kB / 474.7 MB, free: 8.512 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.333e-05/0.1507, allocations: 84.08 kB / 474.7 MB, free: 8.426 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.756e-05/0.1508, allocations: 3.938 kB / 474.7 MB, free: 8.422 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.026e-05/0.1508, allocations: 13.72 kB / 474.8 MB, free: 8.402 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001086/0.1509, allocations: 314.8 kB / 475.1 MB, free: 8.086 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.094e-05/0.1509, allocations: 0 / 475.1 MB, free: 8.086 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.197e-06/0.1509, allocations: 4 kB / 475.1 MB, free: 8.082 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.756e-05/0.151, allocations: 68.31 kB / 475.1 MB, free: 8 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.151, allocations: 3.938 kB / 475.1 MB, free: 7.996 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.281e-05/0.1511, allocations: 75.28 kB / 475.2 MB, free: 7.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.617e-05/0.1511, allocations: 29.7 kB / 475.2 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.1511, allocations: 0 / 475.2 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.221e-05/0.1512, allocations: 3.984 kB / 475.2 MB, free: 7.871 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.448e-05/0.1512, allocations: 0 / 475.2 MB, free: 7.871 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.1512, allocations: 4 kB / 475.3 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.484e-05/0.1512, allocations: 0 / 475.3 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.051e-06/0.1512, allocations: 4.031 kB / 475.3 MB, free: 7.863 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 ($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 7.636e-05/0.1513, allocations: 143.5 kB / 475.4 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.144e-05/0.1513, allocations: 0 / 475.4 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.57e-05/0.1514, allocations: 7.078 kB / 475.4 MB, free: 7.699 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.1514, allocations: 0 / 475.4 MB, free: 7.699 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.1514, allocations: 0 / 475.4 MB, free: 7.699 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.1514, allocations: 4 kB / 475.4 MB, free: 7.695 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002487/0.1516, allocations: 308.1 kB / 475.7 MB, free: 7.332 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1516, allocations: 4.031 kB / 475.7 MB, free: 7.328 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.489e-06/0.1517, allocations: 0 / 475.7 MB, free: 7.328 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.1517, allocations: 0 / 475.7 MB, free: 7.328 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.047e-06/0.1517, allocations: 4 kB / 475.7 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.1517, allocations: 0 / 475.7 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.1517, allocations: 0 / 475.7 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001204/0.1518, allocations: 169.2 kB / 475.9 MB, free: 7.137 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.232e-05/0.1518, allocations: 81.11 kB / 476 MB, free: 7.039 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.216e-05/0.1519, allocations: 4.031 kB / 476 MB, free: 7.035 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.348e-05/0.1519, allocations: 0 / 476 MB, free: 7.035 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.52e-05/0.1519, allocations: 3.938 kB / 476 MB, free: 7.031 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.99e-06/0.1519, allocations: 4 kB / 476 MB, free: 7.027 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.715e-05/0.152, allocations: 83.3 kB / 476.1 MB, free: 6.945 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.152, allocations: 3.938 kB / 476.1 MB, free: 6.941 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000472/0.1525, allocations: 155.9 kB / 476.2 MB, free: 6.789 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 (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.001119/0.1536, allocations: 0.9435 MB / 477.2 MB, free: 5.824 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001143/0.1537, allocations: 67.34 kB / 477.2 MB, free: 5.746 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.1537, allocations: 4.094 kB / 477.2 MB, free: 5.742 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.431e-05/0.1538, allocations: 59.39 kB / 477.3 MB, free: 5.672 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001888/0.154, allocations: 4 kB / 477.3 MB, free: 5.668 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009413/0.1549, allocations: 1.207 MB / 478.5 MB, free: 4.375 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002779/0.1552, allocations: 0.6806 MB / 479.2 MB, free: 3.668 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.189e-05/0.1552, allocations: 0 / 479.2 MB, free: 3.668 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.189e-05/0.1552, allocations: 11.44 kB / 479.2 MB, free: 3.656 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1552, allocations: 0 / 479.2 MB, free: 3.656 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01594/0.1712, allocations: 4.432 MB / 483.6 MB, free: 15.35 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002062/0.1714, allocations: 253.2 kB / 483.9 MB, free: 15.09 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.989/2.161, allocations: 0 / 483.9 MB, free: 15.09 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/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) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches