Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions") translateModel(ModelicaTest.Math.Random.TestTruncatedDistributions,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|result",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001176/0.001176, allocations: 113.9 kB / 18.46 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001177/0.001177, allocations: 182.1 kB / 19.38 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.458/1.458, allocations: 222.9 MB / 243.1 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2307/0.2307, allocations: 44.18 MB / 337.4 MB, free: 2.695 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001541/0.001541, allocations: 63.91 kB / 471.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4279/0.4294, allocations: 60.82 MB / 0.5196 GB, free: 3.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.00174/0.4312, allocations: 0.5015 MB / 0.5201 GB, free: 3.301 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003049/0.4343, allocations: 2.298 MB / 0.5223 GB, free: 1.688 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.728e-05/0.4343, allocations: 0 / 0.5223 GB, free: 1.688 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.836e-05/0.4343, allocations: 3.938 kB / 0.5223 GB, free: 1.684 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 6.422e-06/0.4344, allocations: 1.125 kB / 0.5223 GB, free: 1.684 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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.001847/0.4362, allocations: 0.5573 MB / 0.5228 GB, free: 1.461 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.624e-05/0.4363, allocations: 2.938 kB / 0.5229 GB, free: 1.461 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.312e-05/0.4363, allocations: 4.75 kB / 0.5229 GB, free: 1.457 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.573e-05/0.4363, allocations: 1.5 kB / 0.5229 GB, free: 1.457 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.715e-05/0.4364, allocations: 0.75 kB / 0.5229 GB, free: 1.457 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.262e-06/0.4364, allocations: 1.406 kB / 0.5229 GB, free: 1.457 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001291/0.4377, allocations: 0.6876 MB / 0.5235 GB, free: 1.234 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.075e-05/0.4377, allocations: 5.719 kB / 0.5235 GB, free: 1.23 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.111e-05/0.4377, allocations: 1.094 kB / 0.5235 GB, free: 1.23 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007532/0.4385, allocations: 450.3 kB / 0.524 GB, free: 1.098 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.4385, allocations: 0 / 0.524 GB, free: 1.098 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.4385, allocations: 3.938 kB / 0.524 GB, free: 1.098 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.822e-06/0.4385, allocations: 0 / 0.524 GB, free: 1.098 MB / 382.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.0004628/0.439, allocations: 438.1 kB / 0.5244 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/0.439, allocations: 9.812 kB / 0.5244 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.711e-05/0.4391, allocations: 4.938 kB / 0.5244 GB, free: 0.6484 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.826e-05/0.4392, allocations: 161.8 kB / 0.5246 GB, free: 464 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.296e-05/0.4392, allocations: 5.375 kB / 0.5246 GB, free: 460 kB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.785e-06/0.4392, allocations: 1.562 kB / 0.5246 GB, free: 460 kB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.411e-05/0.4393, allocations: 33.88 kB / 0.5246 GB, free: 424 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.093e-06/0.4393, allocations: 0 / 0.5246 GB, free: 424 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.197e-06/0.4393, allocations: 1.125 kB / 0.5246 GB, free: 424 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.897e-06/0.4393, allocations: 0 / 0.5246 GB, free: 424 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.891e-05/0.4393, allocations: 1.375 kB / 0.5246 GB, free: 424 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.048e-05/0.4394, allocations: 149 kB / 0.5247 GB, free: 228 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.273e-05/0.4395, allocations: 25.66 kB / 0.5248 GB, free: 196 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.411e-05/0.4395, allocations: 6.078 kB / 0.5248 GB, free: 188 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.834e-06/0.4395, allocations: 0 / 0.5248 GB, free: 188 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.952e-05/0.4395, allocations: 61.95 kB / 0.5248 GB, free: 112 kB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.4395, allocations: 0 / 0.5248 GB, free: 112 kB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001529/0.4397, allocations: 62.02 kB / 0.5249 GB, free: 48 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001142/0.4398, allocations: 86.66 kB / 0.525 GB, free: 15.95 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.965e-05/0.4399, allocations: 94.61 kB / 0.5251 GB, free: 15.84 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.189e-05/0.4399, allocations: 26.77 kB / 0.5251 GB, free: 15.81 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.503e-05/0.4399, allocations: 80.14 kB / 0.5252 GB, free: 15.73 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.036e-05/0.4399, allocations: 0.8438 kB / 0.5252 GB, free: 15.73 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.883e-05/0.44, allocations: 11.95 kB / 0.5252 GB, free: 15.71 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.4401, allocations: 312.9 kB / 0.5255 GB, free: 15.4 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.569e-05/0.4402, allocations: 5.25 kB / 0.5255 GB, free: 15.4 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.118e-05/0.4402, allocations: 6.031 kB / 0.5255 GB, free: 15.39 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.507e-05/0.4403, allocations: 67.7 kB / 0.5255 GB, free: 15.32 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-06/0.4403, allocations: 0 / 0.5255 GB, free: 15.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.274e-05/0.4404, allocations: 60.98 kB / 0.5256 GB, free: 15.25 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.028e-05/0.4404, allocations: 36.06 kB / 0.5256 GB, free: 15.22 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.4404, allocations: 3.938 kB / 0.5256 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/0.4404, allocations: 1.391 kB / 0.5256 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.82e-07/0.4405, allocations: 0 / 0.5256 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.4405, allocations: 1.125 kB / 0.5256 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.485e-05/0.4405, allocations: 4.844 kB / 0.5257 GB, free: 15.21 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.011e-06/0.4405, allocations: 0.9688 kB / 0.5257 GB, free: 15.21 MB / 398.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.84e-05/0.4406, allocations: 135.7 kB / 0.5258 GB, free: 15.07 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.055e-05/0.4406, allocations: 5.234 kB / 0.5258 GB, free: 15.06 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.571e-05/0.4406, allocations: 15.53 kB / 0.5258 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.534e-06/0.4406, allocations: 0 / 0.5258 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.4406, allocations: 0.8438 kB / 0.5258 GB, free: 15.05 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.505e-05/0.4407, allocations: 77.86 kB / 0.5259 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.252e-05/0.4407, allocations: 7.359 kB / 0.5259 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.236e-06/0.4407, allocations: 0 / 0.5259 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.271e-05/0.4407, allocations: 0.5156 kB / 0.5259 GB, free: 14.95 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.000119/0.4409, allocations: 194.9 kB / 0.5261 GB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001452/0.441, allocations: 242.6 kB / 0.5263 GB, free: 14.5 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.348e-05/0.441, allocations: 7.453 kB / 0.5263 GB, free: 14.5 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.941e-05/0.4411, allocations: 83.38 kB / 0.5264 GB, free: 14.41 MB / 398.1 MB Notification: Performance of Backend: time 1.51e-07/0.4411, allocations: 0 / 0.5264 GB, free: 14.41 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00105/0.4421, allocations: 378.7 kB / 0.5268 GB, free: 14.21 MB / 398.1 MB Notification: Performance of SimCode: time 0.0004195/0.4426, allocations: 0.585 MB / 0.5273 GB, free: 13.57 MB / 398.1 MB Notification: Performance of Templates: time 0.009168/0.4518, allocations: 3.524 MB / 0.5308 GB, free: 11.94 MB / 398.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & ./ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Math.Random.TestTruncatedDistributions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches