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.001699/0.001699, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002064/0.002064, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.488/1.488, allocations: 227.4 MB / 247 MB, free: 10.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2437/0.2437, allocations: 46.13 MB / 344.3 MB, free: 11.44 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002473/0.002473, allocations: 75.88 kB / 480.9 MB, free: 4.504 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3974/0.3999, allocations: 62.45 MB / 0.5306 GB, free: 13.36 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001629/0.4015, allocations: 498.4 kB / 0.5311 GB, free: 13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003586/0.4051, allocations: 2.361 MB / 0.5334 GB, free: 11.14 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.746e-05/0.4052, allocations: 0 / 0.5334 GB, free: 11.14 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.645e-05/0.4052, allocations: 0 / 0.5334 GB, free: 11.14 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.562e-06/0.4052, allocations: 0.875 kB / 0.5334 GB, free: 11.14 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.001629/0.4069, allocations: 0.5678 MB / 0.5339 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.702e-05/0.4069, allocations: 1.594 kB / 0.5339 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.378e-05/0.407, allocations: 1.219 kB / 0.5339 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.778e-05/0.407, allocations: 5 kB / 0.5339 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.02e-05/0.407, allocations: 9.297 kB / 0.5339 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.262e-06/0.407, allocations: 4 kB / 0.534 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00121/0.4083, allocations: 0.7011 MB / 0.5346 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.151e-05/0.4083, allocations: 3.984 kB / 0.5346 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.994e-05/0.4083, allocations: 1.375 kB / 0.5346 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007698/0.4091, allocations: 455.1 kB / 0.5351 GB, free: 10.12 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.4091, allocations: 3.938 kB / 0.5351 GB, free: 10.12 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4091, allocations: 0 / 0.5351 GB, free: 10.12 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.383e-05/0.4091, allocations: 4.984 kB / 0.5351 GB, free: 10.12 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.0005449/0.4097, allocations: 437.5 kB / 0.5355 GB, free: 9.664 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.4097, allocations: 9.25 kB / 0.5355 GB, free: 9.664 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.353e-05/0.4098, allocations: 35.95 kB / 0.5355 GB, free: 9.621 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.536e-05/0.4098, allocations: 2.344 kB / 0.5355 GB, free: 9.621 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001571/0.41, allocations: 168.3 kB / 0.5357 GB, free: 9.418 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.213e-05/0.41, allocations: 5.5 kB / 0.5357 GB, free: 9.414 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.218e-05/0.41, allocations: 5.484 kB / 0.5357 GB, free: 9.41 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.925e-05/0.4101, allocations: 40.48 kB / 0.5358 GB, free: 9.367 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.874e-06/0.4101, allocations: 1.125 kB / 0.5358 GB, free: 9.367 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.085e-06/0.4101, allocations: 0 / 0.5358 GB, free: 9.367 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.4102, allocations: 1.25 kB / 0.5358 GB, free: 9.367 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.178e-05/0.4102, allocations: 1.344 kB / 0.5358 GB, free: 9.367 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002807/0.4105, allocations: 232.1 kB / 0.536 GB, free: 9.094 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.546e-05/0.4105, allocations: 28.48 kB / 0.536 GB, free: 9.062 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.93e-05/0.4106, allocations: 12.69 kB / 0.536 GB, free: 9.051 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.448e-06/0.4106, allocations: 0 / 0.536 GB, free: 9.051 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.568e-05/0.4106, allocations: 61.39 kB / 0.5361 GB, free: 8.977 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.232e-06/0.4107, allocations: 1 kB / 0.5361 GB, free: 8.977 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002005/0.4109, allocations: 70.45 kB / 0.5361 GB, free: 8.906 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001453/0.411, allocations: 86.27 kB / 0.5362 GB, free: 8.805 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.094e-05/0.4111, allocations: 89.86 kB / 0.5363 GB, free: 8.707 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.699e-05/0.4111, allocations: 26.95 kB / 0.5363 GB, free: 8.676 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.137e-05/0.4112, allocations: 84.12 kB / 0.5364 GB, free: 8.59 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.053e-05/0.4112, allocations: 5.047 kB / 0.5364 GB, free: 8.586 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.05e-05/0.4112, allocations: 12.19 kB / 0.5364 GB, free: 8.57 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.4114, allocations: 315.8 kB / 0.5367 GB, free: 8.254 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.341e-05/0.4114, allocations: 2.219 kB / 0.5367 GB, free: 8.254 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.083e-05/0.4114, allocations: 9.188 kB / 0.5367 GB, free: 8.246 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.15e-05/0.4115, allocations: 65.64 kB / 0.5368 GB, free: 8.172 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.4115, allocations: 9.312 kB / 0.5368 GB, free: 8.164 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.738e-05/0.4116, allocations: 60.31 kB / 0.5369 GB, free: 8.102 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.733e-05/0.4116, allocations: 39.44 kB / 0.5369 GB, free: 8.062 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.4117, allocations: 0 / 0.5369 GB, free: 8.062 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.199e-05/0.4117, allocations: 1.188 kB / 0.5369 GB, free: 8.062 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.357e-05/0.4117, allocations: 0 / 0.5369 GB, free: 8.062 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.4117, allocations: 1.25 kB / 0.5369 GB, free: 8.062 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.647e-05/0.4117, allocations: 4 kB / 0.5369 GB, free: 8.059 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.472e-06/0.4117, allocations: 1.188 kB / 0.5369 GB, free: 8.059 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.0001108/0.4118, allocations: 145.7 kB / 0.5371 GB, free: 7.902 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.324e-05/0.4119, allocations: 5.062 kB / 0.5371 GB, free: 7.898 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.424e-05/0.4119, allocations: 4.25 kB / 0.5371 GB, free: 7.898 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-06/0.4119, allocations: 0 / 0.5371 GB, free: 7.898 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.4119, allocations: 5.234 kB / 0.5371 GB, free: 7.895 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.4119, allocations: 3.938 kB / 0.5371 GB, free: 7.891 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003096/0.4122, allocations: 302.5 kB / 0.5374 GB, free: 7.547 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.696e-06/0.4123, allocations: 0 / 0.5374 GB, free: 7.547 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.418e-06/0.4123, allocations: 5.094 kB / 0.5374 GB, free: 7.543 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.4123, allocations: 0 / 0.5374 GB, free: 7.543 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.263e-06/0.4123, allocations: 1.094 kB / 0.5374 GB, free: 7.543 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.4123, allocations: 0 / 0.5374 GB, free: 7.543 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.4123, allocations: 5.109 kB / 0.5374 GB, free: 7.539 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000154/0.4125, allocations: 179 kB / 0.5375 GB, free: 7.355 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.785e-05/0.4125, allocations: 78.27 kB / 0.5376 GB, free: 7.262 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.244e-05/0.4125, allocations: 0.75 kB / 0.5376 GB, free: 7.262 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.237e-05/0.4126, allocations: 1.031 kB / 0.5376 GB, free: 7.262 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.951e-05/0.4126, allocations: 5.109 kB / 0.5376 GB, free: 7.258 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.536e-06/0.4126, allocations: 1.062 kB / 0.5376 GB, free: 7.258 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.281e-05/0.4127, allocations: 75.28 kB / 0.5377 GB, free: 7.184 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4127, allocations: 0 / 0.5377 GB, free: 7.184 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005465/0.4132, allocations: 163 kB / 0.5379 GB, free: 7.129 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.001202/0.4144, allocations: 0.9571 MB / 0.5388 GB, free: 6.305 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001245/0.4146, allocations: 67.92 kB / 0.5389 GB, free: 6.234 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.4146, allocations: 0 / 0.5389 GB, free: 6.234 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.275e-05/0.4146, allocations: 67.66 kB / 0.5389 GB, free: 6.16 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001891/0.4148, allocations: 2.688 kB / 0.5389 GB, free: 6.16 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001063/0.4159, allocations: 1.203 MB / 0.5401 GB, free: 4.934 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003156/0.4162, allocations: 0.6749 MB / 0.5408 GB, free: 4.234 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.051e-05/0.4162, allocations: 0 / 0.5408 GB, free: 4.234 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.053e-05/0.4162, allocations: 9.469 kB / 0.5408 GB, free: 4.227 MB / 398.1 MB Notification: Performance of SimCode: time 2.31e-07/0.4163, allocations: 0 / 0.5408 GB, free: 4.227 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0304/0.4467, allocations: 4.631 MB / 0.5453 GB, free: 1.777 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.107/8.554, allocations: 10.17 kB / 0.5453 GB, free: 1.77 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 & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_trunk_ModelicaTest_Math_Random_TestTruncatedDistributions.fmu > ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.Random.TestTruncatedDistributions_res.csv","/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