Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4_1_0-beta_om_ModelicaTest_Math_Random_TestTruncatedDistributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.Random.TestTruncatedDistributions,fileNamePrefix="ModelicaTest_4_1_0-beta_om_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.001371/0.001371, allocations: 118.2 kB / 17.78 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001507/0.001507, allocations: 202 kB / 18.73 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.462/1.462, allocations: 227.4 MB / 247 MB, free: 10.4 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2322/0.2322, allocations: 46.12 MB / 344.4 MB, free: 11.44 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002452/0.002452, allocations: 75.88 kB / 480.9 MB, free: 4.52 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.352/0.3545, allocations: 62.45 MB / 0.5306 GB, free: 13.38 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.Random.TestTruncatedDistributions): time 0.001655/0.3562, allocations: 0.507 MB / 0.5311 GB, free: 13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003574/0.3598, allocations: 2.358 MB / 0.5334 GB, free: 11.14 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.654e-05/0.3598, allocations: 0 / 0.5334 GB, free: 11.14 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.657e-05/0.3599, allocations: 0 / 0.5334 GB, free: 11.14 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.25e-06/0.3599, allocations: 0 / 0.5334 GB, free: 11.14 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.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.001598/0.3615, allocations: 0.5727 MB / 0.534 GB, free: 10.81 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.775e-05/0.3615, allocations: 1.844 kB / 0.534 GB, free: 10.81 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.361e-05/0.3616, allocations: 1.75 kB / 0.534 GB, free: 10.81 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.818e-05/0.3616, allocations: 7.984 kB / 0.534 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.927e-05/0.3616, allocations: 9.969 kB / 0.534 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.031e-06/0.3617, allocations: 0 / 0.534 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001191/0.3629, allocations: 0.7001 MB / 0.5347 GB, free: 10.4 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.856e-06/0.3629, allocations: 0 / 0.5347 GB, free: 10.4 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 1.776e-05/0.3629, allocations: 1.375 kB / 0.5347 GB, free: 10.4 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006935/0.3636, allocations: 455.3 kB / 0.5351 GB, free: 10.13 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.594e-06/0.3636, allocations: 3.984 kB / 0.5351 GB, free: 10.13 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3636, allocations: 0 / 0.5351 GB, free: 10.13 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.651e-06/0.3636, allocations: 1.219 kB / 0.5351 GB, free: 10.13 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.0004988/0.3641, allocations: 437.8 kB / 0.5355 GB, free: 9.676 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.366e-05/0.3642, allocations: 9.281 kB / 0.5355 GB, free: 9.676 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.993e-05/0.3643, allocations: 43.55 kB / 0.5356 GB, free: 9.625 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.956e-05/0.3643, allocations: 5.734 kB / 0.5356 GB, free: 9.621 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001094/0.3644, allocations: 160.4 kB / 0.5357 GB, free: 9.426 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.118e-05/0.3644, allocations: 5.188 kB / 0.5357 GB, free: 9.422 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.253e-06/0.3644, allocations: 1.344 kB / 0.5357 GB, free: 9.422 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.44e-05/0.3645, allocations: 33.67 kB / 0.5358 GB, free: 9.387 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/0.3646, allocations: 7.922 kB / 0.5358 GB, free: 9.379 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.003e-06/0.3646, allocations: 1.094 kB / 0.5358 GB, free: 9.379 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.409e-06/0.3646, allocations: 0 / 0.5358 GB, free: 9.379 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.03e-05/0.3646, allocations: 2.812 kB / 0.5358 GB, free: 9.379 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000283/0.3649, allocations: 239.4 kB / 0.536 GB, free: 9.098 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.02e-05/0.365, allocations: 23.92 kB / 0.536 GB, free: 9.07 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.907e-05/0.365, allocations: 13.84 kB / 0.536 GB, free: 9.059 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.415e-06/0.365, allocations: 3.938 kB / 0.536 GB, free: 9.055 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.875e-05/0.3651, allocations: 57.42 kB / 0.5361 GB, free: 8.984 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.3651, allocations: 0 / 0.5361 GB, free: 8.984 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001884/0.3653, allocations: 75.23 kB / 0.5362 GB, free: 8.91 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.211e-05/0.3653, allocations: 82.42 kB / 0.5363 GB, free: 8.812 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.675e-05/0.3654, allocations: 89.86 kB / 0.5363 GB, free: 8.715 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.513e-05/0.3654, allocations: 27.02 kB / 0.5364 GB, free: 8.684 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.054e-05/0.3655, allocations: 80.14 kB / 0.5364 GB, free: 8.602 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.464e-05/0.3655, allocations: 9.141 kB / 0.5364 GB, free: 8.594 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.867e-05/0.3655, allocations: 11.84 kB / 0.5365 GB, free: 8.578 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.3657, allocations: 311.9 kB / 0.5368 GB, free: 8.266 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.502e-05/0.3657, allocations: 5.125 kB / 0.5368 GB, free: 8.262 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.023e-05/0.3657, allocations: 6.156 kB / 0.5368 GB, free: 8.258 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.864e-05/0.3658, allocations: 65.92 kB / 0.5368 GB, free: 8.184 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.3658, allocations: 3.938 kB / 0.5368 GB, free: 8.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 8.257e-05/0.3659, allocations: 69.5 kB / 0.5369 GB, free: 8.109 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.969e-05/0.3659, allocations: 37.94 kB / 0.5369 GB, free: 8.074 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.148e-06/0.3659, allocations: 0 / 0.5369 GB, free: 8.074 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.181e-05/0.3659, allocations: 0.9688 kB / 0.5369 GB, free: 8.074 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.412e-05/0.366, allocations: 0 / 0.5369 GB, free: 8.074 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.558e-06/0.366, allocations: 5.562 kB / 0.5369 GB, free: 8.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.466e-05/0.366, allocations: 0 / 0.5369 GB, free: 8.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.133e-06/0.366, allocations: 0.9062 kB / 0.5369 GB, free: 8.07 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.722e-05/0.3661, allocations: 137.8 kB / 0.5371 GB, free: 7.922 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.068e-05/0.3661, allocations: 1.094 kB / 0.5371 GB, free: 7.922 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.198e-05/0.3661, allocations: 4.281 kB / 0.5371 GB, free: 7.922 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.3662, allocations: 0 / 0.5371 GB, free: 7.922 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.01e-05/0.3662, allocations: 5.172 kB / 0.5371 GB, free: 7.918 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.177e-05/0.3662, allocations: 0 / 0.5371 GB, free: 7.918 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002789/0.3665, allocations: 317.9 kB / 0.5374 GB, free: 7.559 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.297e-06/0.3665, allocations: 5.125 kB / 0.5374 GB, free: 7.555 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.617e-06/0.3665, allocations: 0 / 0.5374 GB, free: 7.555 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.3665, allocations: 1.156 kB / 0.5374 GB, free: 7.555 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.023e-06/0.3665, allocations: 0 / 0.5374 GB, free: 7.555 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.3665, allocations: 1.188 kB / 0.5374 GB, free: 7.555 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.3665, allocations: 0 / 0.5374 GB, free: 7.555 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001426/0.3667, allocations: 175.5 kB / 0.5376 GB, free: 7.375 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.495e-05/0.3667, allocations: 78.27 kB / 0.5376 GB, free: 7.281 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.191e-05/0.3667, allocations: 1.125 kB / 0.5376 GB, free: 7.281 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.735e-05/0.3668, allocations: 0 / 0.5376 GB, free: 7.281 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.769e-05/0.3668, allocations: 5.078 kB / 0.5376 GB, free: 7.277 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.821e-06/0.3668, allocations: 5.188 kB / 0.5376 GB, free: 7.273 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.203e-05/0.3669, allocations: 83.16 kB / 0.5377 GB, free: 7.191 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3669, allocations: 1.219 kB / 0.5377 GB, free: 7.191 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005121/0.3674, allocations: 162.2 kB / 0.5379 GB, free: 7.137 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.001179/0.3686, allocations: 0.9398 MB / 0.5388 GB, free: 6.328 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001144/0.3687, allocations: 70.83 kB / 0.5389 GB, free: 6.254 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.3687, allocations: 0 / 0.5389 GB, free: 6.254 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.304e-05/0.3688, allocations: 60.94 kB / 0.5389 GB, free: 6.188 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002016/0.369, allocations: 6.203 kB / 0.5389 GB, free: 6.184 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001077/0.3701, allocations: 1.211 MB / 0.5401 GB, free: 4.949 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003165/0.3704, allocations: 0.6715 MB / 0.5408 GB, free: 4.254 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 1.058e-05/0.3704, allocations: 0 / 0.5408 GB, free: 4.254 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.852e-05/0.3704, allocations: 8.812 kB / 0.5408 GB, free: 4.246 MB / 398.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3704, allocations: 5.375 kB / 0.5408 GB, free: 4.242 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0294/0.3998, allocations: 4.636 MB / 0.5453 GB, free: 1.805 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.224/8.624, allocations: 5.047 kB / 0.5453 GB, free: 1.805 MB / 398.1 MB (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.1.0-beta.om_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_4_1_0-beta_om_ModelicaTest_Math_Random_TestTruncatedDistributions.fmu > ModelicaTest_4.1.0-beta.om_ModelicaTest.Math.Random.TestTruncatedDistributions.pipe 2>&1)