Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_ImpureGenerator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_ImpureGenerator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001471/0.001471, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.023/2.023, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001083/0.001083, allocations: 99.58 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.16e-05/3.159e-05, allocations: 7.938 kB / 314.9 MB, free: 9.066 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.332/0.3321, allocations: 47.56 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1189/0.451, allocations: 74.54 MB / 437 MB, free: 11.69 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002472/0.4513, allocations: 72.98 kB / 437 MB, free: 11.62 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.008052/0.4594, allocations: 1.982 MB / 439 MB, free: 9.645 MB / 331.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.4594, allocations: 0 / 439 MB, free: 9.645 MB / 331.1 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.4595, allocations: 0.8438 kB / 439 MB, free: 9.645 MB / 331.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003737/0.4598, allocations: 346.8 kB / 439.4 MB, free: 9.266 MB / 331.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.55e-05/0.4599, allocations: 15.97 kB / 439.4 MB, free: 9.25 MB / 331.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.569e-05/0.4599, allocations: 6.281 kB / 439.4 MB, free: 9.246 MB / 331.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001208/0.4601, allocations: 159.1 kB / 439.5 MB, free: 9.051 MB / 331.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.683e-05/0.4601, allocations: 4 kB / 439.5 MB, free: 9.047 MB / 331.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.511e-05/0.4601, allocations: 4.453 kB / 439.5 MB, free: 9.043 MB / 331.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.606e-05/0.4602, allocations: 4 kB / 439.5 MB, free: 9.039 MB / 331.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.503e-05/0.4603, allocations: 36.31 kB / 439.6 MB, free: 9 MB / 331.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.857e-06/0.4603, allocations: 0 / 439.6 MB, free: 9 MB / 331.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.398e-05/0.4603, allocations: 4 kB / 439.6 MB, free: 8.996 MB / 331.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.4603, allocations: 3.938 kB / 439.6 MB, free: 8.992 MB / 331.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003193/0.4606, allocations: 220 kB / 439.8 MB, free: 8.742 MB / 331.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.877e-05/0.4607, allocations: 26.53 kB / 439.8 MB, free: 8.707 MB / 331.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.275e-05/0.4608, allocations: 8.922 kB / 439.8 MB, free: 8.695 MB / 331.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.076e-05/0.4608, allocations: 0 / 439.8 MB, free: 8.695 MB / 331.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001158/0.4609, allocations: 53.31 kB / 439.9 MB, free: 8.633 MB / 331.1 MB Notification: Performance of pre-optimization done (n=3): time 1.683e-06/0.4609, allocations: 0 / 439.9 MB, free: 8.633 MB / 331.1 MB Notification: Performance of matching and sorting (n=3): time 0.0001802/0.4611, allocations: 53.66 kB / 439.9 MB, free: 8.574 MB / 331.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.548e-05/0.4612, allocations: 53.66 kB / 440 MB, free: 8.512 MB / 331.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.348e-05/0.4613, allocations: 101.9 kB / 440.1 MB, free: 8.406 MB / 331.1 MB Notification: Performance of collectPreVariables (initialization): time 1.841e-05/0.4613, allocations: 25.7 kB / 440.1 MB, free: 8.375 MB / 331.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.806e-05/0.4614, allocations: 154.5 kB / 440.3 MB, free: 8.223 MB / 331.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.487e-05/0.4614, allocations: 0.9375 kB / 440.3 MB, free: 8.223 MB / 331.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.104e-06/0.4614, allocations: 4 kB / 440.3 MB, free: 8.219 MB / 331.1 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.4616, allocations: 317.5 kB / 440.6 MB, free: 7.902 MB / 331.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.36e-05/0.4616, allocations: 4 kB / 440.6 MB, free: 7.898 MB / 331.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.794e-05/0.4616, allocations: 17.72 kB / 440.6 MB, free: 7.875 MB / 331.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.862e-05/0.4617, allocations: 11.98 kB / 440.6 MB, free: 7.863 MB / 331.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.4617, allocations: 0 / 440.6 MB, free: 7.863 MB / 331.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001426/0.4619, allocations: 65.3 kB / 440.7 MB, free: 7.797 MB / 331.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.906e-05/0.4619, allocations: 7.938 kB / 440.7 MB, free: 7.789 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.4619, allocations: 0 / 440.7 MB, free: 7.789 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.187e-05/0.462, allocations: 4.844 kB / 440.7 MB, free: 7.785 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.916e-05/0.4621, allocations: 4 kB / 440.7 MB, free: 7.781 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.4621, allocations: 0.7812 kB / 440.7 MB, free: 7.781 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.755e-05/0.4621, allocations: 2.844 kB / 440.7 MB, free: 7.781 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.133e-05/0.4621, allocations: 7.984 kB / 440.7 MB, free: 7.773 MB / 331.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,impureRandom.y,globalSeed.seed,globalSeed.id_impure) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * 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 8.386e-05/0.4622, allocations: 104.9 kB / 440.8 MB, free: 7.664 MB / 331.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001029/0.4624, allocations: 59.14 kB / 440.9 MB, free: 7.602 MB / 331.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.206e-05/0.4624, allocations: 3.906 kB / 440.9 MB, free: 7.598 MB / 331.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.305e-05/0.4624, allocations: 6.781 kB / 440.9 MB, free: 7.59 MB / 331.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.4624, allocations: 4 kB / 440.9 MB, free: 7.586 MB / 331.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.4624, allocations: 0 / 440.9 MB, free: 7.586 MB / 331.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.4625, allocations: 0 / 440.9 MB, free: 7.586 MB / 331.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000263/0.4627, allocations: 259.2 kB / 441.1 MB, free: 7.289 MB / 331.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.4628, allocations: 0 / 441.1 MB, free: 7.289 MB / 331.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.282e-05/0.4628, allocations: 4.031 kB / 441.1 MB, free: 7.285 MB / 331.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.051e-06/0.4628, allocations: 7.938 kB / 441.2 MB, free: 7.277 MB / 331.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.184e-05/0.4628, allocations: 3.984 kB / 441.2 MB, free: 7.273 MB / 331.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.4628, allocations: 0 / 441.2 MB, free: 7.273 MB / 331.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.297e-06/0.4628, allocations: 4.125 kB / 441.2 MB, free: 7.273 MB / 331.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001374/0.463, allocations: 141.6 kB / 441.3 MB, free: 7.121 MB / 331.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.016e-05/0.463, allocations: 81.11 kB / 441.4 MB, free: 7.023 MB / 331.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.568e-05/0.4631, allocations: 0 / 441.4 MB, free: 7.023 MB / 331.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.057e-05/0.4631, allocations: 4 kB / 441.4 MB, free: 7.02 MB / 331.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.882e-05/0.4632, allocations: 3.984 kB / 441.4 MB, free: 7.016 MB / 331.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.465e-05/0.4632, allocations: 8 kB / 441.4 MB, free: 7.008 MB / 331.1 MB Notification: Performance of sorting global known variables: time 4.691e-05/0.4633, allocations: 79.28 kB / 441.5 MB, free: 6.93 MB / 331.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.4633, allocations: 0 / 441.5 MB, free: 6.93 MB / 331.1 MB Notification: Performance of remove unused functions: time 0.0004123/0.4637, allocations: 31.94 kB / 441.5 MB, free: 6.898 MB / 331.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 ($whenCondition1,impureRandom.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0009142/0.4646, allocations: 0.7853 MB / 442.3 MB, free: 6.117 MB / 331.1 MB Notification: Performance of simCode: created initialization part: time 0.0001066/0.4648, allocations: 20 kB / 442.3 MB, free: 6.098 MB / 331.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.4648, allocations: 0 / 442.3 MB, free: 6.098 MB / 331.1 MB Notification: Performance of simCode: created simulation system equations: time 3.934e-05/0.4648, allocations: 15.94 kB / 442.3 MB, free: 6.082 MB / 331.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001812/0.465, allocations: 0 / 442.3 MB, free: 6.082 MB / 331.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004873/0.4655, allocations: 137 kB / 442.5 MB, free: 5.906 MB / 331.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002403/0.4658, allocations: 0.6807 MB / 443.1 MB, free: 5.199 MB / 331.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.8e-05/0.4658, allocations: 11.44 kB / 443.1 MB, free: 5.188 MB / 331.1 MB Notification: Performance of SimCode: time 1.112e-06/0.4658, allocations: 0 / 443.1 MB, free: 5.188 MB / 331.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.785/3.251, allocations: 1.59 MB / 444.7 MB, free: 3.617 MB / 331.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_ImpureGenerator_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Blocks_Examples_NoiseExamples_ImpureGenerator.fmu > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator_res.mat does not exist to compare? outputFormat=mat