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: "" <> 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.005452/0.005452, allocations: 98.58 kB / 15.73 MB, free: 5.551 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.0013/0.0013, allocations: 191 kB / 16.67 MB, free: 5.473 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.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.007045/0.007045, allocations: 1.006 MB / 291.5 MB, free: 13.74 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001864/0.001864, allocations: 69.09 kB / 402.5 MB, free: 32.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07719/0.07906, allocations: 49.65 MB / 452.1 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.002838/0.0819, allocations: 1.359 MB / 453.5 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001248/0.08314, allocations: 0.7936 MB / 454.3 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.189e-05/0.08319, allocations: 3.938 kB / 454.3 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.134e-05/0.08322, allocations: 0 / 454.3 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002426/0.08346, allocations: 11.94 kB / 454.3 MB, free: 12.33 MB / 334.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.0002256/0.08369, allocations: 51.88 kB / 454.3 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.136e-05/0.08378, allocations: 27.92 kB / 454.4 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.574e-05/0.08382, allocations: 0 / 454.4 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.994e-05/0.08386, allocations: 7.938 kB / 454.4 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001481/0.08401, allocations: 11.98 kB / 454.4 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.126e-05/0.08402, allocations: 4 kB / 454.4 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001078/0.08413, allocations: 47.83 kB / 454.4 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.556e-05/0.08415, allocations: 0 / 454.4 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.594e-05/0.08418, allocations: 7.938 kB / 454.4 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001745/0.08436, allocations: 60.08 kB / 454.5 MB, free: 12.11 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.08436, allocations: 0 / 454.5 MB, free: 12.11 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.08436, allocations: 3.938 kB / 454.5 MB, free: 12.11 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.354e-06/0.08437, allocations: 4 kB / 454.5 MB, free: 12.11 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.00056/0.08493, allocations: 365 kB / 454.9 MB, free: 11.69 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/0.08498, allocations: 12.03 kB / 454.9 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.564e-05/0.08502, allocations: 34.75 kB / 454.9 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.975e-05/0.08505, allocations: 0.9375 kB / 454.9 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001893/0.08524, allocations: 168.3 kB / 455.1 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.536e-06/0.08525, allocations: 384 / 455.1 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.529e-05/0.08528, allocations: 384 / 455.1 MB, free: 11.43 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000142/0.08542, allocations: 46.19 kB / 455.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.08543, allocations: 3.938 kB / 455.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.112e-05/0.08544, allocations: 0 / 455.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.08545, allocations: 0 / 455.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.072e-05/0.08551, allocations: 15.98 kB / 455.1 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001957/0.0857, allocations: 153.7 kB / 455.3 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.428e-05/0.08578, allocations: 22.59 kB / 455.3 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.6e-05/0.08581, allocations: 12.92 kB / 455.3 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.045e-05/0.08582, allocations: 4 kB / 455.3 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002073/0.08603, allocations: 110.7 kB / 455.4 MB, free: 10.98 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 1.253e-06/0.08603, allocations: 0 / 455.4 MB, free: 10.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002539/0.08628, allocations: 87.33 kB / 455.5 MB, free: 10.88 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.646e-05/0.08634, allocations: 81.23 kB / 455.6 MB, free: 10.79 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001124/0.08645, allocations: 109.8 kB / 455.7 MB, free: 10.67 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.712e-05/0.08647, allocations: 25.7 kB / 455.7 MB, free: 10.64 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.021e-05/0.08652, allocations: 88.08 kB / 455.8 MB, free: 10.55 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.383e-05/0.08655, allocations: 0 / 455.8 MB, free: 10.55 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.253e-05/0.08658, allocations: 13.72 kB / 455.8 MB, free: 10.53 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.08673, allocations: 322.8 kB / 456.1 MB, free: 10.2 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.725e-05/0.08676, allocations: 4 kB / 456.2 MB, free: 10.2 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.501e-05/0.08681, allocations: 25.7 kB / 456.2 MB, free: 10.17 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.61e-05/0.0869, allocations: 81.11 kB / 456.3 MB, free: 10.07 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.08691, allocations: 0 / 456.3 MB, free: 10.07 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001348/0.08704, allocations: 83.28 kB / 456.3 MB, free: 9.977 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.012e-05/0.08708, allocations: 37.77 kB / 456.4 MB, free: 9.934 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.752e-06/0.08709, allocations: 4 kB / 456.4 MB, free: 9.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.249e-05/0.08711, allocations: 0 / 456.4 MB, free: 9.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.88e-05/0.08718, allocations: 7.984 kB / 456.4 MB, free: 9.922 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.08719, allocations: 320 / 456.4 MB, free: 9.922 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.219e-05/0.08722, allocations: 0 / 456.4 MB, free: 9.922 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.873e-06/0.08723, allocations: 4 kB / 456.4 MB, free: 9.918 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 0.0001246/0.08735, allocations: 140.1 kB / 456.5 MB, free: 9.766 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.607e-05/0.08737, allocations: 7.922 kB / 456.5 MB, free: 9.758 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.784e-05/0.08739, allocations: 15.47 kB / 456.6 MB, free: 9.738 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.0874, allocations: 4 kB / 456.6 MB, free: 9.734 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.0874, allocations: 0 / 456.6 MB, free: 9.734 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.0874, allocations: 0 / 456.6 MB, free: 9.734 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001465/0.08755, allocations: 153.7 kB / 456.7 MB, free: 9.535 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.08755, allocations: 4 kB / 456.7 MB, free: 9.531 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.126e-05/0.08759, allocations: 11.92 kB / 456.7 MB, free: 9.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.08759, allocations: 3.938 kB / 456.7 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.344e-06/0.0876, allocations: 0 / 456.7 MB, free: 9.516 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.611e-06/0.0876, allocations: 3.984 kB / 456.7 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.0876, allocations: 4 kB / 456.7 MB, free: 9.508 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000182/0.08779, allocations: 106.8 kB / 456.8 MB, free: 9.379 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.111e-05/0.08785, allocations: 89.03 kB / 456.9 MB, free: 9.273 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.608e-05/0.08786, allocations: 0 / 456.9 MB, free: 9.273 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.138e-05/0.08789, allocations: 4 kB / 456.9 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.073e-05/0.08793, allocations: 4 kB / 456.9 MB, free: 9.266 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.869e-06/0.08794, allocations: 32 / 456.9 MB, free: 9.266 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.203e-05/0.088, allocations: 95.25 kB / 457 MB, free: 9.172 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.088, allocations: 3.938 kB / 457 MB, free: 9.168 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002339/0.08824, allocations: 16 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.0008981/0.08913, allocations: 0.7397 MB / 457.8 MB, free: 8.418 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001798/0.08931, allocations: 71.39 kB / 457.9 MB, free: 8.336 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.08932, allocations: 0 / 457.9 MB, free: 8.336 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.587e-05/0.08939, allocations: 71.33 kB / 457.9 MB, free: 8.254 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001574/0.08955, allocations: 9.609 kB / 457.9 MB, free: 8.25 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001332/0.09088, allocations: 1.211 MB / 459.1 MB, free: 6.945 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003293/0.09121, allocations: 0.6805 MB / 459.8 MB, free: 6.238 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.768e-05/0.09124, allocations: 4 kB / 459.8 MB, free: 6.234 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.521e-05/0.09127, allocations: 7.438 kB / 459.8 MB, free: 6.227 MB / 334.1 MB Notification: Performance of SimCode: time 7.71e-07/0.09127, allocations: 0 / 459.8 MB, free: 6.227 MB / 334.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeMain.mo:790:13-790:114:writable] Error: Internal error Failed to copy path /home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/../output.txt to KeyWordIO_KeyWordIO_Examples_WriteRealVariable.fmutmp/resources//home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/.. Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02477/0.116, allocations: 1.744 MB / 461.6 MB, free: 4.555 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.941/8.057, allocations: 4.562 kB / 461.6 MB, free: 4.555 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)