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-master/package.mo", uses=false) Using package KeyWordIO with version 0.11.X (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/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.001367/0.001367, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 195.5 kB / 16.53 MB, free: 6.391 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.324/1.324, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.006242/0.006242, allocations: 0.9978 MB / 291.4 MB, free: 1.254 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 63.91 kB / 352.2 MB, free: 6.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07582/0.07708, allocations: 49.65 MB / 401.8 MB, free: 5.047 MB / 334.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.ReadReal_m): time 0.00205/0.07917, allocations: 1.204 MB / 403 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002779/0.08196, allocations: 2.073 MB / 405.1 MB, free: 1.75 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.722e-05/0.08199, allocations: 0 / 405.1 MB, free: 1.75 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.656e-05/0.08202, allocations: 0 / 405.1 MB, free: 1.75 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/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.11.0-master/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.001131/0.08316, allocations: 494.4 kB / 405.6 MB, free: 1.266 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.075e-06/0.08317, allocations: 0 / 405.6 MB, free: 1.266 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 3.535e-05/0.08322, allocations: 7.938 kB / 405.6 MB, free: 1.258 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.393e-05/0.08325, allocations: 0 / 405.6 MB, free: 1.258 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.662e-05/0.08328, allocations: 11.94 kB / 405.6 MB, free: 1.246 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002233/0.08351, allocations: 15.98 kB / 405.6 MB, free: 1.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.865e-06/0.08353, allocations: 0 / 405.6 MB, free: 1.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006083/0.08414, allocations: 467.5 kB / 406.1 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.077e-06/0.08416, allocations: 3.984 kB / 406.1 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 1.594e-05/0.08418, allocations: 11.92 kB / 406.1 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004556/0.08464, allocations: 375.3 kB / 406.4 MB, free: 400 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.08465, allocations: 4 kB / 406.4 MB, free: 396 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.08466, allocations: 0 / 406.4 MB, free: 396 kB / 334.1 MB Notification: Performance of Transformations before backend: time 4.408e-06/0.08467, allocations: 0 / 406.4 MB, free: 396 kB / 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.0003988/0.08507, allocations: 411.7 kB / 406.8 MB, free: 15.94 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.08512, allocations: 16.03 kB / 406.9 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.297e-05/0.08517, allocations: 106 kB / 407 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.53e-05/0.08523, allocations: 80.12 kB / 407 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001332/0.08537, allocations: 247.7 kB / 407.3 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.113e-05/0.08541, allocations: 150.9 kB / 407.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.787e-05/0.08546, allocations: 154.5 kB / 407.6 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.079e-05/0.08551, allocations: 108.9 kB / 407.7 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.294e-05/0.08554, allocations: 75.28 kB / 407.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.884e-05/0.08559, allocations: 150.6 kB / 407.9 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.95e-05/0.08563, allocations: 154.6 kB / 408.1 MB, free: 14.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.157e-05/0.08568, allocations: 154.6 kB / 408.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002305/0.08591, allocations: 449.9 kB / 408.7 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.502e-05/0.08599, allocations: 181 kB / 408.8 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.602e-05/0.08602, allocations: 80.14 kB / 408.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.311e-05/0.08605, allocations: 79.27 kB / 409 MB, free: 13.67 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.04e-05/0.08609, allocations: 105.8 kB / 409.1 MB, free: 13.56 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 9.12e-07/0.0861, allocations: 4 kB / 409.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 6.371e-05/0.08617, allocations: 33.69 kB / 409.1 MB, free: 13.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.877e-05/0.08622, allocations: 130.6 kB / 409.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.537e-05/0.08631, allocations: 101.9 kB / 409.4 MB, free: 13.27 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.175e-06/0.08633, allocations: 29.64 kB / 409.4 MB, free: 13.23 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.836e-05/0.08636, allocations: 84.12 kB / 409.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.172e-06/0.08637, allocations: 0 / 409.5 MB, free: 13.14 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.157e-05/0.0864, allocations: 13.72 kB / 409.5 MB, free: 13.12 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.618e-05/0.08649, allocations: 322.8 kB / 409.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.657e-06/0.0865, allocations: 0 / 409.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.254e-06/0.0865, allocations: 0 / 409.8 MB, free: 12.8 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.121e-05/0.08653, allocations: 75.28 kB / 409.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.856e-05/0.08655, allocations: 75.28 kB / 409.9 MB, free: 12.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.538e-05/0.08661, allocations: 33.64 kB / 410 MB, free: 12.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.865e-05/0.08665, allocations: 79.28 kB / 410.1 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.24e-05/0.08667, allocations: 79.22 kB / 410.1 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.829e-05/0.08673, allocations: 162.5 kB / 410.3 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.204e-05/0.08676, allocations: 83.22 kB / 410.4 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.815e-05/0.0868, allocations: 150.6 kB / 410.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.125e-05/0.08689, allocations: 75.53 kB / 410.6 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.181e-05/0.08692, allocations: 83.22 kB / 410.7 MB, free: 11.91 MB / 350.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 8.951e-05/0.08701, allocations: 268.3 kB / 410.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.335e-05/0.08707, allocations: 104.9 kB / 411 MB, free: 11.53 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.044e-05/0.08712, allocations: 120 kB / 411.2 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.614e-05/0.08717, allocations: 176.3 kB / 411.3 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.672e-05/0.08722, allocations: 180.3 kB / 411.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.78e-05/0.08727, allocations: 184.2 kB / 411.7 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001861/0.08747, allocations: 409.2 kB / 412.1 MB, free: 10.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.899e-05/0.0875, allocations: 104.9 kB / 412.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.988e-05/0.08754, allocations: 105 kB / 412.3 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.445e-05/0.08759, allocations: 180.3 kB / 412.5 MB, free: 9.992 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.035e-05/0.08764, allocations: 180.2 kB / 412.6 MB, free: 9.809 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.417e-05/0.08769, allocations: 180.3 kB / 412.8 MB, free: 9.625 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.348e-05/0.08775, allocations: 188.2 kB / 413 MB, free: 9.434 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001064/0.08786, allocations: 300.1 kB / 413.3 MB, free: 9.117 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.438e-05/0.08793, allocations: 186 kB / 413.5 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.995e-05/0.08799, allocations: 184.3 kB / 413.7 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.207e-05/0.08807, allocations: 108.9 kB / 413.8 MB, free: 8.609 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.517e-05/0.08813, allocations: 184.2 kB / 413.9 MB, free: 8.422 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.872e-05/0.08816, allocations: 101 kB / 414 MB, free: 8.316 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.204e-05/0.08821, allocations: 87.22 kB / 414.1 MB, free: 8.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08822, allocations: 0 / 414.1 MB, free: 8.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004505/0.08867, allocations: 139.9 kB / 414.3 MB, free: 8.094 MB / 350.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.001181/0.08986, allocations: 1.218 MB / 415.5 MB, free: 6.926 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 2.75e-05/0.0899, allocations: 0 / 415.5 MB, free: 6.926 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.08991, allocations: 0 / 415.5 MB, free: 6.926 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.815e-06/0.08991, allocations: 3.938 kB / 415.5 MB, free: 6.922 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003382/0.09026, allocations: 471.5 kB / 415.9 MB, free: 6.461 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001134/0.0914, allocations: 1.654 MB / 417.6 MB, free: 4.73 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001928/0.0916, allocations: 0.6766 MB / 418.3 MB, free: 4.027 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.019e-05/0.09162, allocations: 4.031 kB / 418.3 MB, free: 4.023 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.979e-05/0.09166, allocations: 15.42 kB / 418.3 MB, free: 4.008 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.09166, allocations: 4 kB / 418.3 MB, free: 4.004 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1646/0.2562, allocations: 4.157 MB / 422.5 MB, free: 53.49 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.841/7.098, allocations: 2.969 kB / 422.5 MB, free: 53.49 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)