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.001036/0.001036, allocations: 108 kB / 15.6 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.0009962/0.0009962, allocations: 193.4 kB / 16.53 MB, free: 6.391 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.324/1.324, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.006151/0.006151, allocations: 1.006 MB / 291.4 MB, free: 1.273 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 59.91 kB / 352.2 MB, free: 6.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07723/0.07847, allocations: 49.65 MB / 401.8 MB, free: 5.074 MB / 334.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.00247/0.08098, allocations: 1.358 MB / 403.2 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001052/0.08206, allocations: 0.7971 MB / 404 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.157e-05/0.08211, allocations: 0 / 404 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.202e-05/0.08214, allocations: 0 / 404 MB, free: 2.906 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001606/0.08232, allocations: 11.92 kB / 404 MB, free: 2.895 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.0001747/0.08251, allocations: 47.83 kB / 404 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 5.517e-05/0.08257, allocations: 15.98 kB / 404 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.988e-05/0.08262, allocations: 8 kB / 404 MB, free: 2.824 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.481e-05/0.08266, allocations: 11.88 kB / 404.1 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001004/0.08276, allocations: 15.92 kB / 404.1 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.558e-06/0.08278, allocations: 0 / 404.1 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.421e-05/0.08287, allocations: 39.95 kB / 404.1 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.708e-06/0.08288, allocations: 0 / 404.1 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.79e-05/0.08292, allocations: 15.92 kB / 404.1 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001111/0.08303, allocations: 47.88 kB / 404.2 MB, free: 2.695 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.08305, allocations: 4 kB / 404.2 MB, free: 2.691 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.08305, allocations: 0 / 404.2 MB, free: 2.691 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.466e-06/0.08306, allocations: 0 / 404.2 MB, free: 2.691 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.0003657/0.08343, allocations: 377.3 kB / 404.5 MB, free: 2.266 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.016e-05/0.08347, allocations: 8.031 kB / 404.5 MB, free: 2.258 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.452e-05/0.0835, allocations: 30.75 kB / 404.6 MB, free: 2.219 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.331e-05/0.08352, allocations: 4.938 kB / 404.6 MB, free: 2.215 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001184/0.08365, allocations: 172.3 kB / 404.8 MB, free: 2.008 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.907e-06/0.08366, allocations: 4.312 kB / 404.8 MB, free: 2.004 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.534e-06/0.08368, allocations: 384 / 404.8 MB, free: 2.004 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.65e-05/0.08378, allocations: 42.25 kB / 404.8 MB, free: 1.957 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-06/0.08379, allocations: 3.938 kB / 404.8 MB, free: 1.953 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.464e-06/0.08381, allocations: 0 / 404.8 MB, free: 1.953 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.406e-06/0.08381, allocations: 0 / 404.8 MB, free: 1.953 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.643e-05/0.08387, allocations: 11.98 kB / 404.8 MB, free: 1.941 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001815/0.08406, allocations: 153.7 kB / 405 MB, free: 1.742 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.292e-05/0.08413, allocations: 34.5 kB / 405 MB, free: 1.699 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.523e-05/0.08417, allocations: 8.922 kB / 405 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.236e-06/0.08419, allocations: 3.938 kB / 405 MB, free: 1.684 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001403/0.08433, allocations: 114.7 kB / 405.1 MB, free: 1.547 MB / 334.1 MB Notification: Performance of pre-optimization done (n=2): time 1.182e-06/0.08434, allocations: 0 / 405.1 MB, free: 1.547 MB / 334.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002099/0.08456, allocations: 87.47 kB / 405.2 MB, free: 1.449 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.325e-05/0.08461, allocations: 81.05 kB / 405.3 MB, free: 1.352 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.024e-05/0.08469, allocations: 105.8 kB / 405.4 MB, free: 1.238 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.529e-05/0.08471, allocations: 25.7 kB / 405.4 MB, free: 1.207 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.547e-05/0.0848, allocations: 84.14 kB / 405.5 MB, free: 1.121 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.809e-05/0.08483, allocations: 7.906 kB / 405.5 MB, free: 1.113 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.858e-05/0.08487, allocations: 17.7 kB / 405.5 MB, free: 1.09 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.365e-05/0.08496, allocations: 310.8 kB / 405.8 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.917e-05/0.08501, allocations: 12.03 kB / 405.8 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.863e-05/0.08506, allocations: 21.7 kB / 405.9 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.374e-05/0.08516, allocations: 77.11 kB / 405.9 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.08516, allocations: 0 / 405.9 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001246/0.08529, allocations: 83.39 kB / 406 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.769e-05/0.08533, allocations: 33.64 kB / 406 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.08534, allocations: 0 / 406 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.307e-06/0.08535, allocations: 0 / 406 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.163e-05/0.08541, allocations: 11.98 kB / 406.1 MB, free: 0.5 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.048e-06/0.08542, allocations: 320 / 406.1 MB, free: 0.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.258e-05/0.08546, allocations: 4 kB / 406.1 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.212e-06/0.08547, allocations: 3.984 kB / 406.1 MB, free: 0.4922 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 8.325e-05/0.08556, allocations: 143.5 kB / 406.2 MB, free: 344 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.449e-05/0.08558, allocations: 11.94 kB / 406.2 MB, free: 332 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.405e-05/0.0856, allocations: 3.531 kB / 406.2 MB, free: 328 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.0856, allocations: 0 / 406.2 MB, free: 328 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.08561, allocations: 4 kB / 406.2 MB, free: 324 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.883e-06/0.08562, allocations: 0 / 406.2 MB, free: 324 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.944e-05/0.08572, allocations: 161.7 kB / 406.4 MB, free: 112 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.08573, allocations: 0 / 406.4 MB, free: 112 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.846e-05/0.08576, allocations: 7.984 kB / 406.4 MB, free: 104 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.207e-06/0.08577, allocations: 7.875 kB / 406.4 MB, free: 96 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.484e-06/0.08579, allocations: 4 kB / 406.4 MB, free: 92 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.08579, allocations: 4 kB / 406.4 MB, free: 88 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.0858, allocations: 0 / 406.4 MB, free: 88 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001589/0.08596, allocations: 106.8 kB / 406.5 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.557e-05/0.08601, allocations: 85.03 kB / 406.6 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.431e-05/0.08603, allocations: 4 kB / 406.6 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.974e-05/0.08606, allocations: 0 / 406.6 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.288e-05/0.0861, allocations: 8.031 kB / 406.6 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.919e-06/0.08611, allocations: 3.938 kB / 406.6 MB, free: 15.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.376e-05/0.08616, allocations: 95.25 kB / 406.7 MB, free: 15.74 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.08616, allocations: 0 / 406.7 MB, free: 15.74 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002111/0.08638, allocations: 20 kB / 406.7 MB, free: 15.72 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.0006149/0.087, allocations: 0.7349 MB / 407.5 MB, free: 15 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001401/0.08715, allocations: 79.33 kB / 407.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.492e-06/0.08716, allocations: 0 / 407.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.181e-05/0.08723, allocations: 67.39 kB / 407.6 MB, free: 14.83 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001309/0.08737, allocations: 0 / 407.6 MB, free: 14.83 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001032/0.08841, allocations: 1.215 MB / 408.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002116/0.08863, allocations: 0.6766 MB / 409.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.724e-05/0.08866, allocations: 3.984 kB / 409.5 MB, free: 12.81 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.813e-05/0.08869, allocations: 15.44 kB / 409.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.0887, allocations: 0 / 409.5 MB, free: 12.8 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-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.2478/0.3365, allocations: 1.708 MB / 411.2 MB, free: 11.14 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.652/8.988, allocations: 6.406 kB / 411.2 MB, free: 11.14 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)