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.004637/0.004637, allocations: 99.34 kB / 15.73 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.001107/0.001107, allocations: 195.1 kB / 16.67 MB, free: 5.977 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.329/1.329, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.006438/0.006438, allocations: 1 MB / 291.5 MB, free: 1.18 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001398/0.001398, allocations: 55.91 kB / 402.5 MB, free: 4.488 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2181/0.2195, allocations: 49.63 MB / 452.1 MB, free: 22.1 MB / 350.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.ReadRealParameter): time 0.001735/0.2213, allocations: 1.209 MB / 453.3 MB, free: 21.25 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002203/0.2235, allocations: 2.029 MB / 455.3 MB, free: 19.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.78e-05/0.2235, allocations: 0 / 455.3 MB, free: 19.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.77e-05/0.2236, allocations: 0 / 455.3 MB, free: 19.86 MB / 350.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.0009885/0.2246, allocations: 451.9 kB / 455.8 MB, free: 19.67 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.567e-06/0.2246, allocations: 0 / 455.8 MB, free: 19.67 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.629e-05/0.2246, allocations: 15.03 kB / 455.8 MB, free: 19.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.349e-05/0.2247, allocations: 0.7031 kB / 455.8 MB, free: 19.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.461e-05/0.2247, allocations: 3.156 kB / 455.8 MB, free: 19.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01733/0.242, allocations: 12.08 kB / 455.8 MB, free: 19.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.763e-05/0.2421, allocations: 0 / 455.8 MB, free: 19.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001051/0.2431, allocations: 497.1 kB / 456.3 MB, free: 19.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.007e-05/0.2432, allocations: 7.984 kB / 456.3 MB, free: 19.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.944e-05/0.2432, allocations: 2.688 kB / 456.3 MB, free: 19.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005912/0.2438, allocations: 345.8 kB / 456.6 MB, free: 19.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.2438, allocations: 0 / 456.6 MB, free: 19.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2438, allocations: 0 / 456.6 MB, free: 19.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.2438, allocations: 0 / 456.6 MB, free: 19.39 MB / 350.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.0003473/0.2442, allocations: 422 kB / 457.1 MB, free: 18.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.2442, allocations: 8.969 kB / 457.1 MB, free: 18.98 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.31e-05/0.2443, allocations: 110 kB / 457.2 MB, free: 18.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.56e-05/0.2443, allocations: 80.17 kB / 457.2 MB, free: 18.78 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.704e-05/0.2444, allocations: 242.4 kB / 457.5 MB, free: 18.51 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.751e-05/0.2444, allocations: 157.4 kB / 457.6 MB, free: 18.36 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.99e-05/0.2445, allocations: 158.5 kB / 457.8 MB, free: 18.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 3.564e-05/0.2445, allocations: 104.9 kB / 457.9 MB, free: 18.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.168e-05/0.2445, allocations: 83.22 kB / 458 MB, free: 18.01 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.77e-05/0.2446, allocations: 150.6 kB / 458.1 MB, free: 17.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.683e-05/0.2446, allocations: 150.6 kB / 458.3 MB, free: 17.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.89e-05/0.2446, allocations: 153.4 kB / 458.4 MB, free: 17.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001734/0.2448, allocations: 445.5 kB / 458.9 MB, free: 17.09 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.798e-05/0.2448, allocations: 180 kB / 459 MB, free: 16.9 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.428e-05/0.2448, allocations: 80.14 kB / 459.1 MB, free: 16.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.269e-05/0.2449, allocations: 75.28 kB / 459.2 MB, free: 16.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.9e-05/0.2449, allocations: 105.8 kB / 459.3 MB, free: 16.63 MB / 350.1 MB Notification: Performance of pre-optimization done (n=0): time 1.102e-06/0.2449, allocations: 2.969 kB / 459.3 MB, free: 16.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=0): time 6.395e-05/0.245, allocations: 33.7 kB / 459.3 MB, free: 16.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.431e-05/0.245, allocations: 134.6 kB / 459.5 MB, free: 16.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.616e-05/0.2451, allocations: 99.41 kB / 459.6 MB, free: 16.35 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.5e-06/0.2451, allocations: 25.7 kB / 459.6 MB, free: 16.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.828e-05/0.2451, allocations: 87.39 kB / 459.7 MB, free: 16.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.473e-06/0.2451, allocations: 0 / 459.7 MB, free: 16.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.646e-05/0.2451, allocations: 9.719 kB / 459.7 MB, free: 16.22 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.206e-05/0.2452, allocations: 314.2 kB / 460 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.799e-06/0.2452, allocations: 4 kB / 460 MB, free: 15.9 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.895e-06/0.2452, allocations: 3.031 kB / 460 MB, free: 15.9 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.241e-05/0.2452, allocations: 75.28 kB / 460.1 MB, free: 15.83 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.307e-06/0.2452, allocations: 75.28 kB / 460.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 5.195e-05/0.2453, allocations: 33.08 kB / 460.2 MB, free: 15.72 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.18e-05/0.2453, allocations: 80.97 kB / 460.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.383e-05/0.2453, allocations: 79.22 kB / 460.3 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.687e-05/0.2454, allocations: 158.6 kB / 460.5 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.485e-05/0.2454, allocations: 90.62 kB / 460.6 MB, free: 15.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.312e-05/0.2454, allocations: 153.6 kB / 460.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.409e-05/0.2455, allocations: 75.28 kB / 460.8 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.052e-05/0.2455, allocations: 79.22 kB / 460.9 MB, free: 15.02 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 6.166e-05/0.2456, allocations: 268.6 kB / 461.1 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.841e-05/0.2456, allocations: 108.9 kB / 461.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.515e-05/0.2457, allocations: 114.5 kB / 461.3 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.348e-05/0.2457, allocations: 176.3 kB / 461.5 MB, free: 14.35 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.778e-05/0.2457, allocations: 179.2 kB / 461.7 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.633e-05/0.2458, allocations: 180.2 kB / 461.9 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001413/0.2459, allocations: 411.8 kB / 462.3 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.899e-05/0.2459, allocations: 112.3 kB / 462.4 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.68e-05/0.246, allocations: 101 kB / 462.5 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.581e-05/0.246, allocations: 179.4 kB / 462.7 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.648e-05/0.246, allocations: 180.2 kB / 462.8 MB, free: 12.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.433e-05/0.2461, allocations: 180.3 kB / 463 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.681e-05/0.2461, allocations: 194.3 kB / 463.2 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.305e-05/0.2462, allocations: 306.8 kB / 463.5 MB, free: 12.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.534e-05/0.2462, allocations: 185.2 kB / 463.7 MB, free: 12.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.884e-05/0.2463, allocations: 179.5 kB / 463.9 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.19e-05/0.2463, allocations: 108.9 kB / 464 MB, free: 11.76 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.705e-05/0.2464, allocations: 180.7 kB / 464.1 MB, free: 11.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.914e-05/0.2464, allocations: 108 kB / 464.2 MB, free: 11.46 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.184e-05/0.2464, allocations: 85.44 kB / 464.3 MB, free: 11.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2464, allocations: 0 / 464.3 MB, free: 11.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000507/0.2469, allocations: 130.5 kB / 464.5 MB, free: 11.36 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.001125/0.2481, allocations: 1.194 MB / 465.6 MB, free: 10.42 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 4.595e-05/0.2481, allocations: 0 / 465.6 MB, free: 10.42 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.2482, allocations: 0 / 465.6 MB, free: 10.42 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.645e-06/0.2482, allocations: 7.062 kB / 465.7 MB, free: 10.42 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002657/0.2484, allocations: 455.7 kB / 466.1 MB, free: 9.969 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000909/0.2494, allocations: 1.621 MB / 467.7 MB, free: 8.363 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.15e-05/0.2495, allocations: 0.6797 MB / 468.4 MB, free: 7.66 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.789e-06/0.2495, allocations: 3.562 kB / 468.4 MB, free: 7.66 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.722e-05/0.2495, allocations: 13.59 kB / 468.4 MB, free: 7.652 MB / 350.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2495, allocations: 3.938 kB / 468.4 MB, free: 7.648 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02208/0.2716, allocations: 3.993 MB / 472.4 MB, free: 6.992 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.686/7.957, allocations: 3.938 kB / 472.4 MB, free: 6.988 MB / 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)