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.001185/0.001185, allocations: 122.2 kB / 17.78 MB, free: 5.352 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001136/0.001136, allocations: 206 kB / 18.73 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.387/1.387, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2303/0.2303, allocations: 46.11 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001523/0.001523, allocations: 75.88 kB / 480.8 MB, free: 4.559 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3553/0.3568, allocations: 62.44 MB / 0.5305 GB, free: 13.39 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001599/0.3585, allocations: 0.4921 MB / 0.531 GB, free: 13.02 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003216/0.3617, allocations: 2.358 MB / 0.5333 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.581e-05/0.3618, allocations: 0 / 0.5333 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.357e-05/0.3618, allocations: 1.375 kB / 0.5333 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.202e-06/0.3618, allocations: 0 / 0.5333 GB, free: 11.16 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.001527/0.3633, allocations: 0.5726 MB / 0.5338 GB, free: 10.83 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.026e-05/0.3634, allocations: 9.188 kB / 0.5339 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.499e-05/0.3634, allocations: 0.9688 kB / 0.5339 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.442e-05/0.3634, allocations: 1.406 kB / 0.5339 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.878e-05/0.3635, allocations: 3.938 kB / 0.5339 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.552e-06/0.3635, allocations: 1.594 kB / 0.5339 GB, free: 10.82 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001192/0.3647, allocations: 0.7047 MB / 0.5346 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.875e-06/0.3647, allocations: 0 / 0.5346 GB, free: 10.42 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.501e-05/0.3647, allocations: 9.328 kB / 0.5346 GB, free: 10.41 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007185/0.3655, allocations: 451.3 kB / 0.535 GB, free: 10.15 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.3655, allocations: 0 / 0.535 GB, free: 10.15 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.3655, allocations: 0 / 0.535 GB, free: 10.15 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.092e-06/0.3655, allocations: 0 / 0.535 GB, free: 10.15 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.0004772/0.366, allocations: 445.8 kB / 0.5354 GB, free: 9.688 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/0.366, allocations: 9.875 kB / 0.5354 GB, free: 9.688 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.427e-05/0.3661, allocations: 35.67 kB / 0.5355 GB, free: 9.645 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.762e-05/0.3661, allocations: 1.938 kB / 0.5355 GB, free: 9.645 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.606e-05/0.3662, allocations: 168.3 kB / 0.5356 GB, free: 9.441 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.101e-05/0.3662, allocations: 1.625 kB / 0.5356 GB, free: 9.441 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.015e-06/0.3663, allocations: 1.344 kB / 0.5356 GB, free: 9.441 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001135/0.3664, allocations: 37.17 kB / 0.5357 GB, free: 9.402 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.745e-06/0.3664, allocations: 3.938 kB / 0.5357 GB, free: 9.398 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.244e-06/0.3664, allocations: 5.031 kB / 0.5357 GB, free: 9.395 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.998e-06/0.3664, allocations: 0 / 0.5357 GB, free: 9.395 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.042e-05/0.3664, allocations: 2.219 kB / 0.5357 GB, free: 9.395 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002672/0.3667, allocations: 232.3 kB / 0.5359 GB, free: 9.121 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.903e-05/0.3668, allocations: 31.72 kB / 0.5359 GB, free: 9.086 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.527e-05/0.3668, allocations: 13.56 kB / 0.5359 GB, free: 9.074 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.298e-06/0.3668, allocations: 4 kB / 0.5359 GB, free: 9.07 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.005e-05/0.3669, allocations: 61.3 kB / 0.536 GB, free: 8.996 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.122e-06/0.3669, allocations: 1.125 kB / 0.536 GB, free: 8.996 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002029/0.3671, allocations: 70.73 kB / 0.5361 GB, free: 8.926 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.397e-05/0.3672, allocations: 78.27 kB / 0.5361 GB, free: 8.832 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.428e-05/0.3672, allocations: 93.86 kB / 0.5362 GB, free: 8.73 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.652e-05/0.3672, allocations: 25.7 kB / 0.5363 GB, free: 8.699 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.727e-05/0.3673, allocations: 85.39 kB / 0.5363 GB, free: 8.613 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.951e-05/0.3673, allocations: 5.141 kB / 0.5363 GB, free: 8.609 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.071e-05/0.3673, allocations: 11.84 kB / 0.5364 GB, free: 8.594 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.3674, allocations: 312 kB / 0.5367 GB, free: 8.281 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.337e-05/0.3675, allocations: 5.125 kB / 0.5367 GB, free: 8.277 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.137e-06/0.3675, allocations: 6.281 kB / 0.5367 GB, free: 8.273 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.175e-05/0.3675, allocations: 61.64 kB / 0.5367 GB, free: 8.203 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.105e-06/0.3676, allocations: 7.875 kB / 0.5367 GB, free: 8.195 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.3e-05/0.3676, allocations: 73.28 kB / 0.5368 GB, free: 8.121 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.304e-05/0.3677, allocations: 37.44 kB / 0.5368 GB, free: 8.086 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.3677, allocations: 1.031 kB / 0.5368 GB, free: 8.086 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.238e-05/0.3677, allocations: 0 / 0.5368 GB, free: 8.086 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.491e-05/0.3677, allocations: 1.094 kB / 0.5368 GB, free: 8.086 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.598e-06/0.3677, allocations: 0 / 0.5368 GB, free: 8.086 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.595e-05/0.3678, allocations: 1.094 kB / 0.5368 GB, free: 8.086 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.777e-06/0.3678, allocations: 1.062 kB / 0.5368 GB, free: 8.086 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 9.177e-05/0.3679, allocations: 145.6 kB / 0.537 GB, free: 7.93 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.308e-05/0.3679, allocations: 4.938 kB / 0.537 GB, free: 7.926 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.379e-05/0.3679, allocations: 4.188 kB / 0.537 GB, free: 7.926 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.052e-06/0.3679, allocations: 0 / 0.537 GB, free: 7.926 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.3679, allocations: 1.094 kB / 0.537 GB, free: 7.926 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.3679, allocations: 3.984 kB / 0.537 GB, free: 7.922 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002493/0.3682, allocations: 310 kB / 0.5373 GB, free: 7.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.3682, allocations: 1.094 kB / 0.5373 GB, free: 7.57 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.028e-06/0.3682, allocations: 0 / 0.5373 GB, free: 7.57 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.3682, allocations: 1.062 kB / 0.5373 GB, free: 7.57 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.993e-06/0.3682, allocations: 5.125 kB / 0.5373 GB, free: 7.566 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.3682, allocations: 0 / 0.5373 GB, free: 7.566 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.3683, allocations: 0 / 0.5373 GB, free: 7.566 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001163/0.3684, allocations: 175.2 kB / 0.5375 GB, free: 7.387 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.012e-05/0.3684, allocations: 78.27 kB / 0.5375 GB, free: 7.293 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.48e-05/0.3684, allocations: 1.375 kB / 0.5375 GB, free: 7.293 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.534e-05/0.3685, allocations: 1.156 kB / 0.5375 GB, free: 7.293 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.687e-05/0.3685, allocations: 8.016 kB / 0.5375 GB, free: 7.285 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.336e-06/0.3685, allocations: 1.125 kB / 0.5375 GB, free: 7.285 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.698e-05/0.3686, allocations: 76.62 kB / 0.5376 GB, free: 7.211 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3686, allocations: 0 / 0.5376 GB, free: 7.211 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005529/0.3691, allocations: 163 kB / 0.5378 GB, free: 7.156 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.001045/0.3702, allocations: 0.9517 MB / 0.5387 GB, free: 6.332 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001134/0.3703, allocations: 63.3 kB / 0.5388 GB, free: 6.266 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.3703, allocations: 1.125 kB / 0.5388 GB, free: 6.266 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.558e-05/0.3704, allocations: 60.41 kB / 0.5388 GB, free: 6.199 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001887/0.3705, allocations: 7.578 kB / 0.5388 GB, free: 6.195 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009369/0.3715, allocations: 1.212 MB / 0.54 GB, free: 4.961 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002239/0.3717, allocations: 0.6709 MB / 0.5407 GB, free: 4.266 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.868e-06/0.3717, allocations: 1.094 kB / 0.5407 GB, free: 4.266 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.962e-05/0.3718, allocations: 9.438 kB / 0.5407 GB, free: 4.258 MB / 398.1 MB Notification: Performance of SimCode: time 2e-07/0.3718, allocations: 0 / 0.5407 GB, free: 4.258 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0244/0.3962, allocations: 4.619 MB / 0.5452 GB, free: 1.816 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.606/8.002, allocations: 10.02 kB / 0.5452 GB, free: 1.809 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