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.0009299/0.0009301, allocations: 99.58 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009294/0.0009295, allocations: 195.1 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.465/1.465, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002525/0.0002528, allocations: 8 kB / 306.8 MB, free: 1.473 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1235/0.1238, allocations: 51.49 MB / 358.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.001743/0.1256, allocations: 1.27 MB / 359.6 MB, free: 12.71 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002371/0.128, allocations: 1.389 MB / 361 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.833e-05/0.1281, allocations: 0 / 361 MB, free: 11.31 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000102/0.1282, allocations: 11.81 kB / 361 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.474e-05/0.1283, allocations: 31.78 kB / 361 MB, free: 11.27 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.0009387/0.1292, allocations: 303.3 kB / 361.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001365/0.1294, allocations: 115.6 kB / 361.4 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.457e-05/0.1294, allocations: 9.5 kB / 361.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.045e-05/0.1295, allocations: 47.78 kB / 361.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001806/0.1297, allocations: 75.66 kB / 361.5 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.819e-05/0.1297, allocations: 8 kB / 361.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006378/0.1304, allocations: 439.2 kB / 362 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.653e-05/0.1304, allocations: 35.89 kB / 362 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.497e-05/0.1305, allocations: 41.64 kB / 362 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003862/0.1309, allocations: 279.7 kB / 362.3 MB, free: 9.926 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.1309, allocations: 0 / 362.3 MB, free: 9.926 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1309, allocations: 7.938 kB / 362.3 MB, free: 9.918 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.1309, allocations: 0 / 362.3 MB, free: 9.918 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.0007841/0.1317, allocations: 494.6 kB / 362.8 MB, free: 9.387 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/0.1318, allocations: 12.03 kB / 362.8 MB, free: 9.375 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.67e-05/0.1319, allocations: 46.45 kB / 362.9 MB, free: 9.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000208/0.1321, allocations: 27.8 kB / 362.9 MB, free: 9.293 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001853/0.1323, allocations: 212.5 kB / 363.1 MB, free: 9.043 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.048e-05/0.1323, allocations: 4 kB / 363.1 MB, free: 9.039 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.424e-05/0.1323, allocations: 12 kB / 363.1 MB, free: 9.027 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002783/0.1326, allocations: 138.9 kB / 363.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.607e-06/0.1326, allocations: 0 / 363.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.127e-05/0.1326, allocations: 0 / 363.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.396e-06/0.1327, allocations: 8 kB / 363.3 MB, free: 8.871 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002005/0.1329, allocations: 75.88 kB / 363.3 MB, free: 8.797 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007471/0.1336, allocations: 0.5594 MB / 363.9 MB, free: 8.18 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003443/0.134, allocations: 159.9 kB / 364.1 MB, free: 7.996 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001364/0.1341, allocations: 78.55 kB / 364.1 MB, free: 7.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.308e-05/0.1342, allocations: 0 / 364.1 MB, free: 7.91 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002847/0.1344, allocations: 165.7 kB / 364.3 MB, free: 7.727 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 2.575e-06/0.1345, allocations: 0 / 364.3 MB, free: 7.727 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005561/0.135, allocations: 261.7 kB / 364.5 MB, free: 7.465 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.721e-05/0.1351, allocations: 126.9 kB / 364.7 MB, free: 7.316 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000189/0.1353, allocations: 195.1 kB / 364.9 MB, free: 7.117 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.087e-05/0.1354, allocations: 49.69 kB / 364.9 MB, free: 7.062 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.108e-05/0.1354, allocations: 112.4 kB / 365 MB, free: 6.949 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.06e-05/0.1355, allocations: 43.45 kB / 365.1 MB, free: 6.906 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.229e-05/0.1355, allocations: 7.984 kB / 365.1 MB, free: 6.898 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.1356, allocations: 330.8 kB / 365.4 MB, free: 6.566 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001916/0.1358, allocations: 103.9 kB / 365.5 MB, free: 6.465 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002008/0.136, allocations: 151.2 kB / 365.6 MB, free: 6.305 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001932/0.1362, allocations: 116 kB / 365.8 MB, free: 6.191 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.1362, allocations: 0 / 365.8 MB, free: 6.191 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004767/0.1367, allocations: 305.8 kB / 366.1 MB, free: 5.887 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.1368, allocations: 8.094 kB / 366.1 MB, free: 5.879 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.1368, allocations: 4 kB / 366.1 MB, free: 5.875 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.132e-05/0.1368, allocations: 0 / 366.1 MB, free: 5.875 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001533/0.1369, allocations: 31.92 kB / 366.1 MB, free: 5.844 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.137, allocations: 7.953 kB / 366.1 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.606e-05/0.137, allocations: 31.67 kB / 366.1 MB, free: 5.805 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.673e-05/0.1371, allocations: 8 kB / 366.1 MB, free: 5.797 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.0001229/0.1372, allocations: 150.9 kB / 366.3 MB, free: 5.641 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.611e-05/0.1372, allocations: 15.81 kB / 366.3 MB, free: 5.625 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.445e-05/0.1373, allocations: 17.41 kB / 366.3 MB, free: 5.609 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.1373, allocations: 4 kB / 366.3 MB, free: 5.605 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.1373, allocations: 7.984 kB / 366.3 MB, free: 5.598 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.1373, allocations: 3.953 kB / 366.3 MB, free: 5.594 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002065/0.1375, allocations: 213.5 kB / 366.5 MB, free: 5.336 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.856e-06/0.1375, allocations: 4 kB / 366.5 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.972e-05/0.1376, allocations: 20.08 kB / 366.6 MB, free: 5.312 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.538e-06/0.1376, allocations: 3.984 kB / 366.6 MB, free: 5.309 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.429e-05/0.1376, allocations: 4 kB / 366.6 MB, free: 5.305 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.128e-06/0.1376, allocations: 0 / 366.6 MB, free: 5.305 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.1376, allocations: 3.938 kB / 366.6 MB, free: 5.301 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004124/0.1381, allocations: 245 kB / 366.8 MB, free: 5.039 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.106e-05/0.1381, allocations: 100.9 kB / 366.9 MB, free: 4.922 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.15e-05/0.1382, allocations: 4 kB / 366.9 MB, free: 4.918 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.664e-05/0.1382, allocations: 11.98 kB / 366.9 MB, free: 4.906 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.313e-05/0.1383, allocations: 11.98 kB / 366.9 MB, free: 4.895 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.168e-05/0.1383, allocations: 16.02 kB / 367 MB, free: 4.879 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001146/0.1384, allocations: 141.2 kB / 367.1 MB, free: 4.742 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1385, allocations: 0 / 367.1 MB, free: 4.742 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005054/0.139, allocations: 127.9 kB / 367.2 MB, free: 4.617 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.001495/0.1405, allocations: 1.067 MB / 368.3 MB, free: 3.535 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004324/0.1409, allocations: 203.8 kB / 368.5 MB, free: 3.336 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.1409, allocations: 0 / 368.5 MB, free: 3.336 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001546/0.1411, allocations: 67.91 kB / 368.6 MB, free: 3.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001989/0.1413, allocations: 15.92 kB / 368.6 MB, free: 3.254 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001856/0.1432, allocations: 1.196 MB / 369.8 MB, free: 2.004 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003071/0.1435, allocations: 0.7162 MB / 370.5 MB, free: 1.258 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.189e-05/0.1436, allocations: 29.34 kB / 370.5 MB, free: 1.227 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.61e-05/0.1437, allocations: 43.42 kB / 370.6 MB, free: 1.184 MB / 302.1 MB Notification: Performance of SimCode: time 7.91e-07/0.1437, allocations: 4 kB / 370.6 MB, free: 1.18 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2148/0.3585, allocations: 5.131 MB / 375.7 MB, free: 18.07 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002101/0.3588, allocations: 214.5 kB / 375.9 MB, free: 17.83 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.018/2.377, allocations: 2 kB / 375.9 MB, free: 17.83 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