Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr KeyWordIO_KeyWordIO.Examples.ReadRealParameter.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.ReadRealParameter,fileNamePrefix="KeyWordIO_KeyWordIO_Examples_ReadRealParameter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(KeyWordIO.Examples.ReadRealParameter,fileNamePrefix="KeyWordIO_KeyWordIO_Examples_ReadRealParameter",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.001457/0.001457, allocations: 108 kB / 15.6 MB, free: 128 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.001673/0.001673, allocations: 198.3 kB / 16.53 MB, free: 6.668 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.327/1.327, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.006086/0.006086, allocations: 1.012 MB / 291.4 MB, free: 1.25 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 71.89 kB / 352.2 MB, free: 6.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08394/0.08516, allocations: 49.64 MB / 401.8 MB, free: 5.055 MB / 334.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.ReadRealParameter): time 0.002183/0.08739, allocations: 1.194 MB / 403 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002808/0.09021, allocations: 2.011 MB / 405 MB, free: 1.828 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.912e-05/0.09026, allocations: 4 kB / 405 MB, free: 1.824 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.726e-05/0.09028, allocations: 0 / 405 MB, free: 1.824 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/readRealParameter.mo:2:1-99:22:writable] Warning: Pure function 'KeyWordIO.readRealParameter' contains a call to impure function 'KeyWordIO.readLine'. Notification: Performance of NFTyping.typeBindings: time 0.001071/0.09137, allocations: 458.4 kB / 405.5 MB, free: 1.379 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.587e-06/0.09138, allocations: 0 / 405.5 MB, free: 1.379 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 4.521e-05/0.09143, allocations: 11.92 kB / 405.5 MB, free: 1.367 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.175e-05/0.09147, allocations: 0 / 405.5 MB, free: 1.367 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.555e-05/0.09149, allocations: 7.938 kB / 405.5 MB, free: 1.359 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002352/0.09173, allocations: 7.984 kB / 405.5 MB, free: 1.352 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.115e-06/0.09175, allocations: 0 / 405.5 MB, free: 1.352 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006091/0.09236, allocations: 443.5 kB / 405.9 MB, free: 0.918 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.001e-06/0.09239, allocations: 8 kB / 405.9 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 1.615e-05/0.09241, allocations: 7.938 kB / 405.9 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004399/0.09285, allocations: 347.5 kB / 406.3 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.09286, allocations: 0 / 406.3 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.09287, allocations: 0 / 406.3 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.09288, allocations: 0 / 406.3 MB, free: 0.5625 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.000405/0.09329, allocations: 415.6 kB / 406.7 MB, free: 112 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.09333, allocations: 11.97 kB / 406.7 MB, free: 100 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.525e-05/0.0934, allocations: 106 kB / 406.8 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.704e-05/0.09347, allocations: 84.22 kB / 406.9 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001585/0.09363, allocations: 243.6 kB / 407.1 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.518e-05/0.09369, allocations: 150.9 kB / 407.3 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.096e-05/0.09375, allocations: 162.5 kB / 407.4 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.245e-05/0.09382, allocations: 101 kB / 407.5 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.399e-05/0.09385, allocations: 75.28 kB / 407.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.034e-05/0.09391, allocations: 154.6 kB / 407.8 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.332e-05/0.09395, allocations: 150.6 kB / 407.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.388e-05/0.09402, allocations: 154.5 kB / 408 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002922/0.09432, allocations: 453.9 kB / 408.5 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.482e-05/0.0944, allocations: 173.1 kB / 408.7 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.053e-05/0.09444, allocations: 80.14 kB / 408.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.145e-05/0.09447, allocations: 75.28 kB / 408.8 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5e-05/0.09452, allocations: 109.8 kB / 408.9 MB, free: 13.74 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.092e-06/0.09453, allocations: 0 / 408.9 MB, free: 13.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 7.299e-05/0.09461, allocations: 41.59 kB / 409 MB, free: 13.69 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.926e-05/0.09467, allocations: 130.7 kB / 409.1 MB, free: 13.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.102e-05/0.09477, allocations: 101.8 kB / 409.2 MB, free: 13.44 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.117e-06/0.09479, allocations: 25.7 kB / 409.2 MB, free: 13.41 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.876e-05/0.09483, allocations: 84.14 kB / 409.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.482e-06/0.09484, allocations: 0 / 409.3 MB, free: 13.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.861e-05/0.09486, allocations: 9.719 kB / 409.3 MB, free: 13.31 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.766e-05/0.09496, allocations: 318.8 kB / 409.6 MB, free: 12.99 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.408e-06/0.09497, allocations: 0 / 409.6 MB, free: 12.99 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.344e-06/0.09498, allocations: 4 kB / 409.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.449e-05/0.09501, allocations: 75.28 kB / 409.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.863e-05/0.09504, allocations: 75.28 kB / 409.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.591e-05/0.0951, allocations: 37.58 kB / 409.8 MB, free: 12.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.925e-05/0.09514, allocations: 79.28 kB / 409.9 MB, free: 12.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.508e-05/0.09517, allocations: 75.28 kB / 410 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.811e-05/0.09523, allocations: 158.5 kB / 410.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.395e-05/0.09526, allocations: 83.28 kB / 410.2 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.084e-05/0.09532, allocations: 154.5 kB / 410.3 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.905e-05/0.09539, allocations: 79.22 kB / 410.4 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.831e-05/0.09543, allocations: 75.28 kB / 410.5 MB, free: 12.1 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 0.0001004/0.09554, allocations: 264.3 kB / 410.8 MB, free: 11.83 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.747e-05/0.0956, allocations: 113.1 kB / 410.9 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.085e-05/0.09566, allocations: 108.1 kB / 411 MB, free: 11.6 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.604e-05/0.09572, allocations: 184.2 kB / 411.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.075e-05/0.09578, allocations: 180.2 kB / 411.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.724e-05/0.09585, allocations: 180.2 kB / 411.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002265/0.09608, allocations: 413.1 kB / 411.9 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.523e-05/0.09612, allocations: 113 kB / 412 MB, free: 10.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.854e-05/0.09617, allocations: 101 kB / 412.1 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.516e-05/0.09624, allocations: 180.2 kB / 412.3 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.448e-05/0.09631, allocations: 184.2 kB / 412.5 MB, free: 9.988 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.131e-05/0.09638, allocations: 188.2 kB / 412.7 MB, free: 9.797 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.546e-05/0.09646, allocations: 180.3 kB / 412.8 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001327/0.09659, allocations: 304.1 kB / 413.1 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.173e-05/0.09667, allocations: 186.1 kB / 413.3 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.194e-05/0.09675, allocations: 184.2 kB / 413.5 MB, free: 8.898 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.915e-05/0.09682, allocations: 101 kB / 413.6 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.455e-05/0.0969, allocations: 184.3 kB / 413.8 MB, free: 8.605 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.704e-05/0.09694, allocations: 104.9 kB / 413.9 MB, free: 8.496 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.046e-05/0.09699, allocations: 91.27 kB / 414 MB, free: 8.406 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.09699, allocations: 0 / 414 MB, free: 8.406 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004707/0.09747, allocations: 124 kB / 414.1 MB, free: 8.285 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.001346/0.09882, allocations: 1.188 MB / 415.3 MB, free: 7.141 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 3.837e-05/0.09887, allocations: 7.938 kB / 415.3 MB, free: 7.133 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.09888, allocations: 0 / 415.3 MB, free: 7.133 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 1.292e-06/0.09889, allocations: 0 / 415.3 MB, free: 7.133 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003849/0.09928, allocations: 459.7 kB / 415.7 MB, free: 6.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00141/0.1007, allocations: 1.63 MB / 417.4 MB, free: 4.973 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002688/0.101, allocations: 0.6806 MB / 418 MB, free: 4.266 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.153e-05/0.101, allocations: 7.938 kB / 418 MB, free: 4.258 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.978e-05/0.101, allocations: 11.44 kB / 418 MB, free: 4.246 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.101, allocations: 0 / 418 MB, free: 4.246 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02154/0.1226, allocations: 3.961 MB / 422 MB, free: 336 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.991/7.114, allocations: 7.812 kB / 422 MB, free: 332 kB / 350.1 MB (rm -f KeyWordIO_KeyWordIO.Examples.ReadRealParameter.pipe ; mkfifo KeyWordIO_KeyWordIO.Examples.ReadRealParameter.pipe ; head -c 1048576 < KeyWordIO_KeyWordIO.Examples.ReadRealParameter.pipe >> ../files/KeyWordIO_KeyWordIO.Examples.ReadRealParameter.sim & python3 -m fmpy simulate --output-file KeyWordIO_KeyWordIO.Examples.ReadRealParameter_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_ReadRealParameter.fmu > KeyWordIO_KeyWordIO.Examples.ReadRealParameter.pipe 2>&1)