Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.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) 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(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001361/0.001362, allocations: 99.09 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001352/0.001352, allocations: 201.5 kB / 17.9 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.449/1.449, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000375/0.0003752, allocations: 4 kB / 306.7 MB, free: 1.301 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.146/0.1464, allocations: 51.49 MB / 358.2 MB, free: 13.81 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.001984/0.1485, allocations: 1.262 MB / 359.5 MB, free: 12.54 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002041/0.1505, allocations: 1.408 MB / 360.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.625e-05/0.1506, allocations: 4 kB / 360.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.825e-05/0.1507, allocations: 7.875 kB / 360.9 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.941e-05/0.1508, allocations: 27.89 kB / 360.9 MB, free: 11.08 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom‘ contains a call to impure function ‘Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState‘. Notification: Performance of NFTyping.typeClassSections: time 0.0008372/0.1516, allocations: 295.2 kB / 361.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001157/0.1517, allocations: 83.78 kB / 361.3 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.277e-05/0.1518, allocations: 13.48 kB / 361.3 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.094e-05/0.1519, allocations: 47.83 kB / 361.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001229/0.152, allocations: 55.75 kB / 361.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.99e-05/0.152, allocations: 8 kB / 361.4 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005989/0.1526, allocations: 431.2 kB / 361.8 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.827e-05/0.1527, allocations: 31.89 kB / 361.8 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.436e-05/0.1528, allocations: 49.64 kB / 361.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003558/0.1531, allocations: 275.7 kB / 362.2 MB, free: 9.805 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.1531, allocations: 0 / 362.2 MB, free: 9.805 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1532, allocations: 0 / 362.2 MB, free: 9.805 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.95e-06/0.1532, allocations: 4 kB / 362.2 MB, free: 9.801 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0007168/0.1539, allocations: 490.6 kB / 362.6 MB, free: 9.273 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.1539, allocations: 8.031 kB / 362.7 MB, free: 9.266 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.353e-05/0.154, allocations: 50.45 kB / 362.7 MB, free: 9.207 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002248/0.1543, allocations: 31.8 kB / 362.7 MB, free: 9.176 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002143/0.1545, allocations: 208.4 kB / 362.9 MB, free: 8.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.555e-05/0.1545, allocations: 11.95 kB / 363 MB, free: 8.918 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.025e-05/0.1545, allocations: 4 kB / 363 MB, free: 8.914 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003121/0.1549, allocations: 136.1 kB / 363.1 MB, free: 8.766 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.168e-06/0.1549, allocations: 4 kB / 363.1 MB, free: 8.762 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.529e-05/0.1549, allocations: 4 kB / 363.1 MB, free: 8.758 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.1549, allocations: 0 / 363.1 MB, free: 8.758 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002327/0.1551, allocations: 75.94 kB / 363.2 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008865/0.156, allocations: 0.5594 MB / 363.7 MB, free: 8.066 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003923/0.1564, allocations: 172 kB / 363.9 MB, free: 7.871 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.13e-05/0.1565, allocations: 0 / 363.9 MB, free: 7.871 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003229/0.1568, allocations: 157.8 kB / 364.1 MB, free: 7.695 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.543e-06/0.1568, allocations: 4 kB / 364.1 MB, free: 7.691 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006829/0.1575, allocations: 424 kB / 364.5 MB, free: 7.234 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.387e-05/0.1576, allocations: 127 kB / 364.6 MB, free: 7.086 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001861/0.1578, allocations: 199.1 kB / 364.8 MB, free: 6.883 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.47e-05/0.1578, allocations: 45.7 kB / 364.8 MB, free: 6.832 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.049e-05/0.1579, allocations: 116.4 kB / 364.9 MB, free: 6.715 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.836e-05/0.158, allocations: 39.47 kB / 365 MB, free: 6.676 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.43e-05/0.158, allocations: 11.97 kB / 365 MB, free: 6.664 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.1582, allocations: 330.8 kB / 365.3 MB, free: 6.332 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002086/0.1584, allocations: 107.9 kB / 365.4 MB, free: 6.227 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002244/0.1586, allocations: 139.2 kB / 365.6 MB, free: 6.078 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002158/0.1588, allocations: 123.9 kB / 365.7 MB, free: 5.957 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.1588, allocations: 0 / 365.7 MB, free: 5.957 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005281/0.1594, allocations: 305.8 kB / 366 MB, free: 5.652 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.1594, allocations: 4 kB / 366 MB, free: 5.648 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-06/0.1594, allocations: 4.094 kB / 366 MB, free: 5.645 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.373e-05/0.1594, allocations: 4 kB / 366 MB, free: 5.641 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001592/0.1596, allocations: 39.84 kB / 366 MB, free: 5.602 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.448e-06/0.1596, allocations: 4 kB / 366 MB, free: 5.598 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.127e-05/0.1597, allocations: 27.7 kB / 366.1 MB, free: 5.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.827e-05/0.1597, allocations: 8 kB / 366.1 MB, free: 5.562 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 33 ($whenCondition2,$whenCondition1,n,$PRE.uniformNoise.state[1],uniformNoise.state[1],$PRE.uniformNoise.state[2],uniformNoise.state[2],$PRE.uniformNoise.state[3],uniformNoise.state[3],$PRE.uniformNoise.state[4],uniformNoise.state[4],$PRE.uniformNoise.r,uniformNoise.r,$PRE.uniformNoise.r_raw,uniformNoise.r_raw,$PRE.truncatedNormalNoise.state[1],truncatedNormalNoise.state[1],$PRE.truncatedNormalNoise.state[2],truncatedNormalNoise.state[2],$PRE.truncatedNormalNoise.state[3],truncatedNormalNoise.state[3],$PRE.truncatedNormalNoise.state[4],truncatedNormalNoise.state[4],$PRE.truncatedNormalNoise.r,truncatedNormalNoise.r,$PRE.truncatedNormalNoise.r_raw,truncatedNormalNoise.r_raw,globalSeed.id_impure,uniformNoise.localSeed,uniformNoise.actualGlobalSeed,truncatedNormalNoise.localSeed,truncatedNormalNoise.actualGlobalSeed,globalSeed.seed) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 27 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001694/0.1599, allocations: 153.8 kB / 366.2 MB, free: 5.402 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.744e-05/0.16, allocations: 19.8 kB / 366.2 MB, free: 5.383 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.856e-05/0.16, allocations: 17.41 kB / 366.3 MB, free: 5.367 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.945e-06/0.16, allocations: 0 / 366.3 MB, free: 5.367 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.764e-06/0.16, allocations: 4 kB / 366.3 MB, free: 5.363 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.348e-06/0.16, allocations: 0 / 366.3 MB, free: 5.363 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002601/0.1603, allocations: 217.5 kB / 366.5 MB, free: 5.102 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.1603, allocations: 0 / 366.5 MB, free: 5.102 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.358e-05/0.1604, allocations: 16 kB / 366.5 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.1604, allocations: 4 kB / 366.5 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.644e-05/0.1604, allocations: 7.984 kB / 366.5 MB, free: 5.074 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.208e-06/0.1604, allocations: 0 / 366.5 MB, free: 5.074 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.1604, allocations: 3.938 kB / 366.5 MB, free: 5.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004965/0.1609, allocations: 273.8 kB / 366.8 MB, free: 4.766 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.664e-05/0.161, allocations: 92.92 kB / 366.9 MB, free: 4.656 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.574e-05/0.161, allocations: 11.98 kB / 366.9 MB, free: 4.645 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.93e-05/0.1611, allocations: 11.98 kB / 366.9 MB, free: 4.633 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.873e-05/0.1612, allocations: 15.94 kB / 366.9 MB, free: 4.617 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.084e-05/0.1612, allocations: 4.094 kB / 366.9 MB, free: 4.613 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000127/0.1613, allocations: 141.2 kB / 367 MB, free: 4.477 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1613, allocations: 0 / 367 MB, free: 4.477 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004785/0.1618, allocations: 124 kB / 367.2 MB, free: 4.355 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition2,truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4],truncatedNormalNoise.r,truncatedNormalNoise.r_raw,$whenCondition1,uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],uniformNoise.r,uniformNoise.r_raw,n) * Number of discrete states: 8 (uniformNoise.state[1],uniformNoise.state[2],uniformNoise.state[3],uniformNoise.state[4],truncatedNormalNoise.state[1],truncatedNormalNoise.state[2],truncatedNormalNoise.state[3],truncatedNormalNoise.state[4]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00163/0.1635, allocations: 1.231 MB / 368.4 MB, free: 3.105 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004413/0.1639, allocations: 219.7 kB / 368.6 MB, free: 2.891 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.1639, allocations: 0 / 368.6 MB, free: 2.891 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001499/0.1641, allocations: 68.16 kB / 368.7 MB, free: 2.824 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001517/0.1643, allocations: 15.94 kB / 368.7 MB, free: 2.809 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001078/0.1653, allocations: 1.044 MB / 369.7 MB, free: 1.703 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003539/0.1657, allocations: 0.7203 MB / 370.5 MB, free: 0.9531 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.959e-05/0.1658, allocations: 33.31 kB / 370.5 MB, free: 0.918 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.843e-05/0.1659, allocations: 47.42 kB / 370.5 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1659, allocations: 4 kB / 370.5 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2026/0.3685, allocations: 5.041 MB / 375.6 MB, free: 18.19 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002089/0.3688, allocations: 209.7 kB / 375.8 MB, free: 17.95 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.004/2.372, allocations: 3.938 kB / 375.8 MB, free: 17.94 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_Noise_Distributions.fmu > Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Blocks.Examples.Noise.Distributions_res.mat does not exist to compare? outputFormat=mat