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: translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001246/0.001246, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001467/0.001467, allocations: 211.8 kB / 19.25 MB, free: 3.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.365/1.365, allocations: 227.4 MB / 247.4 MB, free: 10.62 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.234/0.234, allocations: 46.1 MB / 344.8 MB, free: 11.56 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 82.86 kB / 418.2 MB, free: 19.78 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1135, allocations: 62.45 MB / 480.7 MB, free: 5.312 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001669/0.1152, allocations: 0.491 MB / 481.2 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003185/0.1184, allocations: 2.373 MB / 483.6 MB, free: 2.426 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.269e-05/0.1184, allocations: 0 / 483.6 MB, free: 2.426 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.256e-05/0.1185, allocations: 0 / 483.6 MB, free: 2.426 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.809e-06/0.1185, allocations: 0 / 483.6 MB, free: 2.426 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.001434/0.1199, allocations: 0.5722 MB / 484.1 MB, free: 1.855 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.285e-05/0.12, allocations: 0 / 484.1 MB, free: 1.855 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.843e-05/0.12, allocations: 4 kB / 484.1 MB, free: 1.852 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.432e-05/0.12, allocations: 0 / 484.1 MB, free: 1.852 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.626e-05/0.1201, allocations: 0 / 484.1 MB, free: 1.852 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.881e-06/0.1201, allocations: 0 / 484.1 MB, free: 1.852 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001119/0.1212, allocations: 0.7058 MB / 484.8 MB, free: 1.145 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.244e-06/0.1212, allocations: 3.938 kB / 484.8 MB, free: 1.141 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.958e-05/0.1212, allocations: 0 / 484.8 MB, free: 1.141 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006214/0.1219, allocations: 451.5 kB / 485.3 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.1219, allocations: 0 / 485.3 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.1219, allocations: 0 / 485.3 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.397e-06/0.1219, allocations: 7.938 kB / 485.3 MB, free: 0.6914 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.0004368/0.1223, allocations: 441.2 kB / 485.7 MB, free: 212 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.651e-05/0.1224, allocations: 8.031 kB / 485.7 MB, free: 204 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.969e-05/0.1224, allocations: 4.938 kB / 485.7 MB, free: 200 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000116/0.1225, allocations: 164.4 kB / 485.9 MB, free: 16 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.116e-05/0.1226, allocations: 384 / 485.9 MB, free: 16 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.928e-06/0.1226, allocations: 384 / 485.9 MB, free: 16 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.425e-05/0.1227, allocations: 41.94 kB / 485.9 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.673e-06/0.1227, allocations: 0 / 485.9 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.434e-06/0.1227, allocations: 0 / 485.9 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.1227, allocations: 7.984 kB / 485.9 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.647e-05/0.1227, allocations: 0 / 485.9 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001147/0.1229, allocations: 149.7 kB / 486.1 MB, free: 15.75 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.009e-05/0.1229, allocations: 22.5 kB / 486.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.555e-05/0.1229, allocations: 4.859 kB / 486.1 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.933e-06/0.1229, allocations: 3.938 kB / 486.1 MB, free: 15.7 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.613e-05/0.123, allocations: 68.27 kB / 486.2 MB, free: 15.62 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.152e-06/0.123, allocations: 0 / 486.2 MB, free: 15.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001556/0.1232, allocations: 67.34 kB / 486.3 MB, free: 15.54 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.269e-05/0.1232, allocations: 81.09 kB / 486.3 MB, free: 15.45 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.718e-05/0.1233, allocations: 89.86 kB / 486.4 MB, free: 15.35 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.12e-05/0.1233, allocations: 25.7 kB / 486.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.402e-05/0.1233, allocations: 80.14 kB / 486.5 MB, free: 15.23 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.606e-05/0.1233, allocations: 0 / 486.5 MB, free: 15.23 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.446e-05/0.1234, allocations: 13.72 kB / 486.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.1235, allocations: 315 kB / 486.8 MB, free: 14.9 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.045e-06/0.1235, allocations: 0 / 486.8 MB, free: 14.9 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.907e-06/0.1235, allocations: 8 kB / 486.9 MB, free: 14.89 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.772e-05/0.1236, allocations: 60.27 kB / 486.9 MB, free: 14.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.1236, allocations: 0 / 486.9 MB, free: 14.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.787e-05/0.1237, allocations: 63.33 kB / 487 MB, free: 14.74 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.94e-05/0.1237, allocations: 37.64 kB / 487 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.1237, allocations: 96 / 487 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.007e-05/0.1237, allocations: 4 kB / 487 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.61e-07/0.1237, allocations: 0 / 487 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.097e-06/0.1237, allocations: 0 / 487 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.314e-05/0.1238, allocations: 0 / 487 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.005e-06/0.1238, allocations: 4 kB / 487 MB, free: 14.69 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: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * 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 8.329e-05/0.1239, allocations: 139.5 kB / 487.2 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.267e-06/0.1239, allocations: 3.938 kB / 487.2 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.336e-06/0.1239, allocations: 7.125 kB / 487.2 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.42e-07/0.1239, allocations: 0 / 487.2 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.1239, allocations: 4 kB / 487.2 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.964e-06/0.1239, allocations: 0 / 487.2 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001047/0.124, allocations: 145.7 kB / 487.3 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.32e-07/0.124, allocations: 0 / 487.3 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.124, allocations: 0 / 487.3 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.124, allocations: 7.938 kB / 487.3 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.434e-06/0.124, allocations: 0 / 487.3 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.1241, allocations: 3.938 kB / 487.3 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.1241, allocations: 0 / 487.3 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001004/0.1242, allocations: 110.6 kB / 487.4 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.297e-05/0.1242, allocations: 77.11 kB / 487.5 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.326e-05/0.1242, allocations: 3.938 kB / 487.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.496e-06/0.1242, allocations: 0 / 487.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.497e-05/0.1243, allocations: 4 kB / 487.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.118e-06/0.1243, allocations: 3.984 kB / 487.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.366e-05/0.1243, allocations: 75.28 kB / 487.6 MB, free: 14.01 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1243, allocations: 0 / 487.6 MB, free: 14.01 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004222/0.1247, allocations: 171.9 kB / 487.8 MB, free: 13.84 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: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * 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.0007632/0.1255, allocations: 321.3 kB / 488.1 MB, free: 13.52 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.151e-05/0.1256, allocations: 63.41 kB / 488.1 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.1256, allocations: 0 / 488.1 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.885e-05/0.1257, allocations: 55.47 kB / 488.2 MB, free: 13.38 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001247/0.1258, allocations: 6.406 kB / 488.2 MB, free: 13.38 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002026/0.126, allocations: 118.5 kB / 488.3 MB, free: 13.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002297/0.1262, allocations: 0.669 MB / 489 MB, free: 12.53 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.069e-05/0.1263, allocations: 11.44 kB / 489 MB, free: 12.52 MB / 366.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1263, allocations: 0 / 489 MB, free: 12.52 MB / 366.1 MB Notification: Performance of Templates: time 0.00632/0.1326, allocations: 3.386 MB / 492.4 MB, free: 9.133 MB / 366.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile (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 & ./ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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