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+X/package.mo", uses=false) Using package KeyWordIO with version 0.11.X (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/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.0009243/0.0009243, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.00111/0.00111, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.28/1.28, allocations: 223.2 MB / 239.9 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/package.mo): time 0.005528/0.005528, allocations: 0.9929 MB / 292 MB, free: 1.27 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003525/0.0003525, allocations: 11.94 kB / 353.2 MB, free: 2.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2886/0.289, allocations: 50.63 MB / 403.8 MB, free: 9.789 MB / 286.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.001745/0.2908, allocations: 1.072 MB / 404.9 MB, free: 9.754 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001178/0.292, allocations: 0.7565 MB / 405.6 MB, free: 9.516 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.128e-05/0.292, allocations: 0 / 405.6 MB, free: 9.516 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.6e-05/0.2921, allocations: 0 / 405.6 MB, free: 9.516 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001544/0.2922, allocations: 10.08 kB / 405.7 MB, free: 9.512 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/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.0001771/0.2924, allocations: 38.45 kB / 405.7 MB, free: 9.496 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 5.503e-05/0.2925, allocations: 12.72 kB / 405.7 MB, free: 9.492 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.017e-05/0.2925, allocations: 4.25 kB / 405.7 MB, free: 9.492 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.697e-05/0.2926, allocations: 8.656 kB / 405.7 MB, free: 9.488 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001224/0.2927, allocations: 16.77 kB / 405.7 MB, free: 9.484 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.053e-05/0.2927, allocations: 1.219 kB / 405.7 MB, free: 9.484 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.94e-05/0.2928, allocations: 30.39 kB / 405.8 MB, free: 9.477 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.256e-05/0.2928, allocations: 2.297 kB / 405.8 MB, free: 9.477 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.222e-05/0.2928, allocations: 27.73 kB / 405.8 MB, free: 9.445 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001055/0.293, allocations: 33.03 kB / 405.8 MB, free: 9.438 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.124e-06/0.293, allocations: 0.6562 kB / 405.8 MB, free: 9.438 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.293, allocations: 4 kB / 405.8 MB, free: 9.434 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.293, allocations: 0.6562 kB / 405.8 MB, free: 9.434 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.0003459/0.2933, allocations: 361.7 kB / 406.2 MB, free: 9.051 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.2934, allocations: 9.016 kB / 406.2 MB, free: 9.051 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.767e-05/0.2934, allocations: 31.5 kB / 406.2 MB, free: 9.012 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.648e-05/0.2934, allocations: 6.781 kB / 406.2 MB, free: 9.008 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001121/0.2936, allocations: 172.8 kB / 406.4 MB, free: 8.805 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.038e-05/0.2936, allocations: 0 / 406.4 MB, free: 8.805 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.482e-06/0.2936, allocations: 5.438 kB / 406.4 MB, free: 8.801 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001078/0.2937, allocations: 45.11 kB / 406.4 MB, free: 8.762 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.2937, allocations: 0 / 406.4 MB, free: 8.762 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.127e-06/0.2937, allocations: 0 / 406.4 MB, free: 8.762 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.2937, allocations: 1.219 kB / 406.5 MB, free: 8.762 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.238e-05/0.2938, allocations: 13.97 kB / 406.5 MB, free: 8.762 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001371/0.294, allocations: 159.1 kB / 406.6 MB, free: 8.566 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.594e-05/0.294, allocations: 28.5 kB / 406.6 MB, free: 8.539 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.033e-05/0.2941, allocations: 0 / 406.6 MB, free: 8.539 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001557/0.2942, allocations: 110.8 kB / 406.8 MB, free: 8.422 MB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 1.233e-06/0.2942, allocations: 1 kB / 406.8 MB, free: 8.422 MB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.00024/0.2945, allocations: 94.92 kB / 406.8 MB, free: 8.348 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.666e-05/0.2945, allocations: 78.3 kB / 406.9 MB, free: 8.254 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.674e-05/0.2946, allocations: 110.8 kB / 407 MB, free: 8.148 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 9.528e-06/0.2946, allocations: 26.67 kB / 407.1 MB, free: 8.117 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.212e-05/0.2946, allocations: 81.81 kB / 407.1 MB, free: 8.035 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.054e-05/0.2947, allocations: 10.5 kB / 407.2 MB, free: 8.027 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.276e-06/0.2947, allocations: 1.094 kB / 407.2 MB, free: 8.027 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 4.961e-05/0.2947, allocations: 317 kB / 407.5 MB, free: 7.711 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.813e-05/0.2948, allocations: 12.2 kB / 407.5 MB, free: 7.707 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.846e-05/0.2948, allocations: 19.14 kB / 407.5 MB, free: 7.691 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.001e-05/0.2949, allocations: 47.08 kB / 407.5 MB, free: 7.648 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.2949, allocations: 0 / 407.5 MB, free: 7.648 MB / 286.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001164/0.295, allocations: 84.81 kB / 407.6 MB, free: 7.578 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.582e-05/0.295, allocations: 36.8 kB / 407.7 MB, free: 7.543 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.909e-06/0.295, allocations: 3.953 kB / 407.7 MB, free: 7.539 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/0.2951, allocations: 1.703 kB / 407.7 MB, free: 7.539 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.248e-05/0.2951, allocations: 8.984 kB / 407.7 MB, free: 7.535 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.579e-06/0.2951, allocations: 1 kB / 407.7 MB, free: 7.535 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.514e-05/0.2952, allocations: 5.594 kB / 407.7 MB, free: 7.535 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.903e-06/0.2952, allocations: 1.797 kB / 407.7 MB, free: 7.535 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.185e-05/0.2953, allocations: 137.1 kB / 407.8 MB, free: 7.391 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.083e-05/0.2953, allocations: 2.031 kB / 407.8 MB, free: 7.391 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.072e-05/0.2953, allocations: 5.312 kB / 407.8 MB, free: 7.383 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.2953, allocations: 3.953 kB / 407.8 MB, free: 7.379 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.2953, allocations: 1.547 kB / 407.8 MB, free: 7.379 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.2953, allocations: 4 kB / 407.8 MB, free: 7.375 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.477e-05/0.2954, allocations: 160.1 kB / 408 MB, free: 7.184 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.2954, allocations: 1 kB / 408 MB, free: 7.184 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.96e-05/0.2954, allocations: 8.312 kB / 408 MB, free: 7.18 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.2954, allocations: 0.9688 kB / 408 MB, free: 7.18 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.276e-06/0.2955, allocations: 5.328 kB / 408 MB, free: 7.18 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.2955, allocations: 0 / 408 MB, free: 7.18 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.2955, allocations: 3.953 kB / 408 MB, free: 7.176 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001367/0.2956, allocations: 112 kB / 408.1 MB, free: 7.07 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.606e-05/0.2957, allocations: 83.56 kB / 408.2 MB, free: 6.973 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.741e-05/0.2957, allocations: 1.062 kB / 408.2 MB, free: 6.973 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.861e-05/0.2957, allocations: 6.5 kB / 408.2 MB, free: 6.973 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.748e-05/0.2958, allocations: 6.281 kB / 408.2 MB, free: 6.969 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.292e-06/0.2958, allocations: 2.094 kB / 408.2 MB, free: 6.969 MB / 286.1 MB Notification: Performance of sorting global known variables: time 3.393e-05/0.2958, allocations: 92.44 kB / 408.3 MB, free: 6.887 MB / 286.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2958, allocations: 0 / 408.3 MB, free: 6.887 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000209/0.296, allocations: 19.25 kB / 408.3 MB, free: 6.879 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006087/0.2967, allocations: 0.7408 MB / 409.1 MB, free: 6.223 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001614/0.2968, allocations: 77.3 kB / 409.1 MB, free: 6.156 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.2968, allocations: 0 / 409.1 MB, free: 6.156 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.384e-05/0.2969, allocations: 63.22 kB / 409.2 MB, free: 6.094 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001176/0.297, allocations: 10.8 kB / 409.2 MB, free: 6.086 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006684/0.2977, allocations: 0.541 MB / 409.8 MB, free: 5.586 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001661/0.2979, allocations: 0.683 MB / 410.4 MB, free: 4.887 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 2.419e-05/0.2979, allocations: 1.844 kB / 410.4 MB, free: 4.887 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.054e-05/0.298, allocations: 14.97 kB / 410.4 MB, free: 4.875 MB / 286.1 MB Notification: Performance of SimCode: time 2.21e-07/0.298, allocations: 0 / 410.4 MB, free: 4.875 MB / 286.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeMain.mo:719:13-719:124:writable] Error: Internal error Failed to copy path /home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/../output.txt to KeyWordIO_KeyWordIO_Examples_WriteRealVariable.fmutmp/resources//home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/.. Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01401/0.312, allocations: 1.422 MB / 411.9 MB, free: 4.648 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001613/0.3122, allocations: 197.9 kB / 412.1 MB, free: 4.414 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.579/1.891, allocations: 0 / 412.1 MB, free: 4.414 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/linux/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) Environment - environmentSimulation: