Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Noise.Distributions,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_Noise_Distributions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001069/0.001069, allocations: 89.72 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001238/0.001238, allocations: 183.3 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.469/1.469, allocations: 223.2 MB / 241.1 MB, free: 5.441 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000311/0.0003116, allocations: 6.031 kB / 300.8 MB, free: 6.02 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1099, allocations: 50.41 MB / 351.2 MB, free: 11.64 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.001912/0.1119, allocations: 1.256 MB / 352.5 MB, free: 10.37 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002319/0.1142, allocations: 1.357 MB / 353.8 MB, free: 9.004 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.763e-05/0.1143, allocations: 7.938 kB / 353.8 MB, free: 8.996 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001012/0.1144, allocations: 3.938 kB / 353.8 MB, free: 8.992 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.611e-05/0.1145, allocations: 23.89 kB / 353.9 MB, free: 8.969 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/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.001011/0.1155, allocations: 303.2 kB / 354.2 MB, free: 8.672 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001428/0.1157, allocations: 83.83 kB / 354.2 MB, free: 8.59 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.731e-05/0.1158, allocations: 9.5 kB / 354.3 MB, free: 8.574 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.537e-05/0.1158, allocations: 55.77 kB / 354.3 MB, free: 8.52 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001287/0.116, allocations: 59.69 kB / 354.4 MB, free: 8.461 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.052e-05/0.116, allocations: 8 kB / 354.4 MB, free: 8.453 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006622/0.1167, allocations: 415.3 kB / 354.8 MB, free: 8.047 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.714e-05/0.1167, allocations: 39.89 kB / 354.8 MB, free: 8.008 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.192e-05/0.1168, allocations: 41.64 kB / 354.9 MB, free: 7.961 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004202/0.1172, allocations: 263.5 kB / 355.1 MB, free: 7.703 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1172, allocations: 0 / 355.1 MB, free: 7.703 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.923e-06/0.1173, allocations: 0 / 355.1 MB, free: 7.703 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.631e-06/0.1173, allocations: 0 / 355.1 MB, free: 7.703 MB / 286.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.0008469/0.1181, allocations: 0.4908 MB / 355.6 MB, free: 7.164 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.157e-05/0.1182, allocations: 12.03 kB / 355.6 MB, free: 7.152 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.982e-05/0.1183, allocations: 46.41 kB / 355.7 MB, free: 7.098 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000216/0.1185, allocations: 27.8 kB / 355.7 MB, free: 7.07 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002015/0.1187, allocations: 207.6 kB / 355.9 MB, free: 6.824 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.092e-05/0.1187, allocations: 8 kB / 355.9 MB, free: 6.816 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.952e-05/0.1187, allocations: 8 kB / 355.9 MB, free: 6.809 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000292/0.119, allocations: 140.1 kB / 356 MB, free: 6.656 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.795e-06/0.1191, allocations: 0 / 356 MB, free: 6.656 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.737e-05/0.1191, allocations: 11.98 kB / 356.1 MB, free: 6.645 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-06/0.1191, allocations: 0 / 356.1 MB, free: 6.645 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002061/0.1193, allocations: 71.89 kB / 356.1 MB, free: 6.574 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008148/0.1201, allocations: 0.5555 MB / 356.7 MB, free: 5.961 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003602/0.1205, allocations: 168 kB / 356.8 MB, free: 5.77 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.367e-05/0.1205, allocations: 8 kB / 356.9 MB, free: 5.762 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003329/0.1209, allocations: 155.7 kB / 357 MB, free: 5.59 MB / 286.1 MB Notification: Performance of pre-optimization done (n=17): time 1.623e-06/0.1209, allocations: 0 / 357 MB, free: 5.59 MB / 286.1 MB Notification: Performance of matching and sorting (n=17): time 0.0007814/0.1217, allocations: 431.6 kB / 357.4 MB, free: 5.125 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.943e-05/0.1218, allocations: 122.8 kB / 357.6 MB, free: 4.98 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002028/0.122, allocations: 191.1 kB / 357.7 MB, free: 4.785 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.141e-05/0.122, allocations: 45.69 kB / 357.8 MB, free: 4.734 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.58e-05/0.1221, allocations: 116.5 kB / 357.9 MB, free: 4.617 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.354e-05/0.1222, allocations: 43.48 kB / 357.9 MB, free: 4.574 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.079e-05/0.1222, allocations: 4 kB / 357.9 MB, free: 4.57 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001652/0.1224, allocations: 330.8 kB / 358.3 MB, free: 4.238 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002084/0.1226, allocations: 107.8 kB / 358.4 MB, free: 4.133 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002218/0.1228, allocations: 139.2 kB / 358.5 MB, free: 3.984 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002144/0.123, allocations: 132.3 kB / 358.6 MB, free: 3.855 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.123, allocations: 0 / 358.6 MB, free: 3.855 MB / 286.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005309/0.1236, allocations: 309.2 kB / 358.9 MB, free: 3.547 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.76e-05/0.1236, allocations: 8.094 kB / 358.9 MB, free: 3.539 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.1236, allocations: 0 / 358.9 MB, free: 3.539 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.1236, allocations: 4 kB / 358.9 MB, free: 3.535 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001567/0.1238, allocations: 31.92 kB / 359 MB, free: 3.504 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.028e-05/0.1238, allocations: 7.984 kB / 359 MB, free: 3.496 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.854e-05/0.1239, allocations: 19.84 kB / 359 MB, free: 3.477 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.753e-05/0.1239, allocations: 4 kB / 359 MB, free: 3.473 MB / 286.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.0001515/0.1241, allocations: 161.7 kB / 359.2 MB, free: 3.305 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.65e-05/0.1241, allocations: 15.81 kB / 359.2 MB, free: 3.289 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.914e-05/0.1242, allocations: 17.39 kB / 359.2 MB, free: 3.27 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.1242, allocations: 0 / 359.2 MB, free: 3.27 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.1242, allocations: 0 / 359.2 MB, free: 3.27 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.1242, allocations: 4 kB / 359.2 MB, free: 3.266 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002226/0.1244, allocations: 217.5 kB / 359.4 MB, free: 3.004 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.1244, allocations: 3.953 kB / 359.4 MB, free: 3 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.664e-05/0.1245, allocations: 27.97 kB / 359.4 MB, free: 2.973 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.1245, allocations: 0 / 359.4 MB, free: 2.973 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.491e-05/0.1245, allocations: 8 kB / 359.5 MB, free: 2.965 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-06/0.1245, allocations: 0 / 359.5 MB, free: 2.965 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.1245, allocations: 3.938 kB / 359.5 MB, free: 2.961 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000449/0.125, allocations: 277.8 kB / 359.7 MB, free: 2.652 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.995e-05/0.1251, allocations: 92.86 kB / 359.8 MB, free: 2.543 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.314e-05/0.1251, allocations: 11.98 kB / 359.8 MB, free: 2.531 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.109e-05/0.1252, allocations: 12 kB / 359.8 MB, free: 2.52 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.572e-05/0.1253, allocations: 15.97 kB / 359.9 MB, free: 2.504 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.067e-05/0.1253, allocations: 4 kB / 359.9 MB, free: 2.5 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001179/0.1254, allocations: 141.2 kB / 360 MB, free: 2.363 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1254, allocations: 0 / 360 MB, free: 2.363 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004566/0.1259, allocations: 112 kB / 360.1 MB, free: 2.254 MB / 286.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.001641/0.1275, allocations: 1.23 MB / 361.3 MB, free: 1.012 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000426/0.128, allocations: 207.7 kB / 361.5 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.128, allocations: 0 / 361.5 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001573/0.1281, allocations: 76.09 kB / 361.6 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001411/0.1283, allocations: 13.86 kB / 361.6 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001076/0.1294, allocations: 1.044 MB / 362.7 MB, free: 15.61 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003677/0.1298, allocations: 0.7239 MB / 363.4 MB, free: 14.86 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.574e-05/0.1298, allocations: 21.42 kB / 363.4 MB, free: 14.84 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.906e-05/0.1299, allocations: 47.42 kB / 363.5 MB, free: 14.79 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1299, allocations: 0 / 363.5 MB, free: 14.79 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01791/0.1479, allocations: 4.955 MB / 368.4 MB, free: 9.957 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000182/0.1481, allocations: 218.5 kB / 368.6 MB, free: 9.711 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.926/2.074, allocations: 0 / 368.6 MB, free: 9.711 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_Noise_Distributions_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_Noise_Distributions.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Blocks.Examples.Noise.Distributions_res.mat does not exist to compare? outputFormat=mat