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.001005/0.001005, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001268/0.001268, allocations: 193 kB / 16.13 MB, free: 6.656 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.228/1.228, allocations: 222.9 MB / 239.8 MB, free: 4.594 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.005564/0.005564, allocations: 1.004 MB / 291 MB, free: 1.473 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001416/0.001416, allocations: 63.91 kB / 351.5 MB, free: 2.277 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07865/0.08009, allocations: 49.66 MB / 401.1 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.1241/0.2043, allocations: 1.41 MB / 402.6 MB, free: 10.01 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008211/0.2051, allocations: 0.7714 MB / 403.3 MB, free: 9.535 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.608e-05/0.2051, allocations: 5.25 kB / 403.3 MB, free: 9.531 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.519e-05/0.2052, allocations: 3.188 kB / 403.3 MB, free: 9.531 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001117/0.2053, allocations: 11.44 kB / 403.3 MB, free: 9.523 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.000178/0.2055, allocations: 36.7 kB / 403.4 MB, free: 9.504 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 4.133e-05/0.2055, allocations: 18.78 kB / 403.4 MB, free: 9.496 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.444e-05/0.2056, allocations: 2.422 kB / 403.4 MB, free: 9.496 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.585e-05/0.2056, allocations: 8.391 kB / 403.4 MB, free: 9.496 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.622e-05/0.2057, allocations: 16.7 kB / 403.4 MB, free: 9.488 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.208e-06/0.2057, allocations: 1.281 kB / 403.4 MB, free: 9.488 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.424e-05/0.2058, allocations: 43.86 kB / 403.5 MB, free: 9.473 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.909e-06/0.2058, allocations: 1.406 kB / 403.5 MB, free: 9.473 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.214e-05/0.2058, allocations: 20.11 kB / 403.5 MB, free: 9.457 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001011/0.2059, allocations: 49.5 kB / 403.5 MB, free: 9.438 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.206, allocations: 1.031 kB / 403.5 MB, free: 9.438 MB / 286.1 MB Notification: Performance of FrontEnd: time 5.41e-07/0.206, allocations: 0 / 403.5 MB, free: 9.438 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.146e-06/0.206, allocations: 0 / 403.5 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.0002734/0.2062, allocations: 369.4 kB / 403.9 MB, free: 9.043 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.176e-05/0.2063, allocations: 13.44 kB / 403.9 MB, free: 9.039 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.894e-05/0.2063, allocations: 31.69 kB / 403.9 MB, free: 9 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.347e-05/0.2063, allocations: 3.453 kB / 403.9 MB, free: 9 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.264e-05/0.2064, allocations: 177.2 kB / 404.1 MB, free: 8.793 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.993e-06/0.2064, allocations: 384 / 404.1 MB, free: 8.793 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.581e-06/0.2064, allocations: 1.375 kB / 404.1 MB, free: 8.793 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.476e-05/0.2065, allocations: 39.73 kB / 404.2 MB, free: 8.758 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.552e-06/0.2065, allocations: 4.641 kB / 404.2 MB, free: 8.754 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.747e-06/0.2066, allocations: 2.375 kB / 404.2 MB, free: 8.754 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.125e-06/0.2066, allocations: 4 kB / 404.2 MB, free: 8.75 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.45e-05/0.2066, allocations: 14.92 kB / 404.2 MB, free: 8.746 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.119e-05/0.2067, allocations: 155.6 kB / 404.3 MB, free: 8.555 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.722e-05/0.2068, allocations: 24.44 kB / 404.4 MB, free: 8.527 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.029e-05/0.2068, allocations: 14.44 kB / 404.4 MB, free: 8.516 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.201e-06/0.2068, allocations: 1.781 kB / 404.4 MB, free: 8.516 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001014/0.2069, allocations: 113.8 kB / 404.5 MB, free: 8.395 MB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.2069, allocations: 0 / 404.5 MB, free: 8.395 MB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001787/0.2071, allocations: 81.77 kB / 404.6 MB, free: 8.328 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.758e-05/0.2071, allocations: 78.17 kB / 404.6 MB, free: 8.234 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.297e-05/0.2072, allocations: 111.3 kB / 404.8 MB, free: 8.129 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 7.334e-06/0.2072, allocations: 26.95 kB / 404.8 MB, free: 8.098 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.348e-05/0.2072, allocations: 85.94 kB / 404.9 MB, free: 8.012 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.647e-05/0.2073, allocations: 5.719 kB / 404.9 MB, free: 8.008 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.421e-05/0.2073, allocations: 16.33 kB / 404.9 MB, free: 7.988 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 3.197e-05/0.2073, allocations: 313.6 kB / 405.2 MB, free: 7.676 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.652e-05/0.2074, allocations: 6.766 kB / 405.2 MB, free: 7.676 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.649e-05/0.2074, allocations: 20.92 kB / 405.2 MB, free: 7.656 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.763e-05/0.2075, allocations: 84.22 kB / 405.3 MB, free: 7.57 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.2075, allocations: 0.6562 kB / 405.3 MB, free: 7.57 MB / 286.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001047/0.2076, allocations: 81.11 kB / 405.4 MB, free: 7.5 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.954e-05/0.2076, allocations: 37.14 kB / 405.4 MB, free: 7.465 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.2076, allocations: 0.6094 kB / 405.4 MB, free: 7.465 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.217e-06/0.2076, allocations: 3.75 kB / 405.4 MB, free: 7.465 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.447e-05/0.2077, allocations: 7.625 kB / 405.4 MB, free: 7.461 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.2077, allocations: 2.047 kB / 405.4 MB, free: 7.461 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.09e-05/0.2077, allocations: 2.703 kB / 405.4 MB, free: 7.461 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.691e-06/0.2078, allocations: 6.562 kB / 405.4 MB, free: 7.457 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 4.375e-05/0.2078, allocations: 139.3 kB / 405.6 MB, free: 7.309 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.354e-05/0.2078, allocations: 14.89 kB / 405.6 MB, free: 7.301 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.482e-05/0.2078, allocations: 5.234 kB / 405.6 MB, free: 7.293 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-06/0.2078, allocations: 0 / 405.6 MB, free: 7.293 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.866e-06/0.2079, allocations: 0.5625 kB / 405.6 MB, free: 7.293 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.043e-06/0.2079, allocations: 5.75 kB / 405.6 MB, free: 7.289 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.452e-05/0.2079, allocations: 156.1 kB / 405.8 MB, free: 7.098 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.2079, allocations: 0.6094 kB / 405.8 MB, free: 7.098 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.339e-05/0.208, allocations: 3.5 kB / 405.8 MB, free: 7.098 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.208, allocations: 5.281 kB / 405.8 MB, free: 7.094 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.321e-06/0.208, allocations: 1 kB / 405.8 MB, free: 7.094 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.208, allocations: 5 kB / 405.8 MB, free: 7.09 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.208, allocations: 0.7031 kB / 405.8 MB, free: 7.09 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001181/0.2081, allocations: 112.5 kB / 405.9 MB, free: 6.98 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.36e-05/0.2081, allocations: 81.75 kB / 406 MB, free: 6.883 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.277e-05/0.2081, allocations: 6.016 kB / 406 MB, free: 6.883 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.987e-05/0.2082, allocations: 5.562 kB / 406 MB, free: 6.883 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.374e-05/0.2082, allocations: 0.7031 kB / 406 MB, free: 6.883 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.14e-06/0.2082, allocations: 2.703 kB / 406 MB, free: 6.883 MB / 286.1 MB Notification: Performance of sorting global known variables: time 2.69e-05/0.2083, allocations: 90.11 kB / 406.1 MB, free: 6.805 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2083, allocations: 0 / 406.1 MB, free: 6.805 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0001957/0.2085, allocations: 20.58 kB / 406.1 MB, free: 6.797 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.0004439/0.2089, allocations: 0.7347 MB / 406.8 MB, free: 6.137 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001176/0.209, allocations: 77.02 kB / 406.9 MB, free: 6.066 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.209, allocations: 0 / 406.9 MB, free: 6.066 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 4.374e-05/0.2091, allocations: 61.84 kB / 407 MB, free: 6.004 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001289/0.2092, allocations: 14.28 kB / 407 MB, free: 5.996 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007277/0.21, allocations: 1.206 MB / 408.2 MB, free: 4.816 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.518e-05/0.21, allocations: 0.6771 MB / 408.8 MB, free: 4.121 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 1.63e-05/0.2101, allocations: 1.469 kB / 408.8 MB, free: 4.121 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.158e-05/0.2101, allocations: 10.77 kB / 408.9 MB, free: 4.113 MB / 286.1 MB Notification: Performance of SimCode: time 2.1e-07/0.2101, allocations: 0 / 408.9 MB, free: 4.113 MB / 286.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeMain.mo:779:13-779:124: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.1675/0.3776, allocations: 1.534 MB / 410.4 MB, free: 3.789 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001483/0.3778, allocations: 221.5 kB / 410.6 MB, free: 3.535 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.666/2.044, allocations: 0 / 410.6 MB, free: 3.535 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)