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.0009587/0.0009586, allocations: 98.19 kB / 15.36 MB, free: 0.7344 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.006232/0.006232, allocations: 172.6 kB / 16.27 MB, free: 6.648 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.29/1.29, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.005731/0.005731, allocations: 1.004 MB / 292.4 MB, free: 1.129 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002755/0.0002755, allocations: 8 kB / 353.9 MB, free: 1.965 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2171/0.2174, allocations: 50.64 MB / 404.5 MB, free: 10.01 MB / 286.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.001378/0.2188, allocations: 1.082 MB / 405.6 MB, free: 9.977 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009666/0.2198, allocations: 0.7742 MB / 406.4 MB, free: 9.664 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.709e-05/0.2198, allocations: 0 / 406.4 MB, free: 9.664 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.253e-05/0.2198, allocations: 2.156 kB / 406.4 MB, free: 9.664 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001261/0.22, allocations: 9.312 kB / 406.4 MB, free: 9.66 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.0001452/0.2201, allocations: 34.59 kB / 406.5 MB, free: 9.648 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 4.546e-05/0.2202, allocations: 19.3 kB / 406.5 MB, free: 9.641 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.936e-05/0.2202, allocations: 2.25 kB / 406.5 MB, free: 9.641 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.629e-05/0.2203, allocations: 9.359 kB / 406.5 MB, free: 9.641 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001075/0.2204, allocations: 22.67 kB / 406.5 MB, free: 9.629 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.328e-06/0.2204, allocations: 5.469 kB / 406.5 MB, free: 9.625 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.702e-05/0.2205, allocations: 39.06 kB / 406.5 MB, free: 9.613 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.007e-05/0.2205, allocations: 4.031 kB / 406.6 MB, free: 9.613 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.729e-05/0.2205, allocations: 34.33 kB / 406.6 MB, free: 9.578 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001063/0.2206, allocations: 50.25 kB / 406.6 MB, free: 9.562 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.2206, allocations: 0 / 406.6 MB, free: 9.562 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.2206, allocations: 0.9375 kB / 406.6 MB, free: 9.562 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.745e-06/0.2207, allocations: 0 / 406.6 MB, free: 9.562 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.0002769/0.2209, allocations: 362.2 kB / 407 MB, free: 9.172 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.398e-05/0.221, allocations: 13.09 kB / 407 MB, free: 9.168 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.005e-05/0.221, allocations: 32.48 kB / 407 MB, free: 9.129 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.226e-05/0.221, allocations: 6.781 kB / 407 MB, free: 9.125 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.453e-05/0.2211, allocations: 169.6 kB / 407.2 MB, free: 8.926 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.896e-06/0.2211, allocations: 4.375 kB / 407.2 MB, free: 8.922 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.686e-06/0.2212, allocations: 5.312 kB / 407.2 MB, free: 8.918 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.545e-05/0.2213, allocations: 37.67 kB / 407.3 MB, free: 8.887 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.184e-06/0.2213, allocations: 7.875 kB / 407.3 MB, free: 8.879 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.506e-06/0.2213, allocations: 5.156 kB / 407.3 MB, free: 8.875 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.2213, allocations: 0.5625 kB / 407.3 MB, free: 8.875 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.268e-05/0.2214, allocations: 14.31 kB / 407.3 MB, free: 8.875 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001029/0.2215, allocations: 154.5 kB / 407.4 MB, free: 8.684 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.542e-05/0.2215, allocations: 27.22 kB / 407.5 MB, free: 8.656 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.884e-05/0.2216, allocations: 20.98 kB / 407.5 MB, free: 8.641 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.975e-06/0.2216, allocations: 3.938 kB / 407.5 MB, free: 8.637 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001319/0.2217, allocations: 112.8 kB / 407.6 MB, free: 8.52 MB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 1.212e-06/0.2217, allocations: 0 / 407.6 MB, free: 8.52 MB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002108/0.222, allocations: 97.3 kB / 407.7 MB, free: 8.445 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.248e-05/0.222, allocations: 78.23 kB / 407.8 MB, free: 8.352 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.59e-05/0.222, allocations: 110.9 kB / 407.9 MB, free: 8.246 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 9.077e-06/0.2221, allocations: 26.77 kB / 407.9 MB, free: 8.215 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.597e-05/0.2221, allocations: 81.17 kB / 408 MB, free: 8.133 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.774e-05/0.2221, allocations: 10.03 kB / 408 MB, free: 8.125 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.813e-05/0.2221, allocations: 10.88 kB / 408 MB, free: 8.109 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 3.78e-05/0.2222, allocations: 319 kB / 408.3 MB, free: 7.793 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.784e-05/0.2222, allocations: 6.438 kB / 408.3 MB, free: 7.793 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.894e-05/0.2223, allocations: 23.28 kB / 408.3 MB, free: 7.773 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.378e-05/0.2224, allocations: 84.14 kB / 408.4 MB, free: 7.691 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.2224, allocations: 1.031 kB / 408.4 MB, free: 7.691 MB / 286.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001151/0.2225, allocations: 84.89 kB / 408.5 MB, free: 7.621 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.2225, allocations: 36.42 kB / 408.5 MB, free: 7.586 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.818e-06/0.2225, allocations: 1.078 kB / 408.5 MB, free: 7.586 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.929e-06/0.2225, allocations: 1.953 kB / 408.5 MB, free: 7.586 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.86e-05/0.2226, allocations: 9.297 kB / 408.6 MB, free: 7.582 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.569e-06/0.2226, allocations: 0.7969 kB / 408.6 MB, free: 7.582 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.342e-05/0.2226, allocations: 5.156 kB / 408.6 MB, free: 7.582 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.49e-06/0.2226, allocations: 2.203 kB / 408.6 MB, free: 7.582 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.676e-05/0.2227, allocations: 139.2 kB / 408.7 MB, free: 7.434 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.155e-05/0.2227, allocations: 7.625 kB / 408.7 MB, free: 7.43 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.479e-05/0.2227, allocations: 4.328 kB / 408.7 MB, free: 7.422 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-06/0.2227, allocations: 5.344 kB / 408.7 MB, free: 7.418 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.2227, allocations: 0 / 408.7 MB, free: 7.418 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.2228, allocations: 4.75 kB / 408.7 MB, free: 7.414 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.178e-05/0.2228, allocations: 159 kB / 408.9 MB, free: 7.223 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.2228, allocations: 1.078 kB / 408.9 MB, free: 7.223 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.73e-05/0.2229, allocations: 4.984 kB / 408.9 MB, free: 7.223 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.2229, allocations: 4.688 kB / 408.9 MB, free: 7.219 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.051e-06/0.2229, allocations: 1.438 kB / 408.9 MB, free: 7.219 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.021e-06/0.2229, allocations: 0 / 408.9 MB, free: 7.219 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.2229, allocations: 5.562 kB / 408.9 MB, free: 7.215 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001298/0.223, allocations: 119.9 kB / 409 MB, free: 7.102 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.661e-05/0.223, allocations: 83.06 kB / 409.1 MB, free: 7.004 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.126e-05/0.2231, allocations: 1.531 kB / 409.1 MB, free: 7.004 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.336e-05/0.2231, allocations: 5.688 kB / 409.1 MB, free: 7.004 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.792e-05/0.2231, allocations: 2.703 kB / 409.1 MB, free: 7.004 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.541e-06/0.2231, allocations: 2.094 kB / 409.1 MB, free: 7.004 MB / 286.1 MB Notification: Performance of sorting global known variables: time 2.731e-05/0.2232, allocations: 96 kB / 409.2 MB, free: 6.918 MB / 286.1 MB Notification: Performance of sort global known variables: time 8.51e-07/0.2232, allocations: 1.125 kB / 409.2 MB, free: 6.918 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002017/0.2234, allocations: 19.75 kB / 409.2 MB, free: 6.91 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.0004905/0.2239, allocations: 0.7438 MB / 410 MB, free: 6.25 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001296/0.224, allocations: 77.3 kB / 410 MB, free: 6.184 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.224, allocations: 0 / 410 MB, free: 6.184 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 5.098e-05/0.2241, allocations: 68.62 kB / 410.1 MB, free: 6.117 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000134/0.2242, allocations: 7.125 kB / 410.1 MB, free: 6.113 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000774/0.225, allocations: 1.229 MB / 411.3 MB, free: 4.93 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.293e-05/0.2251, allocations: 0.6819 MB / 412 MB, free: 4.23 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 1.696e-05/0.2251, allocations: 1.031 kB / 412 MB, free: 4.23 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.258e-05/0.2252, allocations: 9.688 kB / 412 MB, free: 4.223 MB / 286.1 MB Notification: Performance of SimCode: time 7.82e-07/0.2252, allocations: 0 / 412 MB, free: 4.223 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.02097/0.2461, allocations: 1.439 MB / 413.5 MB, free: 3.992 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001296/0.2463, allocations: 226.6 kB / 413.7 MB, free: 3.734 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.581/1.827, allocations: 0 / 413.7 MB, free: 3.734 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)