Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.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.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_4_0_0_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_4_0_0_Modelica_Utilities_Examples_readRealParameterModel",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.0009265/0.0009264, allocations: 96.41 kB / 16.3 MB, free: 5.562 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.0009451/0.0009452, allocations: 184 kB / 17.2 MB, free: 5.496 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.38/1.38, allocations: 223.2 MB / 241.1 MB, free: 288 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002533/0.0002533, allocations: 4 kB / 300.8 MB, free: 6.352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1212, allocations: 50.41 MB / 351.2 MB, free: 3.926 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001317/0.1225, allocations: 0.9118 MB / 352.1 MB, free: 3.004 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002663/0.1252, allocations: 1.807 MB / 353.9 MB, free: 1.188 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.186e-05/0.1252, allocations: 0 / 353.9 MB, free: 1.188 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.65e-05/0.1253, allocations: 0 / 353.9 MB, free: 1.188 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Utilities/Examples.mo:279:3-372: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.0009682/0.1262, allocations: 330.3 kB / 354.3 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.29e-05/0.1263, allocations: 4 kB / 354.3 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 5.106e-05/0.1263, allocations: 7.984 kB / 354.3 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.417e-05/0.1264, allocations: 0 / 354.3 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.249e-05/0.1264, allocations: 4 kB / 354.3 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001177/0.1265, allocations: 11.92 kB / 354.3 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.063e-05/0.1265, allocations: 3.938 kB / 354.3 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005538/0.1271, allocations: 355.6 kB / 354.6 MB, free: 500 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.38e-05/0.1271, allocations: 7.984 kB / 354.6 MB, free: 492 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.595e-05/0.1272, allocations: 29.64 kB / 354.7 MB, free: 456 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003404/0.1275, allocations: 219.6 kB / 354.9 MB, free: 236 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.505e-06/0.1275, allocations: 0 / 354.9 MB, free: 236 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.1275, allocations: 0 / 354.9 MB, free: 236 kB / 286.1 MB Notification: Performance of Transformations before backend: time 3.306e-06/0.1275, allocations: 0 / 354.9 MB, free: 236 kB / 286.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.000466/0.128, allocations: 408.1 kB / 355.3 MB, free: 15.79 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.1281, allocations: 8.031 kB / 355.3 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.765e-05/0.1281, allocations: 113.8 kB / 355.4 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.237e-05/0.1282, allocations: 79.23 kB / 355.5 MB, free: 15.58 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002492/0.1285, allocations: 242.6 kB / 355.7 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.178e-05/0.1285, allocations: 150.6 kB / 355.9 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.317e-05/0.1286, allocations: 154.5 kB / 356 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.541e-05/0.1287, allocations: 105 kB / 356.1 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.388e-05/0.1287, allocations: 83.28 kB / 356.2 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.135e-05/0.1288, allocations: 150.6 kB / 356.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.728e-05/0.1289, allocations: 154.5 kB / 356.5 MB, free: 14.51 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.107e-05/0.1289, allocations: 154.5 kB / 356.6 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003233/0.1292, allocations: 449.9 kB / 357.1 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.81e-05/0.1293, allocations: 169.1 kB / 357.2 MB, free: 13.69 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.655e-05/0.1294, allocations: 75.28 kB / 357.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001391/0.1295, allocations: 43.36 kB / 357.4 MB, free: 13.56 MB / 302.1 MB Notification: Performance of pre-optimization done (n=1): time 2.134e-06/0.1295, allocations: 0 / 357.4 MB, free: 13.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001371/0.1297, allocations: 37.69 kB / 357.4 MB, free: 13.52 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.724e-05/0.1297, allocations: 55.53 kB / 357.5 MB, free: 13.45 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.21e-05/0.1298, allocations: 105.8 kB / 357.6 MB, free: 13.34 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.92e-05/0.1299, allocations: 29.69 kB / 357.6 MB, free: 13.3 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.174e-05/0.1299, allocations: 80.14 kB / 357.7 MB, free: 13.22 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.517e-05/0.1299, allocations: 7.844 kB / 357.7 MB, free: 13.21 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.334e-06/0.1299, allocations: 0 / 357.7 MB, free: 13.21 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.1301, allocations: 314.8 kB / 358 MB, free: 12.9 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.733e-06/0.1301, allocations: 0 / 358 MB, free: 12.9 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.45e-06/0.1301, allocations: 7.938 kB / 358 MB, free: 12.89 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.805e-05/0.1301, allocations: 8 kB / 358 MB, free: 12.88 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.1301, allocations: 0 / 358 MB, free: 12.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.474e-05/0.1302, allocations: 29.7 kB / 358 MB, free: 12.85 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.309e-05/0.1302, allocations: 7.984 kB / 358 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.346e-06/0.1302, allocations: 0 / 358 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.306e-06/0.1302, allocations: 0 / 358 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.966e-05/0.1302, allocations: 8 kB / 358 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.177e-06/0.1302, allocations: 0 / 358 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.783e-05/0.1303, allocations: 8.047 kB / 358 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.001e-06/0.1303, allocations: 3.984 kB / 358.1 MB, free: 12.82 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.308e-05/0.1303, allocations: 109.8 kB / 358.2 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.638e-06/0.1304, allocations: 4.188 kB / 358.2 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.308e-05/0.1304, allocations: 7.109 kB / 358.2 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-06/0.1304, allocations: 0 / 358.2 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.1304, allocations: 3.984 kB / 358.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.1304, allocations: 0 / 358.2 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000122/0.1305, allocations: 153.6 kB / 358.3 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.1305, allocations: 3.938 kB / 358.3 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.261e-06/0.1306, allocations: 7.984 kB / 358.3 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-06/0.1306, allocations: 0 / 358.3 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.582e-06/0.1306, allocations: 0 / 358.3 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.107e-06/0.1306, allocations: 4 kB / 358.3 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.1306, allocations: 0 / 358.3 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.087e-05/0.1307, allocations: 57.09 kB / 358.4 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.839e-05/0.1307, allocations: 81.09 kB / 358.5 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.401e-05/0.1307, allocations: 8.031 kB / 358.5 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.247e-05/0.1308, allocations: 0 / 358.5 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.824e-06/0.1308, allocations: 0 / 358.5 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.573e-06/0.1308, allocations: 0 / 358.5 MB, free: 12.29 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.868e-05/0.1308, allocations: 83.28 kB / 358.6 MB, free: 12.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.435e-05/0.1309, allocations: 0 / 358.6 MB, free: 12.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003994/0.1313, allocations: 131.9 kB / 358.7 MB, free: 12.08 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.00104/0.1323, allocations: 0.9725 MB / 359.7 MB, free: 11.15 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 4.78e-05/0.1324, allocations: 8 kB / 359.7 MB, free: 11.14 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.1324, allocations: 0 / 359.7 MB, free: 11.14 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.171e-06/0.1324, allocations: 4 kB / 359.7 MB, free: 11.14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.792e-05/0.1325, allocations: 4 kB / 359.7 MB, free: 11.14 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006059/0.1331, allocations: 410.5 kB / 360.1 MB, free: 10.68 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002176/0.1333, allocations: 0.677 MB / 360.8 MB, free: 9.98 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.545e-05/0.1334, allocations: 7.984 kB / 360.8 MB, free: 9.973 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.703e-05/0.1334, allocations: 11.44 kB / 360.8 MB, free: 9.961 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1334, allocations: 0 / 360.8 MB, free: 9.961 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01505/0.1485, allocations: 3.65 MB / 364.4 MB, free: 6.438 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002144/0.1487, allocations: 228.4 kB / 364.7 MB, free: 6.191 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.653/1.802, allocations: 0 / 364.7 MB, free: 6.191 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; mkfifo Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe >> ../files/Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Utilities_Examples_readRealParameterModel_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Utilities_Examples_readRealParameterModel.fmu > Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Utilities.Examples.readRealParameterModel_res.mat does not exist to compare? outputFormat=mat