Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.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.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_trunk_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_trunk_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00096/0.0009601, allocations: 95.44 kB / 17 MB, free: 6.348 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001313/0.001313, allocations: 193.3 kB / 17.91 MB, free: 5.906 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.439/1.439, allocations: 227.4 MB / 246 MB, free: 11.98 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002515/0.0002516, allocations: 4 kB / 306.8 MB, free: 1.477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.112, allocations: 51.48 MB / 358.3 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001353/0.1134, allocations: 0.916 MB / 359.2 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002843/0.1163, allocations: 1.933 MB / 361.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.74e-05/0.1163, allocations: 0 / 361.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.303e-05/0.1163, allocations: 0 / 361.1 MB, free: 11.12 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Utilities/Examples.mo:279:3-378:24:writable] Warning: Pure function ‘Modelica.Utilities.Examples.readRealParameter‘ contains a call to impure function ‘Modelica.Utilities.Streams.readLine‘. Notification: Performance of NFTyping.typeBindings: time 0.0009964/0.1173, allocations: 347.1 kB / 361.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.935e-05/0.1174, allocations: 12 kB / 361.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 4.016e-05/0.1174, allocations: 15.92 kB / 361.5 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.712e-05/0.1175, allocations: 0 / 361.5 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.856e-05/0.1175, allocations: 4 kB / 361.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001424/0.1177, allocations: 11.92 kB / 361.5 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.854e-05/0.1177, allocations: 0 / 361.5 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006742/0.1184, allocations: 435.5 kB / 362 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.187e-05/0.1184, allocations: 4 kB / 362 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.86e-05/0.1184, allocations: 25.7 kB / 362 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003627/0.1188, allocations: 259.5 kB / 362.2 MB, free: 10.03 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.381e-06/0.1188, allocations: 0 / 362.2 MB, free: 10.03 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.575e-06/0.1188, allocations: 0 / 362.2 MB, free: 10.03 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.418e-06/0.1188, allocations: 4 kB / 362.2 MB, free: 10.02 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0004319/0.1193, allocations: 423.5 kB / 362.7 MB, free: 9.562 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.1193, allocations: 8.031 kB / 362.7 MB, free: 9.555 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.465e-05/0.1194, allocations: 113.7 kB / 362.8 MB, free: 9.434 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.839e-05/0.1195, allocations: 75.28 kB / 362.8 MB, free: 9.359 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000147/0.1196, allocations: 246.3 kB / 363.1 MB, free: 9.078 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.022e-05/0.1197, allocations: 154.6 kB / 363.2 MB, free: 8.926 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.283e-05/0.1197, allocations: 154.5 kB / 363.4 MB, free: 8.773 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.367e-05/0.1198, allocations: 101 kB / 363.5 MB, free: 8.668 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.306e-05/0.1198, allocations: 79.28 kB / 363.6 MB, free: 8.59 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.179e-05/0.1199, allocations: 150.6 kB / 363.7 MB, free: 8.441 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.948e-05/0.12, allocations: 150.6 kB / 363.9 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.644e-05/0.1201, allocations: 158.5 kB / 364 MB, free: 8.137 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002774/0.1204, allocations: 449.9 kB / 364.4 MB, free: 7.648 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.049e-05/0.1204, allocations: 165.1 kB / 364.6 MB, free: 7.477 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.748e-05/0.1205, allocations: 80.14 kB / 364.7 MB, free: 7.395 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.337e-05/0.1205, allocations: 83.23 kB / 364.8 MB, free: 7.312 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001109/0.1206, allocations: 51.34 kB / 364.8 MB, free: 7.25 MB / 302.1 MB Notification: Performance of pre-optimization done (n=1): time 2.054e-06/0.1206, allocations: 0 / 364.8 MB, free: 7.25 MB / 302.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001189/0.1208, allocations: 29.7 kB / 364.8 MB, free: 7.215 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.455e-05/0.1208, allocations: 55.41 kB / 364.9 MB, free: 7.148 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.501e-05/0.1209, allocations: 105.8 kB / 365 MB, free: 7.035 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.3e-05/0.1209, allocations: 29.83 kB / 365 MB, free: 7 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.281e-05/0.1209, allocations: 88.08 kB / 365.1 MB, free: 6.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.413e-05/0.121, allocations: 3.906 kB / 365.1 MB, free: 6.906 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.126e-06/0.121, allocations: 0 / 365.1 MB, free: 6.906 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001019/0.1211, allocations: 318.8 kB / 365.4 MB, free: 6.586 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.522e-06/0.1211, allocations: 0 / 365.4 MB, free: 6.586 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.758e-06/0.1211, allocations: 0 / 365.4 MB, free: 6.586 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.512e-05/0.1211, allocations: 4 kB / 365.4 MB, free: 6.582 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.1211, allocations: 0 / 365.4 MB, free: 6.582 MB / 302.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.939e-05/0.1212, allocations: 41.7 kB / 365.5 MB, free: 6.535 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.1212, allocations: 6.5 kB / 365.5 MB, free: 6.531 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.558e-06/0.1212, allocations: 4 kB / 365.5 MB, free: 6.527 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.626e-06/0.1212, allocations: 0 / 365.5 MB, free: 6.527 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.784e-05/0.1212, allocations: 0 / 365.5 MB, free: 6.527 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.1213, allocations: 3.984 kB / 365.5 MB, free: 6.523 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.572e-05/0.1213, allocations: 0 / 365.5 MB, free: 6.523 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.198e-06/0.1213, allocations: 0 / 365.5 MB, free: 6.523 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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 6.671e-05/0.1214, allocations: 114.9 kB / 365.6 MB, free: 6.402 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.947e-06/0.1214, allocations: 7.984 kB / 365.6 MB, free: 6.395 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.685e-05/0.1214, allocations: 15 kB / 365.6 MB, free: 6.375 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.1214, allocations: 0 / 365.6 MB, free: 6.375 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.1214, allocations: 0 / 365.6 MB, free: 6.375 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.1214, allocations: 4 kB / 365.6 MB, free: 6.371 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001072/0.1215, allocations: 149.6 kB / 365.8 MB, free: 6.176 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.1215, allocations: 0 / 365.8 MB, free: 6.176 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.356e-06/0.1216, allocations: 0 / 365.8 MB, free: 6.176 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.965e-06/0.1216, allocations: 4 kB / 365.8 MB, free: 6.172 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.337e-06/0.1216, allocations: 7.953 kB / 365.8 MB, free: 6.164 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.1216, allocations: 4 kB / 365.8 MB, free: 6.16 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1216, allocations: 0 / 365.8 MB, free: 6.16 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.416e-05/0.1217, allocations: 57.12 kB / 365.9 MB, free: 6.086 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.141e-05/0.1217, allocations: 81.11 kB / 365.9 MB, free: 5.988 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.243e-05/0.1217, allocations: 0 / 365.9 MB, free: 5.988 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.601e-05/0.1217, allocations: 7.953 kB / 365.9 MB, free: 5.98 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.317e-06/0.1217, allocations: 0 / 365.9 MB, free: 5.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.834e-06/0.1218, allocations: 0 / 365.9 MB, free: 5.98 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.511e-05/0.1218, allocations: 91.3 kB / 366 MB, free: 5.891 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1218, allocations: 7.875 kB / 366 MB, free: 5.883 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000487/0.1223, allocations: 144 kB / 366.2 MB, free: 5.742 MB / 302.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: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * 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 Backend phase and start with SimCode phase: time 0.001095/0.1234, allocations: 0.979 MB / 367.2 MB, free: 4.797 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 5.642e-05/0.1235, allocations: 4 kB / 367.2 MB, free: 4.793 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.1235, allocations: 0 / 367.2 MB, free: 4.793 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.424e-06/0.1235, allocations: 12 kB / 367.2 MB, free: 4.781 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000136/0.1236, allocations: 7.391 kB / 367.2 MB, free: 4.777 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006889/0.1243, allocations: 406.4 kB / 367.6 MB, free: 4.328 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000206/0.1246, allocations: 0.6731 MB / 368.2 MB, free: 3.629 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.949e-05/0.1246, allocations: 12.11 kB / 368.3 MB, free: 3.617 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.977e-05/0.1246, allocations: 19.36 kB / 368.3 MB, free: 3.598 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1246, allocations: 0 / 368.3 MB, free: 3.598 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1871/0.3118, allocations: 4.078 MB / 372.4 MB, free: 19.38 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001306/0.3119, allocations: 220.8 kB / 372.6 MB, free: 19.14 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.044/2.356, allocations: 0 / 372.6 MB, free: 19.14 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel_res.mat --tempDir=temp_Modelica_trunk_Modelica_Utilities_Examples_readRealParameterModel_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Utilities_Examples_readRealParameterModel.fmu > Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Utilities.Examples.readRealParameterModel_res.mat does not exist to compare? outputFormat=mat