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.0009771/0.000977, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.0009897/0.0009899, allocations: 177.3 kB / 15.95 MB, free: 216 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.281/1.281, allocations: 223.2 MB / 239.9 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/package.mo): time 0.00531/0.00531, allocations: 0.9929 MB / 292 MB, free: 1.254 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002766/0.0002766, allocations: 11.98 kB / 353.2 MB, free: 2.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2528/0.2531, allocations: 50.62 MB / 403.8 MB, free: 10.37 MB / 286.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.ReadReal_m): time 0.001356/0.2545, allocations: 0.9262 MB / 404.7 MB, free: 10.21 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002798/0.2573, allocations: 1.91 MB / 406.6 MB, free: 9.223 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.365e-05/0.2573, allocations: 0 / 406.6 MB, free: 9.223 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.203e-05/0.2573, allocations: 1.281 kB / 406.6 MB, free: 9.223 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.00119/0.2585, allocations: 380.3 kB / 407 MB, free: 9.059 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.228e-06/0.2586, allocations: 5 kB / 407 MB, free: 9.055 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 4.374e-05/0.2586, allocations: 8.047 kB / 407 MB, free: 9.051 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.233e-05/0.2587, allocations: 5.703 kB / 407 MB, free: 9.047 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.127e-05/0.2587, allocations: 6.969 kB / 407 MB, free: 9.043 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003113/0.259, allocations: 5.906 kB / 407 MB, free: 9.043 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.235e-05/0.259, allocations: 3.984 kB / 407 MB, free: 9.039 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008144/0.2598, allocations: 391.2 kB / 407.4 MB, free: 8.93 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.68e-06/0.2599, allocations: 0 / 407.4 MB, free: 8.93 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.138e-05/0.2599, allocations: 29.45 kB / 407.5 MB, free: 8.898 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004411/0.2603, allocations: 247.6 kB / 407.7 MB, free: 8.828 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.134e-06/0.2603, allocations: 4 kB / 407.7 MB, free: 8.824 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2604, allocations: 0 / 407.7 MB, free: 8.824 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.218e-06/0.2604, allocations: 0 / 407.7 MB, free: 8.824 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.0003738/0.2607, allocations: 416.6 kB / 408.1 MB, free: 8.418 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.809e-05/0.2608, allocations: 8.312 kB / 408.1 MB, free: 8.418 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.614e-05/0.2608, allocations: 106.9 kB / 408.2 MB, free: 8.305 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.942e-05/0.2609, allocations: 84.16 kB / 408.3 MB, free: 8.223 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001428/0.261, allocations: 245.1 kB / 408.5 MB, free: 7.949 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.052e-05/0.2611, allocations: 163.9 kB / 408.7 MB, free: 7.789 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.46e-05/0.2611, allocations: 150.6 kB / 408.9 MB, free: 7.641 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 4.645e-05/0.2612, allocations: 114.9 kB / 409 MB, free: 7.523 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.416e-05/0.2612, allocations: 75.28 kB / 409 MB, free: 7.449 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.341e-05/0.2612, allocations: 150.6 kB / 409.2 MB, free: 7.301 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.247e-05/0.2612, allocations: 155.6 kB / 409.3 MB, free: 7.148 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.572e-05/0.2613, allocations: 155.5 kB / 409.5 MB, free: 6.996 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001746/0.2615, allocations: 447.4 kB / 409.9 MB, free: 6.516 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.59e-05/0.2615, allocations: 166.3 kB / 410.1 MB, free: 6.344 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.447e-05/0.2615, allocations: 79.8 kB / 410.2 MB, free: 6.266 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.556e-05/0.2616, allocations: 111.9 kB / 410.3 MB, free: 6.148 MB / 286.1 MB Notification: Performance of pre-optimization done (n=0): time 7.41e-07/0.2616, allocations: 1 kB / 410.3 MB, free: 6.148 MB / 286.1 MB Notification: Performance of matching and sorting (n=0): time 6.465e-05/0.2616, allocations: 38.75 kB / 410.3 MB, free: 6.105 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.333e-05/0.2617, allocations: 127.7 kB / 410.4 MB, free: 5.969 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.218e-05/0.2618, allocations: 104.8 kB / 410.5 MB, free: 5.867 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.4e-06/0.2618, allocations: 29.64 kB / 410.6 MB, free: 5.832 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.363e-05/0.2618, allocations: 86.08 kB / 410.7 MB, free: 5.746 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.294e-06/0.2618, allocations: 0 / 410.7 MB, free: 5.746 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.3e-07/0.2618, allocations: 0 / 410.7 MB, free: 5.746 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 5.093e-05/0.2619, allocations: 312.9 kB / 411 MB, free: 5.434 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.116e-06/0.2619, allocations: 0.9688 kB / 411 MB, free: 5.434 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.074e-06/0.2619, allocations: 0 / 411 MB, free: 5.434 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.341e-05/0.2619, allocations: 76.47 kB / 411 MB, free: 5.359 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.304e-05/0.2619, allocations: 76.08 kB / 411.1 MB, free: 5.285 MB / 286.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 4.907e-05/0.262, allocations: 37 kB / 411.1 MB, free: 5.246 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.902e-05/0.262, allocations: 85.28 kB / 411.2 MB, free: 5.168 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.589e-05/0.262, allocations: 80.41 kB / 411.3 MB, free: 5.09 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.615e-05/0.2621, allocations: 155.6 kB / 411.5 MB, free: 4.938 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.25e-05/0.2621, allocations: 80.28 kB / 411.5 MB, free: 4.859 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.421e-05/0.2621, allocations: 152.4 kB / 411.7 MB, free: 4.711 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.311e-05/0.2622, allocations: 80.72 kB / 411.8 MB, free: 4.633 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.346e-05/0.2622, allocations: 79.84 kB / 411.8 MB, free: 4.555 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.144e-05/0.2623, allocations: 263.6 kB / 412.1 MB, free: 4.289 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.834e-05/0.2623, allocations: 107 kB / 412.2 MB, free: 4.18 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.903e-05/0.2624, allocations: 107.2 kB / 412.3 MB, free: 4.066 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.199e-05/0.2624, allocations: 185.6 kB / 412.5 MB, free: 3.879 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.762e-05/0.2625, allocations: 185.1 kB / 412.7 MB, free: 3.691 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-05/0.2625, allocations: 182.6 kB / 412.9 MB, free: 3.508 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001469/0.2626, allocations: 404.2 kB / 413.2 MB, free: 3.062 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.592e-05/0.2627, allocations: 101 kB / 413.3 MB, free: 2.957 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.878e-05/0.2627, allocations: 103.4 kB / 413.4 MB, free: 2.852 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.025e-05/0.2627, allocations: 186.6 kB / 413.6 MB, free: 2.664 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.852e-05/0.2628, allocations: 181.7 kB / 413.8 MB, free: 2.48 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.696e-05/0.2628, allocations: 181.3 kB / 414 MB, free: 2.297 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.857e-05/0.2628, allocations: 182.4 kB / 414.2 MB, free: 2.113 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.216e-05/0.2629, allocations: 309.9 kB / 414.5 MB, free: 1.793 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.737e-05/0.2629, allocations: 184.3 kB / 414.6 MB, free: 1.59 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.234e-05/0.263, allocations: 183.1 kB / 414.8 MB, free: 1.406 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.785e-05/0.2631, allocations: 103.1 kB / 414.9 MB, free: 1.301 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.84e-05/0.2631, allocations: 177.3 kB / 415.1 MB, free: 1.121 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.062e-05/0.2631, allocations: 118.6 kB / 415.2 MB, free: 1 MB / 286.1 MB Notification: Performance of sorting global known variables: time 3.356e-05/0.2632, allocations: 90.8 kB / 415.3 MB, free: 0.918 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2632, allocations: 4 kB / 415.3 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005257/0.2637, allocations: 139.3 kB / 415.4 MB, free: 0.8789 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.001365/0.2651, allocations: 1.208 MB / 416.6 MB, free: 15.95 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 4.452e-05/0.2651, allocations: 5.156 kB / 416.7 MB, free: 15.94 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.2651, allocations: 0 / 416.7 MB, free: 15.94 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 1.243e-06/0.2651, allocations: 0 / 416.7 MB, free: 15.94 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003498/0.2655, allocations: 0.5209 MB / 417.2 MB, free: 15.42 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008385/0.2663, allocations: 0.6123 MB / 417.8 MB, free: 14.84 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003257/0.2667, allocations: 0.6757 MB / 418.5 MB, free: 14.15 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.488e-05/0.2667, allocations: 2.094 kB / 418.5 MB, free: 14.15 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.785e-05/0.2668, allocations: 18.59 kB / 418.5 MB, free: 14.14 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2668, allocations: 0 / 418.5 MB, free: 14.14 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0184/0.2852, allocations: 3.93 MB / 422.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002143/0.2854, allocations: 190.5 kB / 422.6 MB, free: 13.48 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.704/1.989, allocations: 0 / 422.6 MB, free: 13.48 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: