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.001084/0.001084, allocations: 121.7 kB / 18.46 MB, free: 4.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001144/0.001144, allocations: 212.8 kB / 19.41 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2172/0.2172, allocations: 46.1 MB / 345 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001426/0.001426, allocations: 79.88 kB / 482 MB, free: 4.074 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4147/0.4161, allocations: 62.43 MB / 0.5316 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001641/0.4178, allocations: 0.5002 MB / 0.5321 GB, free: 13.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003448/0.4213, allocations: 2.357 MB / 0.5344 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.563e-05/0.4213, allocations: 0 / 0.5344 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.136e-05/0.4213, allocations: 0 / 0.5344 GB, free: 11.38 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.795e-06/0.4214, allocations: 1.375 kB / 0.5344 GB, free: 11.38 MB / 398.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.001666/0.423, allocations: 0.576 MB / 0.535 GB, free: 11.04 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.122e-05/0.4231, allocations: 9.344 kB / 0.535 GB, free: 11.03 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.698e-05/0.4232, allocations: 1.375 kB / 0.535 GB, free: 11.03 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.584e-05/0.4232, allocations: 0 / 0.535 GB, free: 11.03 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.831e-05/0.4232, allocations: 5.312 kB / 0.535 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.562e-06/0.4232, allocations: 0 / 0.535 GB, free: 11.02 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001207/0.4244, allocations: 0.7054 MB / 0.5357 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.025e-06/0.4244, allocations: 4 kB / 0.5357 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.058e-05/0.4245, allocations: 1.156 kB / 0.5357 GB, free: 10.62 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000677/0.4252, allocations: 459.4 kB / 0.5362 GB, free: 10.35 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.4252, allocations: 0 / 0.5362 GB, free: 10.35 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.4252, allocations: 0 / 0.5362 GB, free: 10.35 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.4252, allocations: 1.062 kB / 0.5362 GB, free: 10.35 MB / 398.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.0004528/0.4256, allocations: 430.5 kB / 0.5366 GB, free: 9.906 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.4257, allocations: 13.95 kB / 0.5366 GB, free: 9.902 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.474e-05/0.4257, allocations: 0.9375 kB / 0.5366 GB, free: 9.902 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.41e-05/0.4258, allocations: 161.9 kB / 0.5367 GB, free: 9.707 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.957e-06/0.4258, allocations: 384 / 0.5367 GB, free: 9.707 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.218e-05/0.4259, allocations: 1.875 kB / 0.5367 GB, free: 9.707 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.674e-05/0.426, allocations: 31.45 kB / 0.5368 GB, free: 9.672 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.426, allocations: 3.938 kB / 0.5368 GB, free: 9.668 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.063e-05/0.426, allocations: 1 kB / 0.5368 GB, free: 9.668 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.426, allocations: 3.938 kB / 0.5368 GB, free: 9.664 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.969e-05/0.426, allocations: 5.969 kB / 0.5368 GB, free: 9.66 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001429/0.4262, allocations: 150.7 kB / 0.5369 GB, free: 9.465 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.374e-05/0.4262, allocations: 16.8 kB / 0.5369 GB, free: 9.441 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.641e-05/0.4263, allocations: 9.984 kB / 0.5369 GB, free: 9.43 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.44e-06/0.4263, allocations: 0 / 0.5369 GB, free: 9.43 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.187e-05/0.4263, allocations: 62.33 kB / 0.537 GB, free: 9.355 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 2.314e-06/0.4263, allocations: 4 kB / 0.537 GB, free: 9.352 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001729/0.4265, allocations: 71.73 kB / 0.5371 GB, free: 9.277 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.107e-05/0.4266, allocations: 77.11 kB / 0.5372 GB, free: 9.184 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.772e-05/0.4266, allocations: 89.86 kB / 0.5372 GB, free: 9.086 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.235e-05/0.4266, allocations: 26.95 kB / 0.5373 GB, free: 9.055 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.539e-05/0.4267, allocations: 80.14 kB / 0.5373 GB, free: 8.973 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.908e-05/0.4267, allocations: 0.9375 kB / 0.5373 GB, free: 8.973 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.581e-05/0.4267, allocations: 11.91 kB / 0.5374 GB, free: 8.957 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.4268, allocations: 320.2 kB / 0.5377 GB, free: 8.637 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.131e-05/0.4269, allocations: 3.984 kB / 0.5377 GB, free: 8.633 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.782e-06/0.4269, allocations: 1.5 kB / 0.5377 GB, free: 8.633 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.632e-05/0.4269, allocations: 63.11 kB / 0.5377 GB, free: 8.559 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.4269, allocations: 5.469 kB / 0.5377 GB, free: 8.555 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.583e-05/0.427, allocations: 61.47 kB / 0.5378 GB, free: 8.488 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.547e-05/0.427, allocations: 39 kB / 0.5378 GB, free: 8.449 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.4271, allocations: 1.375 kB / 0.5378 GB, free: 8.449 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.4271, allocations: 4.094 kB / 0.5378 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.61e-07/0.4271, allocations: 0 / 0.5378 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.4271, allocations: 1.344 kB / 0.5378 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.395e-05/0.4271, allocations: 0 / 0.5378 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.096e-06/0.4271, allocations: 5.406 kB / 0.5378 GB, free: 8.441 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 7.748e-05/0.4272, allocations: 134.1 kB / 0.538 GB, free: 8.297 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.07e-05/0.4272, allocations: 7.844 kB / 0.538 GB, free: 8.289 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.766e-06/0.4272, allocations: 4.312 kB / 0.538 GB, free: 8.289 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.4272, allocations: 3.984 kB / 0.538 GB, free: 8.285 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.4273, allocations: 4 kB / 0.538 GB, free: 8.281 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.4273, allocations: 1.281 kB / 0.538 GB, free: 8.281 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.923e-05/0.4274, allocations: 147 kB / 0.5381 GB, free: 8.09 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.4274, allocations: 0 / 0.5381 GB, free: 8.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.293e-06/0.4274, allocations: 5.219 kB / 0.5381 GB, free: 8.086 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.4274, allocations: 3.938 kB / 0.5381 GB, free: 8.082 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.432e-06/0.4274, allocations: 5.312 kB / 0.5381 GB, free: 8.078 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.01e-07/0.4274, allocations: 0 / 0.5381 GB, free: 8.078 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.82e-07/0.4274, allocations: 0 / 0.5381 GB, free: 8.078 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.513e-05/0.4275, allocations: 94.11 kB / 0.5382 GB, free: 7.973 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.145e-05/0.4275, allocations: 78.33 kB / 0.5383 GB, free: 7.879 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.451e-05/0.4276, allocations: 5.094 kB / 0.5383 GB, free: 7.875 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.326e-06/0.4276, allocations: 0 / 0.5383 GB, free: 7.875 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.3e-05/0.4276, allocations: 5.078 kB / 0.5383 GB, free: 7.871 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.679e-06/0.4276, allocations: 5.188 kB / 0.5383 GB, free: 7.867 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.257e-05/0.4276, allocations: 75.28 kB / 0.5384 GB, free: 7.793 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4276, allocations: 0 / 0.5384 GB, free: 7.793 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004807/0.4281, allocations: 164.8 kB / 0.5385 GB, free: 7.738 MB / 398.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.000791/0.4289, allocations: 341.1 kB / 0.5389 GB, free: 7.543 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001026/0.429, allocations: 65.09 kB / 0.5389 GB, free: 7.473 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.429, allocations: 0 / 0.5389 GB, free: 7.473 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.084e-05/0.4291, allocations: 62.89 kB / 0.539 GB, free: 7.402 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001267/0.4292, allocations: 2.156 kB / 0.539 GB, free: 7.402 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002005/0.4294, allocations: 98.81 kB / 0.5391 GB, free: 7.281 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002254/0.4296, allocations: 0.6701 MB / 0.5397 GB, free: 6.586 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.619e-05/0.4297, allocations: 8.656 kB / 0.5398 GB, free: 6.578 MB / 398.1 MB Notification: Performance of SimCode: time 2.5e-07/0.4297, allocations: 0 / 0.5398 GB, free: 6.578 MB / 398.1 MB Notification: Performance of Templates: time 0.007316/0.437, allocations: 3.386 MB / 0.5431 GB, free: 4.898 MB / 398.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