Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr KeyWordIO_KeyWordIO.Examples.WriteRealVariable.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: translateModel(KeyWordIO.Examples.WriteRealVariable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariable") translateModel(KeyWordIO.Examples.WriteRealVariable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariable") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006868/0.006868, allocations: 101.5 kB / 15.88 MB, free: 5.863 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.001497/0.001497, allocations: 190.3 kB / 16.79 MB, free: 5.805 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.356/1.356, allocations: 222.9 MB / 240.5 MB, free: 4.562 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.006126/0.006126, allocations: 1.007 MB / 291.6 MB, free: 1.449 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 59.91 kB / 352 MB, free: 2.316 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1023, allocations: 49.66 MB / 401.7 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.2135/0.3158, allocations: 1.412 MB / 403.1 MB, free: 9.969 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001693/0.3176, allocations: 0.7723 MB / 403.9 MB, free: 9.512 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.459e-05/0.3176, allocations: 0 / 403.9 MB, free: 9.512 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.603e-05/0.3177, allocations: 5.891 kB / 403.9 MB, free: 9.512 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001965/0.3179, allocations: 5.703 kB / 403.9 MB, free: 9.508 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/writeRealVariable.mo:2:1-14:22:writable] Warning: Pure function ‘KeyWordIO.writeRealVariable‘ contains a call to impure function ‘Modelica.Utilities.Files.removeFile‘. Notification: Performance of NFTyping.typeClassSections: time 0.000272/0.3182, allocations: 39.28 kB / 403.9 MB, free: 9.488 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 7.529e-05/0.3183, allocations: 22.47 kB / 403.9 MB, free: 9.48 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.404e-05/0.3184, allocations: 2.266 kB / 403.9 MB, free: 9.48 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.336e-05/0.3184, allocations: 8.812 kB / 404 MB, free: 9.477 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001435/0.3186, allocations: 13.17 kB / 404 MB, free: 9.477 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.506e-05/0.3186, allocations: 2.125 kB / 404 MB, free: 9.477 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001388/0.3188, allocations: 43.75 kB / 404 MB, free: 9.457 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.662e-05/0.3188, allocations: 1.953 kB / 404 MB, free: 9.457 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.167e-05/0.3189, allocations: 12.91 kB / 404 MB, free: 9.449 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000141/0.319, allocations: 34.47 kB / 404.1 MB, free: 9.438 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.319, allocations: 0.5938 kB / 404.1 MB, free: 9.438 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3191, allocations: 0 / 404.1 MB, free: 9.438 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.549e-06/0.3191, allocations: 0 / 404.1 MB, free: 9.438 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004104/0.3195, allocations: 372.2 kB / 404.4 MB, free: 9.039 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.92e-05/0.3196, allocations: 13.38 kB / 404.4 MB, free: 9.035 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.271e-05/0.3196, allocations: 3.531 kB / 404.4 MB, free: 9.035 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001215/0.3197, allocations: 178.6 kB / 404.6 MB, free: 8.828 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.077e-05/0.3198, allocations: 1.188 kB / 404.6 MB, free: 8.828 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.353e-05/0.3198, allocations: 1.625 kB / 404.6 MB, free: 8.828 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001838/0.32, allocations: 39.16 kB / 404.7 MB, free: 8.793 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.044e-05/0.32, allocations: 7.875 kB / 404.7 MB, free: 8.789 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.384e-05/0.32, allocations: 6.125 kB / 404.7 MB, free: 8.785 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.3201, allocations: 0 / 404.7 MB, free: 8.785 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001066/0.3202, allocations: 15.45 kB / 404.7 MB, free: 8.781 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001601/0.3204, allocations: 154.4 kB / 404.8 MB, free: 8.59 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.341e-05/0.3205, allocations: 21.66 kB / 404.9 MB, free: 8.566 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.591e-05/0.3206, allocations: 15.23 kB / 404.9 MB, free: 8.555 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.208e-05/0.3206, allocations: 0 / 404.9 MB, free: 8.555 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002328/0.3208, allocations: 110.7 kB / 405 MB, free: 8.438 MB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 2.224e-06/0.3208, allocations: 0 / 405 MB, free: 8.438 MB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.000341/0.3212, allocations: 84.64 kB / 405.1 MB, free: 8.367 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.147e-05/0.3212, allocations: 78.64 kB / 405.1 MB, free: 8.273 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.283e-05/0.3213, allocations: 107 kB / 405.2 MB, free: 8.172 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.446e-05/0.3214, allocations: 31.08 kB / 405.3 MB, free: 8.137 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.65e-05/0.3214, allocations: 82.31 kB / 405.4 MB, free: 8.055 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.957e-05/0.3215, allocations: 4.594 kB / 405.4 MB, free: 8.051 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.961e-05/0.3215, allocations: 17.3 kB / 405.4 MB, free: 8.031 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 5.306e-05/0.3216, allocations: 317.7 kB / 405.7 MB, free: 7.715 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.247e-05/0.3216, allocations: 5.562 kB / 405.7 MB, free: 7.715 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.103e-05/0.3217, allocations: 22.53 kB / 405.7 MB, free: 7.695 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001338/0.3219, allocations: 83.31 kB / 405.8 MB, free: 7.609 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3219, allocations: 0 / 405.8 MB, free: 7.609 MB / 286.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002144/0.3221, allocations: 82.42 kB / 405.9 MB, free: 7.539 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.77e-05/0.3222, allocations: 35.69 kB / 405.9 MB, free: 7.504 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.248e-06/0.3222, allocations: 1.406 kB / 405.9 MB, free: 7.504 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.983e-05/0.3222, allocations: 0 / 405.9 MB, free: 7.504 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001024/0.3224, allocations: 4.625 kB / 405.9 MB, free: 7.504 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.139e-05/0.3224, allocations: 5.672 kB / 405.9 MB, free: 7.5 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.212e-05/0.3225, allocations: 7.828 kB / 405.9 MB, free: 7.496 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.204e-05/0.3225, allocations: 1.578 kB / 405.9 MB, free: 7.496 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 1 * 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.807e-05/0.3226, allocations: 140.7 kB / 406.1 MB, free: 7.348 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.335e-05/0.3226, allocations: 5.688 kB / 406.1 MB, free: 7.344 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.845e-05/0.3227, allocations: 6 kB / 406.1 MB, free: 7.336 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.3227, allocations: 1.344 kB / 406.1 MB, free: 7.336 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.3227, allocations: 0 / 406.1 MB, free: 7.336 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.3227, allocations: 3.609 kB / 406.1 MB, free: 7.336 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001315/0.3229, allocations: 165.3 kB / 406.2 MB, free: 7.137 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.3229, allocations: 4 kB / 406.3 MB, free: 7.133 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.545e-05/0.3229, allocations: 4.312 kB / 406.3 MB, free: 7.133 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.03e-06/0.323, allocations: 5.656 kB / 406.3 MB, free: 7.129 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.129e-05/0.323, allocations: 0 / 406.3 MB, free: 7.129 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.399e-06/0.323, allocations: 4.641 kB / 406.3 MB, free: 7.125 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.323, allocations: 0.7812 kB / 406.3 MB, free: 7.125 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00024/0.3233, allocations: 99.95 kB / 406.4 MB, free: 7.027 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.307e-05/0.3233, allocations: 87.09 kB / 406.5 MB, free: 6.926 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.647e-05/0.3233, allocations: 6.016 kB / 406.5 MB, free: 6.922 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.98e-05/0.3234, allocations: 4.375 kB / 406.5 MB, free: 6.922 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.26e-05/0.3235, allocations: 3 kB / 406.5 MB, free: 6.922 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.121e-05/0.3235, allocations: 2.875 kB / 406.5 MB, free: 6.922 MB / 286.1 MB Notification: Performance of sorting global known variables: time 4.958e-05/0.3236, allocations: 87.73 kB / 406.6 MB, free: 6.844 MB / 286.1 MB Notification: Performance of sort global known variables: time 3.7e-07/0.3236, allocations: 0 / 406.6 MB, free: 6.844 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003577/0.324, allocations: 12.66 kB / 406.6 MB, free: 6.844 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: 1 ($whenCondition1) * Number of discrete states: 1 ($whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 1 * 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.0003932/0.3244, allocations: 201.7 kB / 406.8 MB, free: 6.73 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001447/0.3245, allocations: 77.22 kB / 406.8 MB, free: 6.66 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.3245, allocations: 0 / 406.8 MB, free: 6.66 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 5.309e-05/0.3246, allocations: 62.19 kB / 406.9 MB, free: 6.598 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001447/0.3247, allocations: 11.38 kB / 406.9 MB, free: 6.59 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002484/0.325, allocations: 138.5 kB / 407 MB, free: 6.438 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.725e-05/0.3251, allocations: 0.6772 MB / 407.7 MB, free: 5.742 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.5e-05/0.3251, allocations: 9.188 kB / 407.7 MB, free: 5.734 MB / 286.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3251, allocations: 0.875 kB / 407.7 MB, free: 5.734 MB / 286.1 MB Notification: Performance of Templates: time 0.002513/0.3276, allocations: 0.8625 MB / 408.6 MB, free: 5.652 MB / 286.1 MB make -j1 -f KeyWordIO_KeyWordIO.Examples.WriteRealVariable.makefile (rm -f KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe ; mkfifo KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe ; head -c 1048576 < KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe >> ../files/KeyWordIO_KeyWordIO.Examples.WriteRealVariable.sim & ./KeyWordIO_KeyWordIO.Examples.WriteRealVariable -abortSlowSimulation -alarm=480 -lv LOG_STATS > KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe 2>&1)