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.001247/0.001247, allocations: 117 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001209/0.001209, allocations: 204.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.328/1.328, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2023/0.2023, allocations: 46.11 MB / 344.9 MB, free: 11.51 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 78.91 kB / 419 MB, free: 19.04 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1123, allocations: 62.44 MB / 481.5 MB, free: 4.555 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001517/0.1138, allocations: 0.4899 MB / 482 MB, free: 4.066 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002933/0.1168, allocations: 2.373 MB / 484.3 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.63e-05/0.1168, allocations: 0 / 484.3 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.129e-05/0.1168, allocations: 0 / 484.3 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.529e-06/0.1168, allocations: 0 / 484.3 MB, free: 1.672 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.00147/0.1183, allocations: 0.5647 MB / 484.9 MB, free: 1.105 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.272e-05/0.1184, allocations: 8 kB / 484.9 MB, free: 1.098 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.137e-05/0.1184, allocations: 3.938 kB / 484.9 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.235e-05/0.1184, allocations: 0 / 484.9 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.467e-05/0.1184, allocations: 0 / 484.9 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.981e-06/0.1184, allocations: 4 kB / 484.9 MB, free: 1.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001072/0.1195, allocations: 0.698 MB / 485.6 MB, free: 400 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.382e-06/0.1195, allocations: 0 / 485.6 MB, free: 400 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.054e-05/0.1196, allocations: 8 kB / 485.6 MB, free: 392 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005978/0.1202, allocations: 463.2 kB / 486.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.1202, allocations: 0 / 486.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1202, allocations: 0 / 486.1 MB, free: 15.93 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.518e-06/0.1202, allocations: 0 / 486.1 MB, free: 15.93 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.0003827/0.1206, allocations: 429.2 kB / 486.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.287e-05/0.1206, allocations: 12.03 kB / 486.5 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.015e-05/0.1207, allocations: 4.938 kB / 486.5 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.066e-05/0.1208, allocations: 164.3 kB / 486.7 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.026e-05/0.1208, allocations: 384 / 486.7 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.143e-06/0.1208, allocations: 384 / 486.7 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.281e-05/0.1209, allocations: 38 kB / 486.7 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.322e-06/0.1209, allocations: 0 / 486.7 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.884e-06/0.1209, allocations: 0 / 486.7 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.1209, allocations: 0 / 486.7 MB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.786e-05/0.1209, allocations: 7.938 kB / 486.7 MB, free: 15.19 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001201/0.1211, allocations: 149.7 kB / 486.9 MB, free: 14.99 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.324e-05/0.1211, allocations: 14.58 kB / 486.9 MB, free: 14.97 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.235e-05/0.1211, allocations: 8.953 kB / 486.9 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.576e-06/0.1211, allocations: 0 / 486.9 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.582e-05/0.1212, allocations: 64.19 kB / 486.9 MB, free: 14.88 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.172e-06/0.1212, allocations: 0 / 486.9 MB, free: 14.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.000147/0.1214, allocations: 71.38 kB / 487 MB, free: 14.8 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.902e-05/0.1214, allocations: 81.14 kB / 487.1 MB, free: 14.7 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.073e-05/0.1215, allocations: 93.86 kB / 487.2 MB, free: 14.6 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.079e-05/0.1215, allocations: 25.7 kB / 487.2 MB, free: 14.57 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.265e-05/0.1215, allocations: 80.14 kB / 487.3 MB, free: 14.48 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.708e-05/0.1215, allocations: 3.984 kB / 487.3 MB, free: 14.48 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.397e-05/0.1215, allocations: 9.719 kB / 487.3 MB, free: 14.46 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001004/0.1217, allocations: 314.8 kB / 487.6 MB, free: 14.15 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.295e-06/0.1217, allocations: 0 / 487.6 MB, free: 14.15 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.37e-06/0.1217, allocations: 4 kB / 487.6 MB, free: 14.14 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.231e-05/0.1217, allocations: 64.27 kB / 487.7 MB, free: 14.07 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.1217, allocations: 4 kB / 487.7 MB, free: 14.06 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.613e-05/0.1218, allocations: 67.33 kB / 487.7 MB, free: 13.98 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.516e-05/0.1219, allocations: 33.64 kB / 487.8 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.566e-06/0.1219, allocations: 0 / 487.8 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.918e-06/0.1219, allocations: 0 / 487.8 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.41e-07/0.1219, allocations: 4 kB / 487.8 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.408e-06/0.1219, allocations: 4.094 kB / 487.8 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.354e-05/0.1219, allocations: 0 / 487.8 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.324e-06/0.1219, allocations: 3.984 kB / 487.8 MB, free: 13.93 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.992e-05/0.122, allocations: 139.5 kB / 487.9 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.283e-05/0.122, allocations: 7.922 kB / 487.9 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.742e-06/0.122, allocations: 7.062 kB / 487.9 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.122, allocations: 3.984 kB / 487.9 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.1221, allocations: 0 / 487.9 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.674e-06/0.1221, allocations: 0 / 487.9 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.322e-05/0.1221, allocations: 149.7 kB / 488.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.1222, allocations: 0 / 488.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.12e-07/0.1222, allocations: 0 / 488.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.757e-06/0.1222, allocations: 7.922 kB / 488.1 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.921e-06/0.1222, allocations: 0 / 488.1 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.41e-07/0.1222, allocations: 0 / 488.1 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.1222, allocations: 0 / 488.1 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.273e-05/0.1223, allocations: 98.67 kB / 488.2 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.875e-05/0.1223, allocations: 85.12 kB / 488.3 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.329e-05/0.1223, allocations: 7.938 kB / 488.3 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.456e-06/0.1224, allocations: 0 / 488.3 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.927e-06/0.1224, allocations: 0 / 488.3 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.575e-06/0.1224, allocations: 0 / 488.3 MB, free: 13.33 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.26e-05/0.1224, allocations: 75.28 kB / 488.4 MB, free: 13.26 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1224, allocations: 0 / 488.4 MB, free: 13.26 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003934/0.1228, allocations: 163.8 kB / 488.5 MB, free: 13.1 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.0006765/0.1235, allocations: 344.8 kB / 488.8 MB, free: 12.76 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.565e-05/0.1236, allocations: 59.39 kB / 488.9 MB, free: 12.69 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.1236, allocations: 3.938 kB / 488.9 MB, free: 12.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.997e-05/0.1236, allocations: 59.41 kB / 489 MB, free: 12.61 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001187/0.1238, allocations: 0 / 489 MB, free: 12.61 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001521/0.1239, allocations: 81.06 kB / 489 MB, free: 12.51 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002144/0.1241, allocations: 0.6768 MB / 489.7 MB, free: 11.8 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.819e-06/0.1242, allocations: 0 / 489.7 MB, free: 11.8 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.005e-06/0.1242, allocations: 7.438 kB / 489.7 MB, free: 11.8 MB / 366.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1242, allocations: 0 / 489.7 MB, free: 11.8 MB / 366.1 MB Notification: Performance of Templates: time 0.00648/0.1307, allocations: 3.601 MB / 493.3 MB, free: 8.203 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 -s gbode -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