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.12.0/package.mo", uses=false) Using package KeyWordIO with version 0.12.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/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.WriteRealVariable,fileNamePrefix="KeyWordIO_KeyWordIO_Examples_WriteRealVariable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(KeyWordIO.Examples.WriteRealVariable,fileNamePrefix="KeyWordIO_KeyWordIO_Examples_WriteRealVariable",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.008491/0.008491, allocations: 100.9 kB / 15.73 MB, free: 6.055 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.002077/0.002077, allocations: 192.4 kB / 16.67 MB, free: 5.969 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.382/1.382, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/package.mo): time 0.006904/0.006904, allocations: 1.018 MB / 291.6 MB, free: 13.74 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001788/0.001788, allocations: 66.11 kB / 402.5 MB, free: 32.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07913/0.08093, allocations: 49.65 MB / 452.1 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.002508/0.08348, allocations: 1.355 MB / 453.5 MB, free: 13.13 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001157/0.08465, allocations: 0.7974 MB / 454.3 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.289e-05/0.0847, allocations: 4 kB / 454.3 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.443e-05/0.08473, allocations: 3.938 kB / 454.3 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001552/0.0849, allocations: 7.938 kB / 454.3 MB, free: 12.31 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/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.000176/0.08508, allocations: 39.89 kB / 454.3 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 6.699e-05/0.08516, allocations: 31.91 kB / 454.4 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.552e-05/0.0852, allocations: 4 kB / 454.4 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.237e-05/0.08524, allocations: 11.94 kB / 454.4 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000105/0.08535, allocations: 11.97 kB / 454.4 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.13e-05/0.08537, allocations: 4 kB / 454.4 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.164e-05/0.08547, allocations: 39.91 kB / 454.4 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.228e-05/0.08549, allocations: 3.938 kB / 454.5 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.735e-05/0.08552, allocations: 15.92 kB / 454.5 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00013/0.08565, allocations: 48.09 kB / 454.5 MB, free: 12.11 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.08566, allocations: 0 / 454.5 MB, free: 12.11 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.08568, allocations: 8 kB / 454.5 MB, free: 12.1 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.08569, allocations: 0 / 454.5 MB, free: 12.1 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004169/0.08611, allocations: 365 kB / 454.9 MB, free: 11.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.53e-05/0.08615, allocations: 8.031 kB / 454.9 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.385e-05/0.08619, allocations: 38.73 kB / 454.9 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.25e-05/0.08622, allocations: 0.9375 kB / 454.9 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001339/0.08636, allocations: 172.3 kB / 455.1 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.556e-06/0.08637, allocations: 384 / 455.1 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.159e-06/0.08638, allocations: 384 / 455.1 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001087/0.0865, allocations: 50.19 kB / 455.1 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.08652, allocations: 3.938 kB / 455.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.005e-06/0.08653, allocations: 0 / 455.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.236e-06/0.08654, allocations: 0 / 455.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.708e-05/0.0866, allocations: 11.98 kB / 455.2 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001623/0.08677, allocations: 153.7 kB / 455.3 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.932e-05/0.08683, allocations: 26.52 kB / 455.3 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.238e-05/0.08688, allocations: 16.91 kB / 455.3 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.746e-06/0.0869, allocations: 0 / 455.3 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001618/0.08707, allocations: 110.7 kB / 455.5 MB, free: 10.96 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.08708, allocations: 0 / 455.5 MB, free: 10.96 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002304/0.08731, allocations: 87.33 kB / 455.5 MB, free: 10.87 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.125e-05/0.08737, allocations: 81.23 kB / 455.6 MB, free: 10.77 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.41e-05/0.08747, allocations: 113.8 kB / 455.7 MB, free: 10.65 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.494e-05/0.0875, allocations: 25.7 kB / 455.8 MB, free: 10.62 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.04e-05/0.08754, allocations: 80.14 kB / 455.8 MB, free: 10.54 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.964e-05/0.08757, allocations: 0 / 455.8 MB, free: 10.54 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.209e-05/0.0876, allocations: 21.66 kB / 455.9 MB, free: 10.51 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.08774, allocations: 314.8 kB / 456.2 MB, free: 10.19 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.958e-05/0.08779, allocations: 8 kB / 456.2 MB, free: 10.18 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.604e-05/0.08784, allocations: 29.64 kB / 456.2 MB, free: 10.15 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.667e-05/0.08794, allocations: 77.11 kB / 456.3 MB, free: 10.05 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.08795, allocations: 0 / 456.3 MB, free: 10.05 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001582/0.08812, allocations: 87.38 kB / 456.4 MB, free: 9.957 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.318e-05/0.08816, allocations: 33.64 kB / 456.4 MB, free: 9.918 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.848e-06/0.08817, allocations: 0 / 456.4 MB, free: 9.918 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.041e-05/0.08818, allocations: 4 kB / 456.4 MB, free: 9.914 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.327e-05/0.08824, allocations: 3.984 kB / 456.4 MB, free: 9.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.008e-06/0.08826, allocations: 4 kB / 456.4 MB, free: 9.906 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.153e-05/0.08829, allocations: 0 / 456.4 MB, free: 9.906 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.507e-06/0.08831, allocations: 4 kB / 456.4 MB, free: 9.902 MB / 334.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 9.903e-05/0.08841, allocations: 144.1 kB / 456.6 MB, free: 9.746 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.28e-05/0.08843, allocations: 7.969 kB / 456.6 MB, free: 9.738 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.954e-05/0.08846, allocations: 7.516 kB / 456.6 MB, free: 9.727 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.08846, allocations: 4 kB / 456.6 MB, free: 9.723 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.08847, allocations: 4 kB / 456.6 MB, free: 9.719 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.08848, allocations: 0 / 456.6 MB, free: 9.719 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001192/0.0886, allocations: 153.7 kB / 456.7 MB, free: 9.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.08861, allocations: 0 / 456.7 MB, free: 9.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.828e-05/0.08865, allocations: 7.984 kB / 456.7 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/0.08866, allocations: 3.938 kB / 456.7 MB, free: 9.508 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.807e-06/0.08867, allocations: 0 / 456.7 MB, free: 9.508 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.08868, allocations: 3.938 kB / 456.7 MB, free: 9.504 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.08868, allocations: 4 kB / 456.7 MB, free: 9.5 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001584/0.08885, allocations: 106.8 kB / 456.8 MB, free: 9.371 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.104e-05/0.08891, allocations: 85.05 kB / 456.9 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.403e-05/0.08893, allocations: 3.984 kB / 456.9 MB, free: 9.266 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.181e-05/0.08896, allocations: 4 kB / 456.9 MB, free: 9.262 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.923e-05/0.089, allocations: 3.938 kB / 456.9 MB, free: 9.258 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.929e-06/0.08901, allocations: 4.031 kB / 456.9 MB, free: 9.254 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.61e-05/0.08908, allocations: 91.27 kB / 457 MB, free: 9.164 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.08909, allocations: 0 / 457 MB, free: 9.164 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002093/0.08931, allocations: 12 kB / 457 MB, free: 9.152 MB / 334.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.0007816/0.09009, allocations: 0.751 MB / 457.8 MB, free: 8.406 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001664/0.09027, allocations: 79.39 kB / 457.9 MB, free: 8.316 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.09028, allocations: 0 / 457.9 MB, free: 8.316 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.104e-05/0.09036, allocations: 67.33 kB / 457.9 MB, free: 8.238 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001425/0.09051, allocations: 10.34 kB / 458 MB, free: 8.23 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00117/0.09169, allocations: 1.199 MB / 459.2 MB, free: 6.938 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002818/0.09198, allocations: 0.6805 MB / 459.8 MB, free: 6.23 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.99e-05/0.09201, allocations: 4.078 kB / 459.8 MB, free: 6.227 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.327e-05/0.09205, allocations: 19.38 kB / 459.9 MB, free: 6.207 MB / 334.1 MB Notification: Performance of SimCode: time 2.11e-07/0.09205, allocations: 0 / 459.9 MB, free: 6.207 MB / 334.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeMain.mo:787:13-787:114:writable] Error: Internal error Failed to copy path /home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/../output.txt to KeyWordIO_KeyWordIO_Examples_WriteRealVariable.fmutmp/resources//home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/.. Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02276/0.1148, allocations: 1.727 MB / 461.6 MB, free: 4.559 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.598/7.712, allocations: 3.688 kB / 461.6 MB, free: 4.559 MB / 334.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_KeyWordIO_KeyWordIO_Examples_WriteRealVariable_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 KeyWordIO_KeyWordIO_Examples_WriteRealVariable.fmu > KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe 2>&1)