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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.001175/0.001175, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.33/1.33, allocations: 226.7 MB / 245.5 MB, free: 6.984 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001023/0.001023, allocations: 105.7 kB / 296.7 MB, free: 6.48 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3466/0.3466, allocations: 44.83 MB / 392.7 MB, free: 34.74 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001073/0.001073, allocations: 59.91 kB / 465.5 MB, free: 12.12 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3599/0.361, allocations: 62.02 MB / 0.5151 GB, free: 37.86 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001526/0.3625, allocations: 0.5688 MB / 0.5157 GB, free: 37.5 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002634/0.3652, allocations: 2.43 MB / 0.5181 GB, free: 35.82 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.047e-05/0.3652, allocations: 3.938 kB / 0.5181 GB, free: 35.82 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 1.828e-05/0.3653, allocations: 3.938 kB / 0.5181 GB, free: 35.81 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 4.659e-06/0.3653, allocations: 0 / 0.5181 GB, free: 35.81 MB / 378.7 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.001111/0.3664, allocations: 473.8 kB / 0.5185 GB, free: 35.62 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 3.679e-05/0.3664, allocations: 0 / 0.5185 GB, free: 35.62 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.48e-05/0.3665, allocations: 3.375 kB / 0.5185 GB, free: 35.62 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.631e-05/0.3665, allocations: 2.406 kB / 0.5185 GB, free: 35.62 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.641e-05/0.3665, allocations: 0 / 0.5185 GB, free: 35.62 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 6.002e-06/0.3665, allocations: 3.984 kB / 0.5185 GB, free: 35.61 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009622/0.3675, allocations: 0.739 MB / 0.5193 GB, free: 35.37 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 8.255e-06/0.3675, allocations: 0 / 0.5193 GB, free: 35.37 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 1.819e-05/0.3676, allocations: 6.812 kB / 0.5193 GB, free: 35.37 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005523/0.3681, allocations: 469.7 kB / 0.5197 GB, free: 35.22 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.3681, allocations: 0 / 0.5197 GB, free: 35.22 MB / 378.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.3681, allocations: 0 / 0.5197 GB, free: 35.22 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.3681, allocations: 0 / 0.5197 GB, free: 35.22 MB / 378.7 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.0003347/0.3685, allocations: 438.5 kB / 0.5201 GB, free: 34.78 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/0.3685, allocations: 7.719 kB / 0.5201 GB, free: 34.78 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.93e-05/0.3686, allocations: 4.938 kB / 0.5202 GB, free: 34.78 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.009e-05/0.3686, allocations: 163 kB / 0.5203 GB, free: 34.58 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.114e-05/0.3686, allocations: 4.375 kB / 0.5203 GB, free: 34.58 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.1e-05/0.3686, allocations: 384 / 0.5203 GB, free: 34.58 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.024e-05/0.3687, allocations: 36.17 kB / 0.5203 GB, free: 34.54 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.3687, allocations: 0 / 0.5203 GB, free: 34.54 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.837e-06/0.3688, allocations: 0 / 0.5203 GB, free: 34.54 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.3688, allocations: 3.938 kB / 0.5203 GB, free: 34.54 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.603e-05/0.3688, allocations: 2.312 kB / 0.5204 GB, free: 34.54 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.42e-05/0.3689, allocations: 151.7 kB / 0.5205 GB, free: 34.35 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.658e-05/0.3689, allocations: 18.58 kB / 0.5205 GB, free: 34.32 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.228e-05/0.369, allocations: 7.859 kB / 0.5205 GB, free: 34.31 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.045e-06/0.369, allocations: 3.938 kB / 0.5205 GB, free: 34.31 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.265e-05/0.369, allocations: 60.2 kB / 0.5206 GB, free: 34.23 MB / 378.7 MB Notification: Performance of pre-optimization done (n=1): time 1.342e-06/0.369, allocations: 0 / 0.5206 GB, free: 34.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001548/0.3692, allocations: 71.58 kB / 0.5207 GB, free: 34.16 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.881e-05/0.3692, allocations: 77.23 kB / 0.5207 GB, free: 34.07 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.386e-05/0.3692, allocations: 93.86 kB / 0.5208 GB, free: 33.97 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.813e-06/0.3693, allocations: 28.61 kB / 0.5208 GB, free: 33.94 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.116e-05/0.3693, allocations: 80.14 kB / 0.5209 GB, free: 33.86 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.926e-05/0.3693, allocations: 0 / 0.5209 GB, free: 33.86 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.16e-05/0.3693, allocations: 12.5 kB / 0.5209 GB, free: 33.84 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.751e-05/0.3694, allocations: 322.1 kB / 0.5212 GB, free: 33.52 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.408e-06/0.3694, allocations: 0 / 0.5212 GB, free: 33.52 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.37e-06/0.3694, allocations: 2.938 kB / 0.5212 GB, free: 33.52 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.218e-05/0.3694, allocations: 67.17 kB / 0.5213 GB, free: 33.44 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.3694, allocations: 0 / 0.5213 GB, free: 33.44 MB / 378.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.054e-05/0.3695, allocations: 60.77 kB / 0.5214 GB, free: 33.38 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.352e-05/0.3695, allocations: 35.3 kB / 0.5214 GB, free: 33.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.3695, allocations: 0 / 0.5214 GB, free: 33.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.3696, allocations: 2.719 kB / 0.5214 GB, free: 33.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.72e-07/0.3696, allocations: 0 / 0.5214 GB, free: 33.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.378e-06/0.3696, allocations: 0 / 0.5214 GB, free: 33.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.492e-05/0.3696, allocations: 0 / 0.5214 GB, free: 33.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.724e-06/0.3696, allocations: 6.469 kB / 0.5214 GB, free: 33.34 MB / 378.7 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 5.234e-05/0.3697, allocations: 139.3 kB / 0.5215 GB, free: 33.19 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.125e-06/0.3697, allocations: 7.266 kB / 0.5215 GB, free: 33.19 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.206e-06/0.3697, allocations: 6.719 kB / 0.5216 GB, free: 33.19 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-06/0.3697, allocations: 0 / 0.5216 GB, free: 33.19 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.3697, allocations: 0 / 0.5216 GB, free: 33.19 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.3697, allocations: 0 / 0.5216 GB, free: 33.19 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.286e-05/0.3698, allocations: 147.9 kB / 0.5217 GB, free: 33 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.3698, allocations: 0 / 0.5217 GB, free: 33 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.41e-07/0.3698, allocations: 4 kB / 0.5217 GB, free: 33 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.3698, allocations: 3.938 kB / 0.5217 GB, free: 32.99 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.923e-06/0.3698, allocations: 2.938 kB / 0.5217 GB, free: 32.99 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.3698, allocations: 0 / 0.5217 GB, free: 32.99 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.3698, allocations: 7.938 kB / 0.5217 GB, free: 32.98 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001988/0.37, allocations: 0.6416 MB / 0.5223 GB, free: 32.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.639e-05/0.37, allocations: 84.02 kB / 0.5224 GB, free: 32.2 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.248e-05/0.3701, allocations: 0 / 0.5224 GB, free: 32.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.627e-06/0.3701, allocations: 0 / 0.5224 GB, free: 32.2 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.341e-05/0.3701, allocations: 0 / 0.5224 GB, free: 32.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.276e-06/0.3701, allocations: 6.188 kB / 0.5224 GB, free: 32.2 MB / 378.7 MB Notification: Performance of sorting global known variables: time 1.569e-05/0.3701, allocations: 75.28 kB / 0.5225 GB, free: 32.12 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3701, allocations: 0 / 0.5225 GB, free: 32.12 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005456/0.3707, allocations: 160.6 kB / 0.5226 GB, free: 32.08 MB / 378.7 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.00072/0.3714, allocations: 346 kB / 0.523 GB, free: 31.91 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 8.3e-05/0.3715, allocations: 61.12 kB / 0.523 GB, free: 31.84 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.3715, allocations: 0 / 0.523 GB, free: 31.84 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 2.267e-05/0.3715, allocations: 57.66 kB / 0.5231 GB, free: 31.78 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001153/0.3717, allocations: 2.781 kB / 0.5231 GB, free: 31.78 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002124/0.3719, allocations: 187 kB / 0.5233 GB, free: 31.56 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001154/0.372, allocations: 0.6753 MB / 0.5239 GB, free: 30.87 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.44e-06/0.372, allocations: 0 / 0.5239 GB, free: 30.87 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.943e-06/0.372, allocations: 7.438 kB / 0.5239 GB, free: 30.86 MB / 378.7 MB Notification: Performance of SimCode: time 2.01e-07/0.372, allocations: 0 / 0.5239 GB, free: 30.86 MB / 378.7 MB Notification: Performance of Templates: time 0.005756/0.3778, allocations: 3.597 MB / 0.5275 GB, free: 30.54 MB / 378.7 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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","../files/ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches