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.001082/0.001082, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001158/0.001158, allocations: 188.4 kB / 16.25 MB, free: 6.625 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.316/1.316, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.005978/0.005978, allocations: 1.01 MB / 291.1 MB, free: 1.387 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001035/0.001035, allocations: 63.89 kB / 351.7 MB, free: 2.102 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09163/0.09268, allocations: 49.67 MB / 401.3 MB, free: 408 kB / 286.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.1528/0.2455, allocations: 1.41 MB / 402.7 MB, free: 9.898 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008852/0.2465, allocations: 0.7753 MB / 403.5 MB, free: 9.367 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.101e-05/0.2465, allocations: 1.094 kB / 403.5 MB, free: 9.367 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.661e-05/0.2465, allocations: 0 / 403.5 MB, free: 9.367 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.941e-05/0.2466, allocations: 12.75 kB / 403.5 MB, free: 9.359 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.0001804/0.2468, allocations: 37.59 kB / 403.6 MB, free: 9.34 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 5.245e-05/0.2469, allocations: 21.98 kB / 403.6 MB, free: 9.332 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.215e-05/0.2469, allocations: 6.172 kB / 403.6 MB, free: 9.328 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.926e-05/0.247, allocations: 9.734 kB / 403.6 MB, free: 9.328 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001056/0.2471, allocations: 15.52 kB / 403.6 MB, free: 9.32 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.317e-06/0.2471, allocations: 1.844 kB / 403.6 MB, free: 9.32 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.207e-05/0.2472, allocations: 42.17 kB / 403.7 MB, free: 9.305 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.16e-05/0.2472, allocations: 1.531 kB / 403.7 MB, free: 9.305 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.566e-05/0.2472, allocations: 11.62 kB / 403.7 MB, free: 9.297 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001161/0.2474, allocations: 57.95 kB / 403.7 MB, free: 9.273 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.367e-06/0.2474, allocations: 0 / 403.7 MB, free: 9.273 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2474, allocations: 1 kB / 403.7 MB, free: 9.273 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.02e-06/0.2474, allocations: 0 / 403.7 MB, free: 9.273 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.0003154/0.2477, allocations: 371.8 kB / 404.1 MB, free: 8.875 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.591e-05/0.2477, allocations: 10.45 kB / 404.1 MB, free: 8.875 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.927e-05/0.2478, allocations: 31.94 kB / 404.1 MB, free: 8.836 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.467e-05/0.2478, allocations: 2.125 kB / 404.1 MB, free: 8.836 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.083e-05/0.2479, allocations: 177.6 kB / 404.3 MB, free: 8.633 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.887e-06/0.2479, allocations: 384 / 404.3 MB, free: 8.633 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.676e-06/0.2479, allocations: 2.078 kB / 404.3 MB, free: 8.633 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.406e-05/0.248, allocations: 37.45 kB / 404.3 MB, free: 8.602 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.402e-06/0.248, allocations: 3.938 kB / 404.4 MB, free: 8.598 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.666e-06/0.248, allocations: 0.75 kB / 404.4 MB, free: 8.598 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.336e-06/0.248, allocations: 0 / 404.4 MB, free: 8.598 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.64e-05/0.2481, allocations: 19.22 kB / 404.4 MB, free: 8.59 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000108/0.2482, allocations: 159.5 kB / 404.5 MB, free: 8.395 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.485e-05/0.2483, allocations: 25.12 kB / 404.6 MB, free: 8.367 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.25e-05/0.2483, allocations: 11.17 kB / 404.6 MB, free: 8.359 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.546e-06/0.2483, allocations: 0 / 404.6 MB, free: 8.359 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001106/0.2484, allocations: 114 kB / 404.7 MB, free: 8.238 MB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 1.173e-06/0.2485, allocations: 0 / 404.7 MB, free: 8.238 MB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001948/0.2487, allocations: 85.66 kB / 404.8 MB, free: 8.168 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.478e-05/0.2487, allocations: 78.45 kB / 404.8 MB, free: 8.074 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.3e-05/0.2488, allocations: 107.4 kB / 404.9 MB, free: 7.973 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 8.126e-06/0.2488, allocations: 27.8 kB / 405 MB, free: 7.941 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.895e-05/0.2488, allocations: 86.3 kB / 405.1 MB, free: 7.855 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.035e-05/0.2488, allocations: 8.906 kB / 405.1 MB, free: 7.848 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.401e-05/0.2488, allocations: 12.31 kB / 405.1 MB, free: 7.832 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 4.658e-05/0.2489, allocations: 322.8 kB / 405.4 MB, free: 7.512 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.734e-05/0.2489, allocations: 5.266 kB / 405.4 MB, free: 7.512 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.131e-05/0.249, allocations: 17.95 kB / 405.4 MB, free: 7.496 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.894e-05/0.2491, allocations: 83.41 kB / 405.5 MB, free: 7.41 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.2491, allocations: 4.812 kB / 405.5 MB, free: 7.406 MB / 286.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001093/0.2492, allocations: 82.27 kB / 405.6 MB, free: 7.336 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.725e-05/0.2492, allocations: 35.03 kB / 405.6 MB, free: 7.301 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.2492, allocations: 1.094 kB / 405.6 MB, free: 7.301 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.2493, allocations: 1.344 kB / 405.6 MB, free: 7.301 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.704e-05/0.2493, allocations: 4.422 kB / 405.6 MB, free: 7.301 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.541e-06/0.2493, allocations: 1.203 kB / 405.6 MB, free: 7.301 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.138e-05/0.2494, allocations: 4.312 kB / 405.6 MB, free: 7.301 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.983e-06/0.2494, allocations: 0.9062 kB / 405.6 MB, free: 7.301 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 6.57e-05/0.2494, allocations: 140.7 kB / 405.8 MB, free: 7.152 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.461e-05/0.2495, allocations: 14.09 kB / 405.8 MB, free: 7.145 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.88e-05/0.2495, allocations: 9.562 kB / 405.8 MB, free: 7.133 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.2495, allocations: 1.125 kB / 405.8 MB, free: 7.133 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.2495, allocations: 3.75 kB / 405.8 MB, free: 7.133 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.2495, allocations: 0.7031 kB / 405.8 MB, free: 7.133 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.004e-05/0.2496, allocations: 157.9 kB / 405.9 MB, free: 6.941 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.2496, allocations: 0 / 405.9 MB, free: 6.941 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.033e-05/0.2496, allocations: 3.234 kB / 405.9 MB, free: 6.941 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.2496, allocations: 9.125 kB / 406 MB, free: 6.934 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.897e-06/0.2497, allocations: 1.188 kB / 406 MB, free: 6.934 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.2497, allocations: 4.5 kB / 406 MB, free: 6.93 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.2497, allocations: 3.984 kB / 406 MB, free: 6.926 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001299/0.2498, allocations: 105.6 kB / 406.1 MB, free: 6.824 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.17e-05/0.2498, allocations: 81.61 kB / 406.1 MB, free: 6.727 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.45e-05/0.2499, allocations: 1.484 kB / 406.1 MB, free: 6.727 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.078e-05/0.2499, allocations: 8.922 kB / 406.2 MB, free: 6.723 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.605e-05/0.2499, allocations: 7.031 kB / 406.2 MB, free: 6.719 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.39e-06/0.2499, allocations: 1.094 kB / 406.2 MB, free: 6.719 MB / 286.1 MB Notification: Performance of sorting global known variables: time 3.066e-05/0.25, allocations: 84.75 kB / 406.2 MB, free: 6.645 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.25, allocations: 0 / 406.2 MB, free: 6.645 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002124/0.2502, allocations: 16.3 kB / 406.3 MB, free: 6.641 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.0005755/0.2508, allocations: 0.747 MB / 407 MB, free: 5.969 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001439/0.2509, allocations: 74.27 kB / 407.1 MB, free: 5.902 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2509, allocations: 0 / 407.1 MB, free: 5.902 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 4.798e-05/0.251, allocations: 61.06 kB / 407.1 MB, free: 5.84 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001377/0.2511, allocations: 8.031 kB / 407.2 MB, free: 5.836 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009069/0.2521, allocations: 1.208 MB / 408.4 MB, free: 4.66 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001075/0.2522, allocations: 0.6768 MB / 409 MB, free: 3.965 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 1.891e-05/0.2522, allocations: 2.953 kB / 409 MB, free: 3.965 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.026e-05/0.2522, allocations: 14.55 kB / 409.1 MB, free: 3.953 MB / 286.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2523, allocations: 0 / 409.1 MB, free: 3.953 MB / 286.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.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.01252/0.2648, allocations: 1.57 MB / 410.6 MB, free: 3.629 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001245/0.2649, allocations: 231 kB / 410.8 MB, free: 3.367 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.561/1.826, allocations: 5.125 kB / 410.9 MB, free: 3.363 MB / 286.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)