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/Complex 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 KeyWordIO with version 0.11.X (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0009935/0.0009935, allocations: 180.7 kB / 15.45 MB, free: 0.6523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/package.mo): time 0.004956/0.004956, allocations: 1.002 MB / 17.19 MB, free: 5.676 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.294/1.294, allocations: 223.3 MB / 241.4 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007635/0.0007635, allocations: 87.78 kB / 292.8 MB, free: 1.027 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003128/0.0003129, allocations: 8 kB / 354.3 MB, free: 1.953 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2601/0.2604, allocations: 50.62 MB / 404.9 MB, free: 9.973 MB / 286.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.ReadReal_m): time 0.001384/0.2619, allocations: 0.9379 MB / 405.9 MB, free: 9.941 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003185/0.2651, allocations: 2.075 MB / 407.9 MB, free: 8.91 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.561e-05/0.2651, allocations: 0 / 407.9 MB, free: 8.91 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.032e-05/0.2651, allocations: 0 / 407.9 MB, free: 8.91 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.001243/0.2664, allocations: 379.9 kB / 408.3 MB, free: 8.734 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.637e-06/0.2664, allocations: 5.188 kB / 408.3 MB, free: 8.73 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 4.206e-05/0.2664, allocations: 13.92 kB / 408.3 MB, free: 8.723 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.237e-05/0.2665, allocations: 1.781 kB / 408.3 MB, free: 8.723 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.925e-05/0.2665, allocations: 3.156 kB / 408.3 MB, free: 8.723 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001366/0.2667, allocations: 13.81 kB / 408.3 MB, free: 8.715 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.335e-06/0.2667, allocations: 1 kB / 408.3 MB, free: 8.715 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000807/0.2675, allocations: 469.5 kB / 408.8 MB, free: 8.566 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.596e-06/0.2675, allocations: 6.516 kB / 408.8 MB, free: 8.562 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.635e-05/0.2675, allocations: 27.83 kB / 408.8 MB, free: 8.531 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005338/0.2681, allocations: 379.1 kB / 409.2 MB, free: 8.41 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.2681, allocations: 4 kB / 409.2 MB, free: 8.406 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.2681, allocations: 0 / 409.2 MB, free: 8.406 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.097e-06/0.2681, allocations: 1.625 kB / 409.2 MB, free: 8.406 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.0003739/0.2685, allocations: 411.6 kB / 409.6 MB, free: 8 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.2685, allocations: 10.67 kB / 409.6 MB, free: 8 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.657e-05/0.2686, allocations: 106 kB / 409.7 MB, free: 7.887 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.231e-05/0.2686, allocations: 82.67 kB / 409.8 MB, free: 7.809 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00011/0.2687, allocations: 245.1 kB / 410.1 MB, free: 7.535 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.572e-05/0.2688, allocations: 154.9 kB / 410.2 MB, free: 7.383 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.507e-05/0.2688, allocations: 159.5 kB / 410.4 MB, free: 7.227 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 3.574e-05/0.2688, allocations: 102.7 kB / 410.5 MB, free: 7.121 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.2689, allocations: 79.22 kB / 410.5 MB, free: 7.043 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.018e-05/0.2689, allocations: 150.6 kB / 410.7 MB, free: 6.895 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.02e-05/0.2689, allocations: 156.2 kB / 410.8 MB, free: 6.742 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.779e-05/0.2689, allocations: 151.7 kB / 411 MB, free: 6.594 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00018/0.2691, allocations: 454.8 kB / 411.4 MB, free: 6.105 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.141e-05/0.2692, allocations: 170.5 kB / 411.6 MB, free: 5.93 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.973e-05/0.2692, allocations: 81.17 kB / 411.7 MB, free: 5.848 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.713e-05/0.2692, allocations: 79.28 kB / 411.8 MB, free: 5.77 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.53e-05/0.2693, allocations: 111.7 kB / 411.9 MB, free: 5.652 MB / 286.1 MB Notification: Performance of pre-optimization done (n=0): time 8.61e-07/0.2693, allocations: 0 / 411.9 MB, free: 5.652 MB / 286.1 MB Notification: Performance of matching and sorting (n=0): time 6.592e-05/0.2693, allocations: 41.12 kB / 411.9 MB, free: 5.609 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.079e-05/0.2694, allocations: 126.7 kB / 412 MB, free: 5.473 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.551e-05/0.2695, allocations: 109.2 kB / 412.1 MB, free: 5.367 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.641e-06/0.2695, allocations: 29.7 kB / 412.2 MB, free: 5.332 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.531e-05/0.2695, allocations: 81.97 kB / 412.2 MB, free: 5.25 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.174e-06/0.2695, allocations: 0 / 412.2 MB, free: 5.25 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.411e-05/0.2695, allocations: 9.719 kB / 412.3 MB, free: 5.234 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 4.753e-05/0.2696, allocations: 313.5 kB / 412.6 MB, free: 4.922 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.216e-06/0.2696, allocations: 0 / 412.6 MB, free: 4.922 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.434e-06/0.2696, allocations: 0 / 412.6 MB, free: 4.922 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.247e-05/0.2696, allocations: 76.92 kB / 412.6 MB, free: 4.848 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.06e-05/0.2696, allocations: 83.28 kB / 412.7 MB, free: 4.766 MB / 286.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 4.884e-05/0.2697, allocations: 36.58 kB / 412.7 MB, free: 4.727 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.327e-05/0.2697, allocations: 81.11 kB / 412.8 MB, free: 4.652 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.477e-05/0.2697, allocations: 77.23 kB / 412.9 MB, free: 4.578 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.99e-05/0.2698, allocations: 152.4 kB / 413.1 MB, free: 4.43 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.138e-05/0.2698, allocations: 80.02 kB / 413.1 MB, free: 4.352 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.854e-05/0.2698, allocations: 151.9 kB / 413.3 MB, free: 4.203 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.249e-05/0.2699, allocations: 84.8 kB / 413.4 MB, free: 4.121 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.223e-05/0.2699, allocations: 76.81 kB / 413.4 MB, free: 4.047 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.9e-05/0.27, allocations: 266.4 kB / 413.7 MB, free: 3.777 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.871e-05/0.27, allocations: 106.7 kB / 413.8 MB, free: 3.668 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.658e-05/0.2701, allocations: 111 kB / 413.9 MB, free: 3.551 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.634e-05/0.2701, allocations: 182.4 kB / 414.1 MB, free: 3.367 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.36e-05/0.2701, allocations: 181.3 kB / 414.3 MB, free: 3.184 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.358e-05/0.2702, allocations: 182.5 kB / 414.4 MB, free: 3 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001385/0.2703, allocations: 406.8 kB / 414.8 MB, free: 2.551 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.577e-05/0.2703, allocations: 103.5 kB / 414.9 MB, free: 2.445 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.597e-05/0.2703, allocations: 105.8 kB / 415 MB, free: 2.336 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.686e-05/0.2704, allocations: 190.7 kB / 415.2 MB, free: 2.145 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.662e-05/0.2704, allocations: 178.9 kB / 415.4 MB, free: 1.965 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.343e-05/0.2704, allocations: 180.7 kB / 415.6 MB, free: 1.781 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.808e-05/0.2705, allocations: 182.8 kB / 415.8 MB, free: 1.598 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.982e-05/0.2705, allocations: 316.9 kB / 416.1 MB, free: 1.27 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.838e-05/0.2706, allocations: 181.4 kB / 416.2 MB, free: 1.07 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.363e-05/0.2706, allocations: 182.8 kB / 416.4 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.738e-05/0.2707, allocations: 102.2 kB / 416.5 MB, free: 0.7812 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.717e-05/0.2707, allocations: 183 kB / 416.7 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.407e-05/0.2707, allocations: 105.5 kB / 416.8 MB, free: 500 kB / 286.1 MB Notification: Performance of sorting global known variables: time 3.124e-05/0.2708, allocations: 87.52 kB / 416.9 MB, free: 420 kB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2708, allocations: 0 / 416.9 MB, free: 420 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0005105/0.2713, allocations: 140.7 kB / 417 MB, free: 384 kB / 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 (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.001266/0.2726, allocations: 1.22 MB / 418.2 MB, free: 15.43 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 3.197e-05/0.2726, allocations: 3.938 kB / 418.3 MB, free: 15.43 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2726, allocations: 0 / 418.3 MB, free: 15.43 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.557e-06/0.2726, allocations: 6.047 kB / 418.3 MB, free: 15.42 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003475/0.273, allocations: 0.5234 MB / 418.8 MB, free: 14.9 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001168/0.2742, allocations: 1.659 MB / 420.4 MB, free: 13.27 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000185/0.2744, allocations: 0.6748 MB / 421.1 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.341e-05/0.2744, allocations: 6.453 kB / 421.1 MB, free: 12.57 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.086e-05/0.2744, allocations: 13.72 kB / 421.1 MB, free: 12.56 MB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.2744, allocations: 3.938 kB / 421.1 MB, free: 12.56 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01697/0.2914, allocations: 3.958 MB / 425.1 MB, free: 12.14 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002018/0.2916, allocations: 214.5 kB / 425.3 MB, free: 11.88 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.753/2.045, allocations: 1.094 kB / 425.3 MB, free: 11.88 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)