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.001063/0.001063, allocations: 108 kB / 15.63 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001032/0.001032, allocations: 195.9 kB / 16.56 MB, free: 6.637 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.247/1.247, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/package.mo): time 0.005608/0.005608, allocations: 1.01 MB / 291.4 MB, free: 1.254 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00108/0.00108, allocations: 55.91 kB / 352.2 MB, free: 6.695 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07549/0.07658, allocations: 49.65 MB / 401.9 MB, free: 5.004 MB / 334.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.002289/0.0789, allocations: 1.35 MB / 403.2 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009614/0.07988, allocations: 0.801 MB / 404 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.907e-05/0.07992, allocations: 0 / 404 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.224e-05/0.07995, allocations: 0 / 404 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001525/0.08012, allocations: 7.938 kB / 404 MB, free: 2.832 MB / 334.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.0001591/0.08028, allocations: 43.81 kB / 404.1 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 6.084e-05/0.08036, allocations: 20 kB / 404.1 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.388e-05/0.08041, allocations: 3.984 kB / 404.1 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.025e-05/0.08044, allocations: 15.88 kB / 404.1 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001184/0.08056, allocations: 19.91 kB / 404.1 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.778e-06/0.08058, allocations: 0 / 404.1 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.855e-05/0.08067, allocations: 39.97 kB / 404.2 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.668e-06/0.08068, allocations: 0 / 404.2 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.605e-05/0.08071, allocations: 15.92 kB / 404.2 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001113/0.08083, allocations: 47.89 kB / 404.2 MB, free: 2.629 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.08084, allocations: 0 / 404.2 MB, free: 2.629 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.08085, allocations: 0 / 404.2 MB, free: 2.629 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.888e-06/0.08085, allocations: 0 / 404.2 MB, free: 2.629 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.0003702/0.08123, allocations: 369.4 kB / 404.6 MB, free: 2.211 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/0.08127, allocations: 12.03 kB / 404.6 MB, free: 2.199 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.712e-05/0.08131, allocations: 34.75 kB / 404.6 MB, free: 2.156 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.534e-05/0.08134, allocations: 8.781 kB / 404.6 MB, free: 2.148 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001121/0.08146, allocations: 172.4 kB / 404.8 MB, free: 1.941 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.568e-06/0.08148, allocations: 384 / 404.8 MB, free: 1.941 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.771e-06/0.08149, allocations: 384 / 404.8 MB, free: 1.941 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.366e-05/0.08159, allocations: 42.25 kB / 404.8 MB, free: 1.895 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-06/0.0816, allocations: 3.938 kB / 404.8 MB, free: 1.891 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.235e-06/0.08162, allocations: 0 / 404.8 MB, free: 1.891 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.011e-06/0.08163, allocations: 3.984 kB / 404.8 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.881e-05/0.08169, allocations: 19.92 kB / 404.9 MB, free: 1.867 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001264/0.08182, allocations: 153.7 kB / 405 MB, free: 1.668 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.955e-05/0.08189, allocations: 26.55 kB / 405 MB, free: 1.633 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.571e-05/0.08193, allocations: 16.91 kB / 405.1 MB, free: 1.613 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.437e-06/0.08195, allocations: 0 / 405.1 MB, free: 1.613 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001467/0.0821, allocations: 106.8 kB / 405.2 MB, free: 1.484 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/0.08211, allocations: 0 / 405.2 MB, free: 1.484 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002158/0.08233, allocations: 91.22 kB / 405.3 MB, free: 1.383 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.048e-05/0.08238, allocations: 77.11 kB / 405.3 MB, free: 1.289 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.305e-05/0.08246, allocations: 117.8 kB / 405.4 MB, free: 1.164 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.136e-05/0.08248, allocations: 29.64 kB / 405.5 MB, free: 1.129 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.784e-05/0.08251, allocations: 80.14 kB / 405.6 MB, free: 1.047 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.985e-05/0.08254, allocations: 8.125 kB / 405.6 MB, free: 1.039 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.623e-05/0.08257, allocations: 13.72 kB / 405.6 MB, free: 1.02 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.33e-05/0.08266, allocations: 314.8 kB / 405.9 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.789e-05/0.0827, allocations: 11.98 kB / 405.9 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.18e-05/0.08275, allocations: 17.72 kB / 405.9 MB, free: 0.668 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.577e-05/0.08284, allocations: 85.11 kB / 406 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.08285, allocations: 0 / 406 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001172/0.08297, allocations: 83.28 kB / 406.1 MB, free: 484 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.887e-05/0.08301, allocations: 37.64 kB / 406.1 MB, free: 440 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.426e-06/0.08302, allocations: 0 / 406.1 MB, free: 440 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.267e-06/0.08303, allocations: 0 / 406.1 MB, free: 440 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.756e-05/0.08308, allocations: 4 kB / 406.1 MB, free: 436 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.08309, allocations: 0 / 406.1 MB, free: 436 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.727e-05/0.08314, allocations: 15.98 kB / 406.1 MB, free: 420 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.919e-06/0.08315, allocations: 0 / 406.1 MB, free: 420 kB / 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 6.774e-05/0.08322, allocations: 139.5 kB / 406.3 MB, free: 264 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.203e-05/0.08324, allocations: 3.938 kB / 406.3 MB, free: 260 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.723e-05/0.08326, allocations: 7.531 kB / 406.3 MB, free: 252 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-06/0.08327, allocations: 0 / 406.3 MB, free: 252 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.08328, allocations: 0 / 406.3 MB, free: 252 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.08328, allocations: 3.984 kB / 406.3 MB, free: 248 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.418e-05/0.08337, allocations: 153.7 kB / 406.4 MB, free: 44 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.08338, allocations: 4 kB / 406.4 MB, free: 40 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.576e-05/0.08341, allocations: 4 kB / 406.4 MB, free: 36 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.08342, allocations: 7.875 kB / 406.4 MB, free: 28 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.232e-06/0.08343, allocations: 0 / 406.4 MB, free: 28 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.08344, allocations: 4 kB / 406.5 MB, free: 24 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.08344, allocations: 3.984 kB / 406.5 MB, free: 20 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001473/0.08359, allocations: 110.7 kB / 406.6 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.248e-05/0.08364, allocations: 81.05 kB / 406.6 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.139e-05/0.08365, allocations: 3.938 kB / 406.6 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.062e-05/0.08369, allocations: 7.984 kB / 406.7 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.715e-05/0.08372, allocations: 0 / 406.7 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.632e-06/0.08373, allocations: 4 kB / 406.7 MB, free: 15.77 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.119e-05/0.08378, allocations: 87.27 kB / 406.7 MB, free: 15.69 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.08378, allocations: 0 / 406.7 MB, free: 15.69 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0001944/0.08398, allocations: 16 kB / 406.8 MB, free: 15.67 MB / 350.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.0005752/0.08456, allocations: 0.746 MB / 407.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001357/0.08471, allocations: 79.33 kB / 407.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.08472, allocations: 0 / 407.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.848e-05/0.08479, allocations: 67.52 kB / 407.6 MB, free: 14.76 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001296/0.08492, allocations: 4 kB / 407.7 MB, free: 14.76 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009436/0.08587, allocations: 1.203 MB / 408.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001848/0.08607, allocations: 0.6805 MB / 409.5 MB, free: 12.76 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.792e-05/0.08609, allocations: 4 kB / 409.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.673e-05/0.08613, allocations: 19.42 kB / 409.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.08613, allocations: 3.938 kB / 409.6 MB, free: 12.73 MB / 350.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+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.02013/0.1063, allocations: 1.692 MB / 411.3 MB, free: 11.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.262/5.368, allocations: 6.188 kB / 411.3 MB, free: 11.08 MB / 350.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)