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.12.0/package.mo", uses=false) Using package KeyWordIO with version 0.12.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/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.004959/0.00496, allocations: 103 kB / 15.74 MB, free: 6.059 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.001382/0.001382, allocations: 189.2 kB / 16.67 MB, free: 5.969 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.407/1.407, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/package.mo): time 0.00736/0.00736, allocations: 1.016 MB / 291.6 MB, free: 13.73 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001869/0.001869, allocations: 67.89 kB / 402.5 MB, free: 32.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07377/0.07565, allocations: 49.65 MB / 452.1 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.ReadReal_m): time 0.002127/0.07781, allocations: 1.203 MB / 453.3 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00309/0.08092, allocations: 2.073 MB / 455.4 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.79e-05/0.08095, allocations: 0 / 455.4 MB, free: 11.17 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.918e-05/0.08098, allocations: 0 / 455.4 MB, free: 11.17 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/readLine.mo:2:1-36:13:writable] Warning: Pure function 'KeyWordIO.readLine' contains a call to impure function 'KeyWordIO.readLineWithoutCache'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/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.001173/0.08216, allocations: 498.3 kB / 455.9 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.916e-06/0.08217, allocations: 0 / 455.9 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 4.037e-05/0.08222, allocations: 15.86 kB / 455.9 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.143e-05/0.08226, allocations: 0 / 455.9 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.733e-05/0.08228, allocations: 4 kB / 455.9 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002103/0.08249, allocations: 15.86 kB / 455.9 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.968e-06/0.08252, allocations: 8 kB / 455.9 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007701/0.08329, allocations: 0.5073 MB / 456.5 MB, free: 10.13 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.119e-05/0.08332, allocations: 7.938 kB / 456.5 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 1.642e-05/0.08334, allocations: 3.938 kB / 456.5 MB, free: 10.12 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005436/0.08389, allocations: 383.4 kB / 456.8 MB, free: 9.746 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.0839, allocations: 0 / 456.8 MB, free: 9.746 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.143e-06/0.08391, allocations: 0 / 456.8 MB, free: 9.746 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.08391, allocations: 0 / 456.8 MB, free: 9.746 MB / 334.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.0004752/0.08439, allocations: 422.5 kB / 457.3 MB, free: 9.285 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/0.08444, allocations: 12.03 kB / 457.3 MB, free: 9.273 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.101e-05/0.08451, allocations: 110 kB / 457.4 MB, free: 9.156 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.171e-05/0.08458, allocations: 80.16 kB / 457.5 MB, free: 9.078 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001812/0.08477, allocations: 247.6 kB / 457.7 MB, free: 8.797 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.803e-05/0.08485, allocations: 154.9 kB / 457.8 MB, free: 8.645 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.269e-05/0.08492, allocations: 162.5 kB / 458 MB, free: 8.484 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.229e-05/0.08499, allocations: 105 kB / 458.1 MB, free: 8.375 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.364e-05/0.08503, allocations: 75.28 kB / 458.2 MB, free: 8.301 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.215e-05/0.0851, allocations: 150.6 kB / 458.3 MB, free: 8.152 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.111e-05/0.08517, allocations: 154.6 kB / 458.5 MB, free: 8 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.491e-05/0.08523, allocations: 154.5 kB / 458.6 MB, free: 7.848 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003125/0.08555, allocations: 449.9 kB / 459.1 MB, free: 7.359 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.653e-05/0.08566, allocations: 173.1 kB / 459.2 MB, free: 7.18 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.824e-05/0.0857, allocations: 80.14 kB / 459.3 MB, free: 7.098 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.624e-05/0.08574, allocations: 75.28 kB / 459.4 MB, free: 7.023 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.456e-05/0.0858, allocations: 113.9 kB / 459.5 MB, free: 6.902 MB / 334.1 MB Notification: Performance of pre-optimization done (n=0): time 9.11e-07/0.08581, allocations: 4 kB / 459.5 MB, free: 6.898 MB / 334.1 MB Notification: Performance of matching and sorting (n=0): time 7.407e-05/0.08589, allocations: 37.58 kB / 459.5 MB, free: 6.855 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.258e-05/0.08597, allocations: 126.7 kB / 459.7 MB, free: 6.719 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001035/0.08608, allocations: 105.9 kB / 459.8 MB, free: 6.605 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.556e-05/0.0861, allocations: 25.7 kB / 459.8 MB, free: 6.574 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.993e-05/0.08616, allocations: 92.12 kB / 459.9 MB, free: 6.48 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.483e-06/0.08617, allocations: 0 / 459.9 MB, free: 6.48 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.122e-05/0.0862, allocations: 9.719 kB / 459.9 MB, free: 6.465 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.08635, allocations: 314.8 kB / 460.2 MB, free: 6.148 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.529e-06/0.08636, allocations: 0 / 460.2 MB, free: 6.148 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.514e-06/0.08637, allocations: 0 / 460.2 MB, free: 6.148 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.761e-05/0.08641, allocations: 79.28 kB / 460.3 MB, free: 6.07 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.35e-05/0.08645, allocations: 75.28 kB / 460.4 MB, free: 5.996 MB / 334.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.766e-05/0.08651, allocations: 37.52 kB / 460.4 MB, free: 5.953 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.056e-05/0.08656, allocations: 83.28 kB / 460.5 MB, free: 5.871 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.446e-05/0.0866, allocations: 75.28 kB / 460.5 MB, free: 5.797 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.241e-05/0.08668, allocations: 166.5 kB / 460.7 MB, free: 5.633 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.843e-05/0.08672, allocations: 75.28 kB / 460.8 MB, free: 5.559 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.574e-05/0.08679, allocations: 154.6 kB / 460.9 MB, free: 5.406 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.29e-05/0.08688, allocations: 79.22 kB / 461 MB, free: 5.328 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.899e-05/0.08692, allocations: 75.28 kB / 461.1 MB, free: 5.254 MB / 334.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001261/0.08705, allocations: 265 kB / 461.3 MB, free: 4.984 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.191e-05/0.08713, allocations: 112.9 kB / 461.5 MB, free: 4.867 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.546e-05/0.08719, allocations: 112 kB / 461.6 MB, free: 4.75 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-05/0.08727, allocations: 176.3 kB / 461.7 MB, free: 4.57 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.516e-05/0.08735, allocations: 184.2 kB / 461.9 MB, free: 4.383 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.643e-05/0.08744, allocations: 176.3 kB / 462.1 MB, free: 4.203 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002582/0.0877, allocations: 417.1 kB / 462.5 MB, free: 3.738 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.724e-05/0.08776, allocations: 105 kB / 462.6 MB, free: 3.629 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.319e-05/0.08781, allocations: 101 kB / 462.7 MB, free: 3.523 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.086e-05/0.08789, allocations: 184.2 kB / 462.9 MB, free: 3.336 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.639e-05/0.08797, allocations: 180.3 kB / 463 MB, free: 3.152 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.333e-05/0.08806, allocations: 188.2 kB / 463.2 MB, free: 2.961 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.353e-05/0.08814, allocations: 176.3 kB / 463.4 MB, free: 2.781 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001546/0.0883, allocations: 312.1 kB / 463.7 MB, free: 2.453 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.055e-05/0.08839, allocations: 178.1 kB / 463.9 MB, free: 2.254 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.493e-05/0.08848, allocations: 188.2 kB / 464.1 MB, free: 2.062 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.339e-05/0.08857, allocations: 101.3 kB / 464.2 MB, free: 1.957 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.107e-05/0.08865, allocations: 188.2 kB / 464.3 MB, free: 1.766 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.452e-05/0.0887, allocations: 105 kB / 464.5 MB, free: 1.656 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.26e-05/0.08876, allocations: 87.28 kB / 464.5 MB, free: 1.57 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.08877, allocations: 0 / 464.5 MB, free: 1.57 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000482/0.08925, allocations: 139.5 kB / 464.7 MB, free: 1.434 MB / 334.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001504/0.09077, allocations: 1.227 MB / 465.9 MB, free: 264 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 3.719e-05/0.09081, allocations: 4 kB / 465.9 MB, free: 260 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.09082, allocations: 0 / 465.9 MB, free: 260 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 1.153e-06/0.09083, allocations: 0 / 465.9 MB, free: 260 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003919/0.09123, allocations: 459.7 kB / 466.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001338/0.09257, allocations: 1.653 MB / 468 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002833/0.09287, allocations: 0.6766 MB / 468.7 MB, free: 13.37 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.19e-05/0.09289, allocations: 4 kB / 468.7 MB, free: 13.36 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.103e-05/0.09293, allocations: 15.42 kB / 468.7 MB, free: 13.35 MB / 350.1 MB Notification: Performance of SimCode: time 2.71e-07/0.09293, allocations: 0 / 468.7 MB, free: 13.35 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02713/0.1201, allocations: 4.188 MB / 472.9 MB, free: 9.223 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.794/7.914, allocations: 20.77 kB / 472.9 MB, free: 9.203 MB / 350.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 & python3 -m fmpy simulate --output-file KeyWordIO_KeyWordIO.Examples.ReadReal_m_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 KeyWordIO_KeyWordIO_Examples_ReadReal_m.fmu > KeyWordIO_KeyWordIO.Examples.ReadReal_m.pipe 2>&1)