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: "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00127/0.00127, allocations: 118.7 kB / 17.78 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001603/0.001603, allocations: 203.9 kB / 18.74 MB, free: 4.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.478/1.478, allocations: 227.4 MB / 247 MB, free: 10.39 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2379/0.2379, allocations: 46.12 MB / 344.4 MB, free: 11.39 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002238/0.002239, allocations: 79.86 kB / 480.9 MB, free: 4.453 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3919/0.3942, allocations: 62.44 MB / 0.5306 GB, free: 13.32 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001727/0.396, allocations: 0.5065 MB / 0.5311 GB, free: 12.95 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00361/0.3996, allocations: 2.355 MB / 0.5334 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.328e-05/0.3996, allocations: 0 / 0.5334 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.681e-05/0.3996, allocations: 0 / 0.5334 GB, free: 11.09 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.683e-06/0.3997, allocations: 6.438 kB / 0.5334 GB, free: 11.09 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.00178/0.4015, allocations: 0.5672 MB / 0.534 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.169e-05/0.4015, allocations: 1.375 kB / 0.534 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.756e-05/0.4016, allocations: 1.375 kB / 0.534 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.977e-05/0.4016, allocations: 9.375 kB / 0.534 GB, free: 10.75 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.769e-05/0.4016, allocations: 3.938 kB / 0.534 GB, free: 10.74 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.953e-06/0.4016, allocations: 0 / 0.534 GB, free: 10.74 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001309/0.403, allocations: 0.7009 MB / 0.5347 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.895e-06/0.403, allocations: 1.125 kB / 0.5347 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.915e-05/0.403, allocations: 1.219 kB / 0.5347 GB, free: 10.35 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007368/0.4038, allocations: 462.8 kB / 0.5351 GB, free: 10.07 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.4038, allocations: 0 / 0.5351 GB, free: 10.07 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.4038, allocations: 0 / 0.5351 GB, free: 10.07 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.882e-06/0.4038, allocations: 0 / 0.5351 GB, free: 10.07 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.0005114/0.4043, allocations: 442.4 kB / 0.5355 GB, free: 9.617 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.4043, allocations: 9.625 kB / 0.5355 GB, free: 9.617 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.668e-05/0.4044, allocations: 40.08 kB / 0.5356 GB, free: 9.57 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.377e-05/0.4044, allocations: 0.9375 kB / 0.5356 GB, free: 9.57 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001167/0.4046, allocations: 164.4 kB / 0.5357 GB, free: 9.371 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.929e-06/0.4046, allocations: 5.734 kB / 0.5357 GB, free: 9.367 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.321e-05/0.4046, allocations: 1.75 kB / 0.5357 GB, free: 9.367 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001154/0.4047, allocations: 45.59 kB / 0.5358 GB, free: 9.32 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.235e-06/0.4047, allocations: 0 / 0.5358 GB, free: 9.32 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.305e-06/0.4047, allocations: 0 / 0.5358 GB, free: 9.32 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.531e-06/0.4048, allocations: 1.688 kB / 0.5358 GB, free: 9.32 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.11e-05/0.4048, allocations: 1.031 kB / 0.5358 GB, free: 9.32 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002549/0.405, allocations: 236.7 kB / 0.536 GB, free: 9.043 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.627e-05/0.4051, allocations: 27.77 kB / 0.536 GB, free: 9.012 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.599e-05/0.4051, allocations: 12.08 kB / 0.5361 GB, free: 9 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.521e-06/0.4052, allocations: 1.125 kB / 0.5361 GB, free: 9 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.711e-05/0.4052, allocations: 57.45 kB / 0.5361 GB, free: 8.93 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.4052, allocations: 0 / 0.5361 GB, free: 8.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001966/0.4054, allocations: 79.06 kB / 0.5362 GB, free: 8.852 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.747e-05/0.4055, allocations: 78.45 kB / 0.5363 GB, free: 8.758 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.736e-05/0.4055, allocations: 89.86 kB / 0.5363 GB, free: 8.66 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.6e-05/0.4056, allocations: 25.7 kB / 0.5364 GB, free: 8.629 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.836e-05/0.4056, allocations: 81.42 kB / 0.5364 GB, free: 8.547 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.449e-05/0.4056, allocations: 9.359 kB / 0.5365 GB, free: 8.539 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.227e-05/0.4057, allocations: 15.3 kB / 0.5365 GB, free: 8.52 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.4058, allocations: 315.7 kB / 0.5368 GB, free: 8.203 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.203e-05/0.4058, allocations: 6.875 kB / 0.5368 GB, free: 8.199 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.665e-06/0.4058, allocations: 1.328 kB / 0.5368 GB, free: 8.199 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.391e-05/0.4059, allocations: 65.48 kB / 0.5368 GB, free: 8.125 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.4059, allocations: 3.938 kB / 0.5368 GB, free: 8.121 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.247e-05/0.406, allocations: 69.95 kB / 0.5369 GB, free: 8.051 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.681e-05/0.4061, allocations: 30.33 kB / 0.5369 GB, free: 8.02 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.739e-06/0.4061, allocations: 1.562 kB / 0.5369 GB, free: 8.02 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.515e-05/0.4061, allocations: 0 / 0.5369 GB, free: 8.02 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.477e-05/0.4061, allocations: 4.094 kB / 0.5369 GB, free: 8.016 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.4061, allocations: 5.531 kB / 0.537 GB, free: 8.012 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.628e-05/0.4062, allocations: 3.938 kB / 0.537 GB, free: 8.008 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.504e-06/0.4062, allocations: 1.562 kB / 0.537 GB, free: 8.008 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: 2 ($outputAlias_result,result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * 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 0.0001063/0.4063, allocations: 149.3 kB / 0.5371 GB, free: 7.848 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.474e-05/0.4063, allocations: 1.312 kB / 0.5371 GB, free: 7.848 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.275e-05/0.4063, allocations: 3.125 kB / 0.5371 GB, free: 7.848 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.4063, allocations: 1.531 kB / 0.5371 GB, free: 7.848 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.4063, allocations: 0 / 0.5371 GB, free: 7.848 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.4064, allocations: 7.938 kB / 0.5371 GB, free: 7.84 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003005/0.4067, allocations: 298.9 kB / 0.5374 GB, free: 7.5 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.4067, allocations: 0 / 0.5374 GB, free: 7.5 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.252e-06/0.4067, allocations: 5.484 kB / 0.5374 GB, free: 7.496 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.472e-06/0.4067, allocations: 0 / 0.5374 GB, free: 7.496 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.424e-06/0.4067, allocations: 1.469 kB / 0.5374 GB, free: 7.496 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.4067, allocations: 0 / 0.5374 GB, free: 7.496 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.4067, allocations: 3.938 kB / 0.5374 GB, free: 7.492 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001386/0.4069, allocations: 175.7 kB / 0.5376 GB, free: 7.312 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.923e-05/0.4069, allocations: 77.11 kB / 0.5376 GB, free: 7.219 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.377e-05/0.4069, allocations: 2.156 kB / 0.5376 GB, free: 7.219 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.411e-05/0.407, allocations: 0 / 0.5376 GB, free: 7.219 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.968e-05/0.407, allocations: 0.9688 kB / 0.5377 GB, free: 7.219 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.442e-06/0.407, allocations: 9.094 kB / 0.5377 GB, free: 7.211 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.285e-05/0.407, allocations: 76.28 kB / 0.5377 GB, free: 7.137 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4071, allocations: 0 / 0.5377 GB, free: 7.137 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005391/0.4076, allocations: 166.6 kB / 0.5379 GB, free: 7.078 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: 2 (result,$outputAlias_result) * Number of discrete states: 1 ($outputAlias_result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * 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.001191/0.4088, allocations: 0.952 MB / 0.5388 GB, free: 6.254 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001235/0.4089, allocations: 63.19 kB / 0.5389 GB, free: 6.188 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.4089, allocations: 0 / 0.5389 GB, free: 6.188 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.561e-05/0.409, allocations: 57.22 kB / 0.5389 GB, free: 6.125 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002114/0.4092, allocations: 5.391 kB / 0.5389 GB, free: 6.125 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001064/0.4103, allocations: 1.212 MB / 0.5401 GB, free: 4.891 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000296/0.4106, allocations: 0.6753 MB / 0.5408 GB, free: 4.191 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.127e-05/0.4106, allocations: 0 / 0.5408 GB, free: 4.191 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.988e-05/0.4106, allocations: 13.81 kB / 0.5408 GB, free: 4.18 MB / 398.1 MB Notification: Performance of SimCode: time 2.21e-07/0.4106, allocations: 0 / 0.5408 GB, free: 4.18 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.029/0.4397, allocations: 4.628 MB / 0.5453 GB, free: 1.734 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.168/8.608, allocations: 14.08 kB / 0.5453 GB, free: 1.723 MB / 398.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_Random_TestTruncatedDistributions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_Random_TestTruncatedDistributions.fmu > 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