Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009304/0.0009304, allocations: 200.5 kB / 15.8 MB, free: 6.305 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.241/1.241, allocations: 226.5 MB / 243.1 MB, free: 12.38 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006625/0.0006625, allocations: 96.56 kB / 295.1 MB, free: 4.43 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2048/0.2048, allocations: 44.84 MB / 392 MB, free: 11.34 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002286/0.0002286, allocations: 8 kB / 464.7 MB, free: 68.07 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08707/0.08731, allocations: 62.96 MB / 0.5153 GB, free: 5.109 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.0004756/0.08782, allocations: 230.1 kB / 0.5155 GB, free: 4.883 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.002221/0.09006, allocations: 2.224 MB / 0.5177 GB, free: 2.637 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.266e-05/0.09009, allocations: 4 kB / 0.5177 GB, free: 2.633 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 9.258e-06/0.0901, allocations: 0 / 0.5177 GB, free: 2.633 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 5.43e-06/0.09012, allocations: 0 / 0.5177 GB, free: 2.633 MB / 346.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.001188/0.09131, allocations: 462.2 kB / 0.5182 GB, free: 2.184 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 2.629e-05/0.09135, allocations: 4 kB / 0.5182 GB, free: 2.18 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.21e-05/0.09138, allocations: 7.984 kB / 0.5182 GB, free: 2.172 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.508e-05/0.0914, allocations: 3.938 kB / 0.5182 GB, free: 2.168 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 1.552e-05/0.09143, allocations: 0 / 0.5182 GB, free: 2.168 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 5.38e-06/0.09144, allocations: 0 / 0.5182 GB, free: 2.168 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009353/0.09238, allocations: 0.7136 MB / 0.5189 GB, free: 1.453 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 6.282e-06/0.09239, allocations: 0 / 0.5189 GB, free: 1.453 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.168e-05/0.09242, allocations: 29.7 kB / 0.5189 GB, free: 1.418 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004462/0.09287, allocations: 295.5 kB / 0.5192 GB, free: 1.129 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.09289, allocations: 0 / 0.5192 GB, free: 1.129 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.412e-06/0.09289, allocations: 0 / 0.5192 GB, free: 1.129 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.647e-06/0.0929, allocations: 4 kB / 0.5192 GB, free: 1.125 MB / 346.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.0003228/0.09323, allocations: 437.3 kB / 0.5196 GB, free: 0.6445 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.108e-05/0.09327, allocations: 12.03 kB / 0.5196 GB, free: 0.6328 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.097e-05/0.0933, allocations: 3.984 kB / 0.5196 GB, free: 0.6289 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.663e-05/0.09335, allocations: 163 kB / 0.5198 GB, free: 440 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.116e-05/0.09337, allocations: 0 / 0.5198 GB, free: 440 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.432e-06/0.09338, allocations: 0 / 0.5198 GB, free: 440 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.587e-05/0.09346, allocations: 37.67 kB / 0.5198 GB, free: 396 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.615e-06/0.09349, allocations: 0 / 0.5198 GB, free: 396 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.985e-06/0.0935, allocations: 4 kB / 0.5198 GB, free: 392 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.316e-06/0.09351, allocations: 0 / 0.5198 GB, free: 392 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.515e-05/0.09353, allocations: 3.938 kB / 0.5198 GB, free: 388 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.059e-05/0.09361, allocations: 157.6 kB / 0.52 GB, free: 180 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.641e-05/0.09364, allocations: 14.58 kB / 0.52 GB, free: 156 kB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.026e-05/0.09366, allocations: 4.953 kB / 0.52 GB, free: 148 kB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.493e-06/0.09367, allocations: 4 kB / 0.52 GB, free: 144 kB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.506e-05/0.0937, allocations: 60.27 kB / 0.52 GB, free: 68 kB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 8.62e-07/0.09371, allocations: 0 / 0.52 GB, free: 68 kB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001589/0.09387, allocations: 71.33 kB / 0.5201 GB, free: 15.98 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.798e-05/0.09393, allocations: 77.11 kB / 0.5202 GB, free: 15.89 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.316e-05/0.09397, allocations: 89.86 kB / 0.5203 GB, free: 15.79 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.091e-05/0.09398, allocations: 25.7 kB / 0.5203 GB, free: 15.76 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.7e-05/0.09402, allocations: 80.14 kB / 0.5204 GB, free: 15.68 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.518e-05/0.09404, allocations: 7.938 kB / 0.5204 GB, free: 15.67 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.094e-06/0.09405, allocations: 4.125 kB / 0.5204 GB, free: 15.67 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.604e-05/0.09415, allocations: 314.8 kB / 0.5207 GB, free: 15.35 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.244e-06/0.09416, allocations: 0 / 0.5207 GB, free: 15.35 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.809e-06/0.09417, allocations: 0 / 0.5207 GB, free: 15.35 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.786e-05/0.0942, allocations: 37.69 kB / 0.5207 GB, free: 15.31 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.09421, allocations: 0 / 0.5207 GB, free: 15.31 MB / 362.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.609e-05/0.09428, allocations: 67.3 kB / 0.5208 GB, free: 15.23 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.469e-05/0.09432, allocations: 29.7 kB / 0.5208 GB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.09433, allocations: 96 / 0.5208 GB, free: 15.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.007e-06/0.09434, allocations: 4 kB / 0.5208 GB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.11e-07/0.09435, allocations: 0 / 0.5208 GB, free: 15.19 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.393e-06/0.09436, allocations: 7.984 kB / 0.5208 GB, free: 15.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.675e-05/0.09438, allocations: 4 kB / 0.5208 GB, free: 15.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.943e-06/0.0944, allocations: 7.922 kB / 0.5208 GB, free: 15.17 MB / 362.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.845e-05/0.09447, allocations: 131.5 kB / 0.521 GB, free: 15.03 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.067e-05/0.09449, allocations: 7.953 kB / 0.521 GB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.657e-06/0.0945, allocations: 7.078 kB / 0.521 GB, free: 15.02 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.09451, allocations: 4 kB / 0.521 GB, free: 15.01 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.09451, allocations: 0 / 0.521 GB, free: 15.01 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.024e-06/0.09452, allocations: 0 / 0.521 GB, free: 15.01 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.531e-05/0.09461, allocations: 149.7 kB / 0.5211 GB, free: 14.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.09462, allocations: 4 kB / 0.5211 GB, free: 14.81 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-07/0.09462, allocations: 0 / 0.5211 GB, free: 14.81 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.09463, allocations: 3.953 kB / 0.5211 GB, free: 14.81 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.42e-06/0.09464, allocations: 0 / 0.5211 GB, free: 14.81 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.09465, allocations: 0 / 0.5211 GB, free: 14.81 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.09465, allocations: 0 / 0.5211 GB, free: 14.81 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.04e-05/0.09474, allocations: 98.77 kB / 0.5212 GB, free: 14.69 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.813e-05/0.09478, allocations: 77.11 kB / 0.5213 GB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.225e-05/0.0948, allocations: 3.953 kB / 0.5213 GB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.043e-05/0.09481, allocations: 4 kB / 0.5213 GB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.221e-05/0.09483, allocations: 0 / 0.5213 GB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.885e-06/0.09484, allocations: 0 / 0.5213 GB, free: 14.59 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.236e-05/0.09487, allocations: 75.28 kB / 0.5214 GB, free: 14.51 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09487, allocations: 0 / 0.5214 GB, free: 14.51 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004478/0.09532, allocations: 163.9 kB / 0.5215 GB, free: 14.35 MB / 362.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007587/0.09609, allocations: 345 kB / 0.5219 GB, free: 14.01 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 8.21e-05/0.09618, allocations: 59.41 kB / 0.5219 GB, free: 13.94 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.09619, allocations: 0 / 0.5219 GB, free: 13.94 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.669e-05/0.09623, allocations: 59.47 kB / 0.522 GB, free: 13.87 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001145/0.09635, allocations: 2.188 kB / 0.522 GB, free: 13.87 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001632/0.09652, allocations: 116.3 kB / 0.5221 GB, free: 13.72 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002158/0.09674, allocations: 0.6692 MB / 0.5227 GB, free: 13.03 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.107e-05/0.09676, allocations: 7.438 kB / 0.5228 GB, free: 13.02 MB / 362.7 MB Notification: Performance of SimCode: time 3.91e-07/0.09676, allocations: 0 / 0.5228 GB, free: 13.02 MB / 362.7 MB Notification: Performance of Templates: time 0.005642/0.1024, allocations: 3.382 MB / 0.5261 GB, free: 9.633 MB / 362.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Math/Random/TestTruncatedDistributions/TestTruncatedDistributions.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches