Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr KeyWordIO_KeyWordIO.Examples.ReadReal_m.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/package.mo", uses=false) Using package KeyWordIO with version 0.11.X (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/package.mo) 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(KeyWordIO.Examples.ReadReal_m,fileNamePrefix="KeyWordIO_KeyWordIO_Examples_ReadReal_m",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(KeyWordIO.Examples.ReadReal_m,fileNamePrefix="KeyWordIO_KeyWordIO_Examples_ReadReal_m",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.0007372/0.0007372, allocations: 86.56 kB / 15.06 MB, free: 1.09 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.000829/0.0008289, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.36/1.36, allocations: 223.3 MB / 240 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/package.mo): time 0.005448/0.005448, allocations: 0.9959 MB / 292.1 MB, free: 1.133 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002943/0.0002943, allocations: 8 kB / 353.3 MB, free: 2.332 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2719/0.2722, allocations: 50.63 MB / 403.9 MB, free: 9.801 MB / 286.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.ReadReal_m): time 0.001443/0.2737, allocations: 0.9273 MB / 404.9 MB, free: 9.77 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003029/0.2768, allocations: 1.927 MB / 406.8 MB, free: 8.953 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.51e-05/0.2768, allocations: 3.938 kB / 406.8 MB, free: 8.949 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.756e-05/0.2768, allocations: 1.891 kB / 406.8 MB, free: 8.949 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/readLine.mo:2:1-36:13:writable] Warning: Pure function ‘KeyWordIO.readLine‘ contains a call to impure function ‘Modelica.Utilities.Streams.readLine‘. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/readReal_m.mo:2:1-79:15:writable] Warning: Pure function ‘KeyWordIO.readReal_m‘ contains a call to impure function ‘KeyWordIO.readLine‘. Notification: Performance of NFTyping.typeBindings: time 0.001309/0.2782, allocations: 378.4 kB / 407.2 MB, free: 8.777 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.627e-06/0.2782, allocations: 1.062 kB / 407.2 MB, free: 8.777 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 4.332e-05/0.2782, allocations: 8.188 kB / 407.2 MB, free: 8.773 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.843e-05/0.2783, allocations: 4.672 kB / 407.2 MB, free: 8.77 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.094e-05/0.2783, allocations: 2.719 kB / 407.2 MB, free: 8.77 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003352/0.2786, allocations: 10.31 kB / 407.2 MB, free: 8.766 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.033e-06/0.2787, allocations: 0 / 407.2 MB, free: 8.766 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006782/0.2793, allocations: 442.4 kB / 407.6 MB, free: 8.641 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.52e-06/0.2794, allocations: 5.625 kB / 407.6 MB, free: 8.637 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 1.539e-05/0.2794, allocations: 27.23 kB / 407.6 MB, free: 8.605 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000349/0.2797, allocations: 246.3 kB / 407.9 MB, free: 8.531 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.2797, allocations: 0 / 407.9 MB, free: 8.531 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.745e-06/0.2798, allocations: 1.031 kB / 407.9 MB, free: 8.531 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.767e-06/0.2798, allocations: 0 / 407.9 MB, free: 8.531 MB / 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.0003435/0.2801, allocations: 411.9 kB / 408.3 MB, free: 8.129 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.2802, allocations: 9 kB / 408.3 MB, free: 8.129 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.968e-05/0.2802, allocations: 111.1 kB / 408.4 MB, free: 8.012 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.525e-05/0.2802, allocations: 84.25 kB / 408.5 MB, free: 7.93 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001131/0.2804, allocations: 244 kB / 408.7 MB, free: 7.656 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.325e-05/0.2804, allocations: 151.7 kB / 408.9 MB, free: 7.508 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.322e-05/0.2804, allocations: 151.7 kB / 409 MB, free: 7.359 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.2e-05/0.2805, allocations: 105.8 kB / 409.1 MB, free: 7.25 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.257e-05/0.2805, allocations: 75.28 kB / 409.2 MB, free: 7.176 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.958e-05/0.2805, allocations: 155.2 kB / 409.4 MB, free: 7.023 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.989e-05/0.2805, allocations: 150.6 kB / 409.5 MB, free: 6.875 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.6e-05/0.2806, allocations: 161 kB / 409.7 MB, free: 6.719 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001683/0.2807, allocations: 446.8 kB / 410.1 MB, free: 6.238 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.554e-05/0.2808, allocations: 175.5 kB / 410.3 MB, free: 6.059 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.667e-05/0.2808, allocations: 88.08 kB / 410.4 MB, free: 5.969 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.481e-05/0.2808, allocations: 75.28 kB / 410.4 MB, free: 5.895 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.087e-05/0.2809, allocations: 111.8 kB / 410.5 MB, free: 5.777 MB / 286.1 MB Notification: Performance of pre-optimization done (n=0): time 1.663e-06/0.2809, allocations: 0 / 410.5 MB, free: 5.777 MB / 286.1 MB Notification: Performance of matching and sorting (n=0): time 5.814e-05/0.2809, allocations: 31.7 kB / 410.6 MB, free: 5.742 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.092e-05/0.281, allocations: 131.8 kB / 410.7 MB, free: 5.602 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.747e-05/0.2811, allocations: 105.2 kB / 410.8 MB, free: 5.5 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.47e-06/0.2811, allocations: 25.7 kB / 410.8 MB, free: 5.469 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.074e-05/0.2811, allocations: 85.53 kB / 410.9 MB, free: 5.383 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.513e-06/0.2811, allocations: 0 / 410.9 MB, free: 5.383 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.2e-07/0.2811, allocations: 0 / 410.9 MB, free: 5.383 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 4.414e-05/0.2811, allocations: 316.8 kB / 411.2 MB, free: 5.066 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.266e-06/0.2812, allocations: 0 / 411.2 MB, free: 5.066 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.605e-06/0.2812, allocations: 8.828 kB / 411.2 MB, free: 5.059 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.221e-05/0.2812, allocations: 76.31 kB / 411.3 MB, free: 4.984 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.508e-06/0.2812, allocations: 76.34 kB / 411.4 MB, free: 4.91 MB / 286.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 4.627e-05/0.2812, allocations: 33.11 kB / 411.4 MB, free: 4.875 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.106e-05/0.2813, allocations: 80.72 kB / 411.5 MB, free: 4.801 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.42e-05/0.2813, allocations: 80.17 kB / 411.6 MB, free: 4.723 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.125e-05/0.2813, allocations: 156.8 kB / 411.7 MB, free: 4.57 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.268e-05/0.2813, allocations: 81.42 kB / 411.8 MB, free: 4.492 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.235e-05/0.2814, allocations: 155.4 kB / 411.9 MB, free: 4.34 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.989e-05/0.2815, allocations: 80.31 kB / 412 MB, free: 4.262 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.323e-05/0.2815, allocations: 76.97 kB / 412.1 MB, free: 4.188 MB / 286.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * 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.513e-05/0.2816, allocations: 259.4 kB / 412.4 MB, free: 3.926 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.865e-05/0.2816, allocations: 110.6 kB / 412.5 MB, free: 3.812 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.581e-05/0.2816, allocations: 106.9 kB / 412.6 MB, free: 3.699 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.221e-05/0.2817, allocations: 185.8 kB / 412.7 MB, free: 3.512 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.671e-05/0.2817, allocations: 182.1 kB / 412.9 MB, free: 3.328 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.981e-05/0.2817, allocations: 180.4 kB / 413.1 MB, free: 3.148 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001299/0.2819, allocations: 406.7 kB / 413.5 MB, free: 2.699 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.299e-05/0.2819, allocations: 106 kB / 413.6 MB, free: 2.59 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.509e-05/0.2819, allocations: 103.3 kB / 413.7 MB, free: 2.484 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.421e-05/0.2819, allocations: 182 kB / 413.9 MB, free: 2.301 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.646e-05/0.282, allocations: 181.8 kB / 414.1 MB, free: 2.117 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.171e-05/0.282, allocations: 185.3 kB / 414.2 MB, free: 1.93 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-05/0.282, allocations: 186.4 kB / 414.4 MB, free: 1.742 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.711e-05/0.2821, allocations: 310.7 kB / 414.7 MB, free: 1.422 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.302e-05/0.2821, allocations: 180.9 kB / 414.9 MB, free: 1.223 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.641e-05/0.2822, allocations: 192.1 kB / 415.1 MB, free: 1.031 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.74e-05/0.2823, allocations: 101.6 kB / 415.2 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.431e-05/0.2823, allocations: 189.8 kB / 415.4 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.511e-05/0.2823, allocations: 103.4 kB / 415.5 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of sorting global known variables: time 3.171e-05/0.2823, allocations: 86.66 kB / 415.6 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2824, allocations: 0.9375 kB / 415.6 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004542/0.2828, allocations: 134.8 kB / 415.7 MB, free: 0.5195 MB / 286.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * 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.001199/0.284, allocations: 1.216 MB / 416.9 MB, free: 15.58 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 3.003e-05/0.2841, allocations: 1.469 kB / 416.9 MB, free: 15.58 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.2841, allocations: 0 / 416.9 MB, free: 15.58 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.843e-06/0.2841, allocations: 4.734 kB / 416.9 MB, free: 15.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003542/0.2844, allocations: 0.5198 MB / 417.4 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007551/0.2852, allocations: 0.6162 MB / 418 MB, free: 14.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002151/0.2854, allocations: 0.6709 MB / 418.7 MB, free: 13.78 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.366e-05/0.2854, allocations: 3.5 kB / 418.7 MB, free: 13.78 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.887e-05/0.2855, allocations: 14.64 kB / 418.7 MB, free: 13.77 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2855, allocations: 0 / 418.7 MB, free: 13.77 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01595/0.3014, allocations: 3.935 MB / 422.7 MB, free: 13.35 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001591/0.3016, allocations: 201.1 kB / 422.9 MB, free: 13.11 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.771/2.072, allocations: 0 / 422.9 MB, free: 13.11 MB / 302.1 MB (rm -f KeyWordIO_KeyWordIO.Examples.ReadReal_m.pipe ; mkfifo KeyWordIO_KeyWordIO.Examples.ReadReal_m.pipe ; head -c 1048576 < KeyWordIO_KeyWordIO.Examples.ReadReal_m.pipe >> ../files/KeyWordIO_KeyWordIO.Examples.ReadReal_m.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_KeyWordIO_KeyWordIO_Examples_ReadReal_m_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 KeyWordIO_KeyWordIO_Examples_ReadReal_m.fmu > KeyWordIO_KeyWordIO.Examples.ReadReal_m.pipe 2>&1) Environment - environmentSimulation: