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.001669/0.001669, allocations: 188.5 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.066/2.066, allocations: 205.4 MB / 222.5 MB, free: 13.87 MB / 186.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001195/0.001195, allocations: 98.86 kB / 270.9 MB, free: 13.4 MB / 234.8 MB Notification: Performance of FrontEnd - loaded program: time 0.0007471/0.0007472, allocations: 8 kB / 327 MB, free: 15.03 MB / 234.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1113, allocations: 47.59 MB / 374.6 MB, free: 15.36 MB / 282.8 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.NoiseExamples.ImpureGenerator): time 0.001937/0.1133, allocations: 1.061 MB / 375.7 MB, free: 14.29 MB / 282.8 MB Notification: Performance of NFInst.instExpressions: time 0.0009787/0.1143, allocations: 345 kB / 376 MB, free: 13.95 MB / 282.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.712e-05/0.1144, allocations: 0 / 376 MB, free: 13.95 MB / 282.8 MB Notification: Performance of NFTyping.typeComponents: time 1.767e-05/0.1144, allocations: 3.938 kB / 376 MB, free: 13.95 MB / 282.8 MB Notification: Performance of NFTyping.typeBindings: time 6.2e-05/0.1145, allocations: 7.938 kB / 376 MB, free: 13.94 MB / 282.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004871/0.115, allocations: 71.72 kB / 376.1 MB, free: 13.87 MB / 282.8 MB Notification: Performance of NFFlatten.flatten: time 5.813e-05/0.1151, allocations: 11.98 kB / 376.1 MB, free: 13.86 MB / 282.8 MB Notification: Performance of NFFlatten.resolveConnections: time 4.672e-05/0.1151, allocations: 0 / 376.1 MB, free: 13.86 MB / 282.8 MB Notification: Performance of NFEvalConstants.evaluate: time 2.86e-05/0.1152, allocations: 7.938 kB / 376.1 MB, free: 13.85 MB / 282.8 MB Notification: Performance of NFSimplifyModel.simplify: time 2.613e-05/0.1152, allocations: 7.984 kB / 376.1 MB, free: 13.84 MB / 282.8 MB Notification: Performance of NFPackage.collectConstants: time 1.393e-05/0.1152, allocations: 4 kB / 376.1 MB, free: 13.84 MB / 282.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001975/0.1155, allocations: 63.88 kB / 376.2 MB, free: 13.77 MB / 282.8 MB Notification: Performance of NFScalarize.scalarize: time 1.482e-05/0.1155, allocations: 0 / 376.2 MB, free: 13.77 MB / 282.8 MB Notification: Performance of NFVerifyModel.verify: time 3.558e-05/0.1155, allocations: 29.7 kB / 376.2 MB, free: 13.74 MB / 282.8 MB Notification: Performance of NFConvertDAE.convert: time 0.0001742/0.1157, allocations: 59.83 kB / 376.3 MB, free: 13.68 MB / 282.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.1157, allocations: 4 kB / 376.3 MB, free: 13.68 MB / 282.8 MB Notification: Performance of FrontEnd: time 1.873e-06/0.1157, allocations: 4 kB / 376.3 MB, free: 13.67 MB / 282.8 MB Notification: Performance of Transformations before backend: time 3.958e-06/0.1158, allocations: 0 / 376.3 MB, free: 13.67 MB / 282.8 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.000424/0.1162, allocations: 331.3 kB / 376.6 MB, free: 13.3 MB / 282.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.081e-05/0.1163, allocations: 8.031 kB / 376.6 MB, free: 13.29 MB / 282.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.756e-05/0.1163, allocations: 34.56 kB / 376.7 MB, free: 13.25 MB / 282.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.131e-05/0.1164, allocations: 15.84 kB / 376.7 MB, free: 13.23 MB / 282.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001901/0.1166, allocations: 171.3 kB / 376.9 MB, free: 13.03 MB / 282.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.193e-05/0.1167, allocations: 0 / 376.9 MB, free: 13.03 MB / 282.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.711e-05/0.1167, allocations: 3.953 kB / 376.9 MB, free: 13.02 MB / 282.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001531/0.1169, allocations: 41.67 kB / 376.9 MB, free: 12.98 MB / 282.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.1169, allocations: 4 kB / 376.9 MB, free: 12.97 MB / 282.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.068e-05/0.1169, allocations: 0 / 376.9 MB, free: 12.97 MB / 282.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.117, allocations: 0 / 376.9 MB, free: 12.97 MB / 282.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.373e-05/0.117, allocations: 4 kB / 376.9 MB, free: 12.97 MB / 282.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006186/0.1177, allocations: 264.8 kB / 377.2 MB, free: 12.66 MB / 282.8 MB Notification: Performance of preOpt comSubExp (simulation): time 8.077e-05/0.1178, allocations: 26.58 kB / 377.2 MB, free: 12.62 MB / 282.8 MB Notification: Performance of preOpt evalFunc (simulation): time 1.063e-05/0.1178, allocations: 0 / 377.2 MB, free: 12.62 MB / 282.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001489/0.1179, allocations: 51.47 kB / 377.2 MB, free: 12.56 MB / 282.8 MB Notification: Performance of pre-optimization done (n=3): time 1.864e-06/0.118, allocations: 0 / 377.2 MB, free: 12.56 MB / 282.8 MB Notification: Performance of matching and sorting (n=3): time 0.0002136/0.1182, allocations: 61.61 kB / 377.3 MB, free: 12.5 MB / 282.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.341e-05/0.1182, allocations: 51.41 kB / 377.4 MB, free: 12.43 MB / 282.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001064/0.1184, allocations: 109.8 kB / 377.5 MB, free: 12.32 MB / 282.8 MB Notification: Performance of collectPreVariables (initialization): time 2.292e-05/0.1184, allocations: 29.7 kB / 377.5 MB, free: 12.28 MB / 282.8 MB Notification: Performance of collectInitialEqns (initialization): time 7.539e-05/0.1185, allocations: 150.6 kB / 377.6 MB, free: 12.13 MB / 282.8 MB Notification: Performance of collectInitialBindings (initialization): time 1.643e-05/0.1185, allocations: 7.906 kB / 377.6 MB, free: 12.12 MB / 282.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.148e-06/0.1185, allocations: 0 / 377.6 MB, free: 12.12 MB / 282.8 MB Notification: Performance of setup shared object (initialization): time 0.000133/0.1187, allocations: 314.8 kB / 378 MB, free: 11.81 MB / 282.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.534e-05/0.1187, allocations: 8 kB / 378 MB, free: 11.8 MB / 282.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.873e-05/0.1188, allocations: 25.64 kB / 378 MB, free: 11.77 MB / 282.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.066e-05/0.1188, allocations: 8 kB / 378 MB, free: 11.76 MB / 282.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.469e-06/0.1188, allocations: 3.953 kB / 378 MB, free: 11.76 MB / 282.8 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001411/0.119, allocations: 57.62 kB / 378.1 MB, free: 11.7 MB / 282.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.902e-05/0.119, allocations: 4 kB / 378.1 MB, free: 11.69 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.119, allocations: 0 / 378.1 MB, free: 11.69 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.33e-05/0.1191, allocations: 0 / 378.1 MB, free: 11.69 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.534e-05/0.1192, allocations: 12.36 kB / 378.1 MB, free: 11.68 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.861e-06/0.1192, allocations: 4.031 kB / 378.1 MB, free: 11.68 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.098e-05/0.1192, allocations: 4 kB / 378.1 MB, free: 11.67 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.287e-05/0.1192, allocations: 11.94 kB / 378.1 MB, free: 11.66 MB / 282.8 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 () * Number of clocked 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 9.776e-05/0.1194, allocations: 105.8 kB / 378.2 MB, free: 11.55 MB / 282.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.883e-05/0.1194, allocations: 7.953 kB / 378.2 MB, free: 11.54 MB / 282.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.274e-05/0.1194, allocations: 7.906 kB / 378.2 MB, free: 11.53 MB / 282.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/0.1194, allocations: 0 / 378.2 MB, free: 11.53 MB / 282.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.1194, allocations: 3.938 kB / 378.2 MB, free: 11.52 MB / 282.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.1195, allocations: 4 kB / 378.2 MB, free: 11.52 MB / 282.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003374/0.1198, allocations: 290.5 kB / 378.5 MB, free: 11.18 MB / 282.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.1198, allocations: 0 / 378.5 MB, free: 11.18 MB / 282.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.121e-05/0.1199, allocations: 0 / 378.5 MB, free: 11.18 MB / 282.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.011e-06/0.1199, allocations: 4 kB / 378.5 MB, free: 11.18 MB / 282.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.596e-06/0.1199, allocations: 4.219 kB / 378.5 MB, free: 11.17 MB / 282.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.1199, allocations: 0 / 378.5 MB, free: 11.17 MB / 282.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.1199, allocations: 0 / 378.5 MB, free: 11.17 MB / 282.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001605/0.1201, allocations: 155.5 kB / 378.7 MB, free: 11 MB / 282.8 MB Notification: Performance of postOpt removeConstants (simulation): time 4.735e-05/0.1201, allocations: 81.09 kB / 378.7 MB, free: 10.91 MB / 282.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.59e-05/0.1202, allocations: 0 / 378.7 MB, free: 10.91 MB / 282.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.536e-05/0.1202, allocations: 0 / 378.7 MB, free: 10.91 MB / 282.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.974e-05/0.1203, allocations: 4 kB / 378.7 MB, free: 10.9 MB / 282.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.479e-05/0.1203, allocations: 0 / 378.7 MB, free: 10.9 MB / 282.8 MB Notification: Performance of sorting global known variables: time 5.922e-05/0.1204, allocations: 87.27 kB / 378.8 MB, free: 10.82 MB / 282.8 MB Notification: Performance of sort global known variables: time 3.41e-07/0.1204, allocations: 0 / 378.8 MB, free: 10.82 MB / 282.8 MB Notification: Performance of remove unused functions: time 0.0003884/0.1208, allocations: 24 kB / 378.8 MB, free: 10.79 MB / 282.8 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 () * Number of clocked 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.0009289/0.1217, allocations: 0.7938 MB / 379.6 MB, free: 9.98 MB / 282.8 MB Notification: Performance of simCode: created initialization part: time 0.0001244/0.1219, allocations: 16 kB / 379.7 MB, free: 9.965 MB / 282.8 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.1219, allocations: 0 / 379.7 MB, free: 9.965 MB / 282.8 MB Notification: Performance of simCode: created simulation system equations: time 4.676e-05/0.122, allocations: 19.92 kB / 379.7 MB, free: 9.945 MB / 282.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001659/0.1221, allocations: 3.938 kB / 379.7 MB, free: 9.941 MB / 282.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007152/0.1229, allocations: 0.5037 MB / 380.2 MB, free: 9.379 MB / 282.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002852/0.1232, allocations: 0.6809 MB / 380.9 MB, free: 8.672 MB / 282.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.701e-05/0.1232, allocations: 7.438 kB / 380.9 MB, free: 8.664 MB / 282.8 MB Notification: Performance of SimCode: time 8.61e-07/0.1232, allocations: 0 / 380.9 MB, free: 8.664 MB / 282.8 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.828/2.951, allocations: 1.453 MB / 382.3 MB, free: 7.207 MB / 282.8 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