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.0007836/0.0007836, allocations: 87.11 kB / 16.31 MB, free: 6.449 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.0009896/0.0009897, allocations: 179.1 kB / 17.21 MB, free: 6.32 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.333/1.333, allocations: 223.3 MB / 241.2 MB, free: 288 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003063/0.0003064, allocations: 4 kB / 300.9 MB, free: 6.367 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1052, allocations: 50.42 MB / 351.3 MB, free: 3.934 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.Noise.Distributions): time 0.00166/0.1069, allocations: 1.245 MB / 352.6 MB, free: 2.672 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002012/0.1089, allocations: 1.342 MB / 353.9 MB, free: 1.324 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.507e-05/0.109, allocations: 4 kB / 353.9 MB, free: 1.32 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 8.913e-05/0.1091, allocations: 7.875 kB / 353.9 MB, free: 1.312 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.386e-05/0.1092, allocations: 19.86 kB / 354 MB, free: 1.293 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.0007645/0.11, allocations: 315.2 kB / 354.3 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001286/0.1101, allocations: 115.6 kB / 354.4 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.67e-05/0.1102, allocations: 13.42 kB / 354.4 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.853e-05/0.1102, allocations: 51.77 kB / 354.4 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001729/0.1104, allocations: 71.73 kB / 354.5 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.82e-05/0.1104, allocations: 4 kB / 354.5 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005673/0.111, allocations: 435.2 kB / 354.9 MB, free: 308 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.657e-05/0.1111, allocations: 31.84 kB / 355 MB, free: 276 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.244e-05/0.1111, allocations: 45.64 kB / 355 MB, free: 224 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003195/0.1114, allocations: 267.8 kB / 355.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.1115, allocations: 0 / 355.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1115, allocations: 4 kB / 355.3 MB, free: 15.95 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.917e-06/0.1115, allocations: 0 / 355.3 MB, free: 15.95 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.000628/0.1121, allocations: 0.4908 MB / 355.8 MB, free: 15.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.639e-05/0.1121, allocations: 12.02 kB / 355.8 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.165e-05/0.1122, allocations: 42.47 kB / 355.8 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001907/0.1124, allocations: 27.8 kB / 355.8 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001491/0.1126, allocations: 216.4 kB / 356.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.658e-05/0.1126, allocations: 8 kB / 356.1 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.885e-05/0.1126, allocations: 8 kB / 356.1 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002302/0.1129, allocations: 134.9 kB / 356.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.682e-06/0.1129, allocations: 0 / 356.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.198e-05/0.1129, allocations: 4 kB / 356.2 MB, free: 14.91 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.1129, allocations: 4 kB / 356.2 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001998/0.1131, allocations: 71.89 kB / 356.3 MB, free: 14.83 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006749/0.1138, allocations: 0.5634 MB / 356.8 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003251/0.1141, allocations: 167.8 kB / 357 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001445/0.1143, allocations: 70.61 kB / 357.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.075e-05/0.1143, allocations: 4 kB / 357.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000289/0.1146, allocations: 164.2 kB / 357.2 MB, free: 13.76 MB / 302.1 MB Notification: Performance of pre-optimization done (n=17): time 1.232e-06/0.1146, allocations: 0 / 357.2 MB, free: 13.76 MB / 302.1 MB Notification: Performance of matching and sorting (n=17): time 0.000536/0.1151, allocations: 261.4 kB / 357.5 MB, free: 13.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.826e-05/0.1152, allocations: 126.7 kB / 357.6 MB, free: 13.35 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001633/0.1154, allocations: 191.1 kB / 357.8 MB, free: 13.15 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.512e-05/0.1154, allocations: 45.69 kB / 357.9 MB, free: 13.1 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.656e-05/0.1155, allocations: 116.4 kB / 358 MB, free: 12.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.797e-05/0.1155, allocations: 51.38 kB / 358 MB, free: 12.93 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.077e-05/0.1156, allocations: 4 kB / 358 MB, free: 12.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.1157, allocations: 338.8 kB / 358.4 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001921/0.1159, allocations: 103.8 kB / 358.5 MB, free: 12.49 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002061/0.1161, allocations: 143.2 kB / 358.6 MB, free: 12.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000197/0.1163, allocations: 116.5 kB / 358.7 MB, free: 12.22 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.1163, allocations: 3.938 kB / 358.7 MB, free: 12.22 MB / 302.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004817/0.1168, allocations: 305.2 kB / 359 MB, free: 11.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.388e-05/0.1168, allocations: 12.09 kB / 359 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.1168, allocations: 0 / 359 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.1168, allocations: 4 kB / 359 MB, free: 11.9 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001536/0.117, allocations: 31.98 kB / 359.1 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.01e-05/0.117, allocations: 7.922 kB / 359.1 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.385e-05/0.1171, allocations: 27.75 kB / 359.1 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.788e-05/0.1171, allocations: 8 kB / 359.1 MB, free: 11.82 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.0001425/0.1173, allocations: 157.9 kB / 359.3 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.551e-05/0.1173, allocations: 11.81 kB / 359.3 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.452e-05/0.1174, allocations: 17.39 kB / 359.3 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.841e-06/0.1174, allocations: 4 kB / 359.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.1174, allocations: 3.938 kB / 359.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.1174, allocations: 0 / 359.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002012/0.1176, allocations: 225.5 kB / 359.5 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.1176, allocations: 3.938 kB / 359.5 MB, free: 11.35 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.054e-05/0.1177, allocations: 15.98 kB / 359.5 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.068e-06/0.1177, allocations: 4 kB / 359.5 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.018e-05/0.1177, allocations: 0 / 359.5 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.1177, allocations: 0 / 359.5 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1177, allocations: 4 kB / 359.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003663/0.1181, allocations: 250.4 kB / 359.8 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.043e-05/0.1181, allocations: 92.88 kB / 359.9 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.177e-05/0.1182, allocations: 15.98 kB / 359.9 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.97e-05/0.1183, allocations: 4 kB / 359.9 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.267e-05/0.1183, allocations: 15.97 kB / 359.9 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.222e-05/0.1183, allocations: 12 kB / 359.9 MB, free: 10.9 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001044/0.1185, allocations: 133.2 kB / 360 MB, free: 10.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1185, allocations: 0 / 360 MB, free: 10.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003942/0.1189, allocations: 120 kB / 360.2 MB, free: 10.65 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.001377/0.1202, allocations: 1.072 MB / 361.2 MB, free: 9.578 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004054/0.1207, allocations: 207.8 kB / 361.4 MB, free: 9.375 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.1207, allocations: 0 / 361.4 MB, free: 9.375 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001524/0.1208, allocations: 67.95 kB / 361.5 MB, free: 9.309 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001862/0.121, allocations: 15.36 kB / 361.5 MB, free: 9.297 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001677/0.1227, allocations: 1.186 MB / 362.7 MB, free: 8.055 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002611/0.123, allocations: 0.7239 MB / 363.4 MB, free: 7.305 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.671e-05/0.1231, allocations: 25.42 kB / 363.5 MB, free: 7.277 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.587e-05/0.1231, allocations: 47.42 kB / 363.5 MB, free: 7.23 MB / 302.1 MB Notification: Performance of SimCode: time 1.873e-06/0.1232, allocations: 0 / 363.5 MB, free: 7.23 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01656/0.1397, allocations: 5.045 MB / 368.5 MB, free: 2.305 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002517/0.14, allocations: 219.4 kB / 368.8 MB, free: 2.062 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.936/2.076, allocations: 3.875 kB / 368.8 MB, free: 2.062 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