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.0009173/0.0009174, allocations: 95.09 kB / 18.01 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001093/0.001093, allocations: 207 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.302/1.302, allocations: 227.7 MB / 247.5 MB, free: 11.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1916/0.1916, allocations: 46.18 MB / 345.9 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002456/0.0002456, allocations: 8 kB / 420.2 MB, free: 19.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1049, allocations: 63.56 MB / 483.7 MB, free: 4.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.0006036/0.1056, allocations: 231 kB / 483.9 MB, free: 3.953 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0035/0.1091, allocations: 2.416 MB / 486.4 MB, free: 1.516 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.127e-05/0.1091, allocations: 3.938 kB / 486.4 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.316e-05/0.1091, allocations: 0 / 486.4 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.849e-06/0.1092, allocations: 0 / 486.4 MB, free: 1.512 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.001498/0.1107, allocations: 466.6 kB / 486.8 MB, free: 1.059 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.991e-05/0.1107, allocations: 0 / 486.8 MB, free: 1.059 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.337e-05/0.1107, allocations: 12 kB / 486.8 MB, free: 1.047 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.761e-05/0.1108, allocations: 3.984 kB / 486.8 MB, free: 1.043 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.813e-05/0.1108, allocations: 0 / 486.8 MB, free: 1.043 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.931e-06/0.1108, allocations: 0 / 486.8 MB, free: 1.043 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001275/0.1121, allocations: 0.7369 MB / 487.6 MB, free: 312 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.337e-06/0.1121, allocations: 0 / 487.6 MB, free: 312 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.397e-05/0.1122, allocations: 37.62 kB / 487.6 MB, free: 268 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005509/0.1127, allocations: 291.8 kB / 487.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.1127, allocations: 0 / 487.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1127, allocations: 0 / 487.9 MB, free: 15.98 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.837e-06/0.1127, allocations: 4 kB / 487.9 MB, free: 15.97 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.0004915/0.1132, allocations: 433.2 kB / 488.3 MB, free: 15.5 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.127e-05/0.1133, allocations: 12.88 kB / 488.3 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.131e-05/0.1133, allocations: 0.9375 kB / 488.3 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.654e-05/0.1134, allocations: 160.4 kB / 488.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.323e-05/0.1134, allocations: 384 / 488.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.765e-06/0.1135, allocations: 384 / 488.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.394e-05/0.1135, allocations: 38.02 kB / 488.5 MB, free: 15.25 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.122e-06/0.1136, allocations: 4 kB / 488.5 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.1136, allocations: 3.984 kB / 488.5 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.39e-06/0.1136, allocations: 0 / 488.5 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.076e-05/0.1136, allocations: 7.938 kB / 488.5 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001313/0.1137, allocations: 141.7 kB / 488.7 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.675e-05/0.1138, allocations: 14.58 kB / 488.7 MB, free: 15.02 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.68e-05/0.1138, allocations: 8.953 kB / 488.7 MB, free: 15.01 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.949e-06/0.1138, allocations: 0 / 488.7 MB, free: 15.01 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.346e-05/0.1139, allocations: 68.2 kB / 488.8 MB, free: 14.93 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.1139, allocations: 0 / 488.8 MB, free: 14.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.000185/0.1141, allocations: 71.31 kB / 488.8 MB, free: 14.84 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.67e-05/0.1141, allocations: 77.11 kB / 488.9 MB, free: 14.75 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.279e-05/0.1142, allocations: 93.8 kB / 489 MB, free: 14.65 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.269e-05/0.1142, allocations: 29.7 kB / 489 MB, free: 14.61 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.183e-05/0.1142, allocations: 80.14 kB / 489.1 MB, free: 14.53 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.737e-05/0.1143, allocations: 0 / 489.1 MB, free: 14.53 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.1e-05/0.1143, allocations: 21.78 kB / 489.1 MB, free: 14.5 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.1144, allocations: 318.8 kB / 489.5 MB, free: 14.18 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.746e-06/0.1144, allocations: 0 / 489.5 MB, free: 14.18 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.755e-06/0.1144, allocations: 4 kB / 489.5 MB, free: 14.18 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.91e-05/0.1145, allocations: 60.27 kB / 489.5 MB, free: 14.11 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.1145, allocations: 0 / 489.5 MB, free: 14.11 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.33e-05/0.1146, allocations: 63.34 kB / 489.6 MB, free: 14.03 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.521e-05/0.1146, allocations: 41.62 kB / 489.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.1146, allocations: 4.094 kB / 489.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.1147, allocations: 0 / 489.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.02e-07/0.1147, allocations: 0 / 489.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.1147, allocations: 0 / 489.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.647e-05/0.1147, allocations: 0 / 489.6 MB, free: 13.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.869e-06/0.1147, allocations: 4 kB / 489.6 MB, free: 13.98 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 7.563e-05/0.1148, allocations: 131.5 kB / 489.8 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.317e-06/0.1148, allocations: 3.938 kB / 489.8 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.775e-06/0.1148, allocations: 3.125 kB / 489.8 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.1148, allocations: 11.98 kB / 489.8 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.287e-06/0.1148, allocations: 0 / 489.8 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.1148, allocations: 0 / 489.8 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.884e-05/0.1149, allocations: 141.7 kB / 489.9 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.323e-06/0.1149, allocations: 0 / 489.9 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.092e-06/0.1149, allocations: 0 / 489.9 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.539e-06/0.115, allocations: 3.938 kB / 489.9 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.267e-06/0.115, allocations: 8 kB / 489.9 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.115, allocations: 0 / 489.9 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.115, allocations: 0 / 489.9 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001083/0.1151, allocations: 102.7 kB / 490 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.117e-05/0.1151, allocations: 81.11 kB / 490.1 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.585e-05/0.1152, allocations: 7.922 kB / 490.1 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.928e-06/0.1152, allocations: 0 / 490.1 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.336e-05/0.1152, allocations: 4 kB / 490.1 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.076e-06/0.1152, allocations: 3.938 kB / 490.1 MB, free: 13.38 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.309e-05/0.1152, allocations: 75.28 kB / 490.2 MB, free: 13.3 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1152, allocations: 4.031 kB / 490.2 MB, free: 13.3 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004797/0.1157, allocations: 159.9 kB / 490.4 MB, free: 13.14 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.0008611/0.1166, allocations: 336.4 kB / 490.7 MB, free: 12.81 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.594e-05/0.1167, allocations: 59.41 kB / 490.7 MB, free: 12.74 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.556e-06/0.1167, allocations: 4.062 kB / 490.7 MB, free: 12.73 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.924e-05/0.1167, allocations: 63.33 kB / 490.8 MB, free: 12.66 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001244/0.1169, allocations: 7.938 kB / 490.8 MB, free: 12.65 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001923/0.1171, allocations: 108.4 kB / 490.9 MB, free: 12.51 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002424/0.1173, allocations: 0.6731 MB / 491.6 MB, free: 11.81 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.286e-05/0.1173, allocations: 7.438 kB / 491.6 MB, free: 11.81 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1174, allocations: 0 / 491.6 MB, free: 11.81 MB / 366.1 MB Notification: Performance of Templates: time 0.006251/0.1236, allocations: 3.373 MB / 495 MB, free: 8.434 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