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.005361/0.005361, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001287/0.001287, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.333/1.333, allocations: 222.9 MB / 240.4 MB, free: 4.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.006372/0.006372, allocations: 1.004 MB / 291.5 MB, free: 1.184 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001215/0.001215, allocations: 68.05 kB / 402.5 MB, free: 4.492 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2321/0.2333, allocations: 49.65 MB / 452.1 MB, free: 22.1 MB / 350.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.001897/0.2352, allocations: 1.354 MB / 453.5 MB, free: 21.17 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008761/0.2361, allocations: 0.7928 MB / 454.3 MB, free: 20.61 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.236e-05/0.2362, allocations: 4 kB / 454.3 MB, free: 20.6 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.268e-05/0.2362, allocations: 3.938 kB / 454.3 MB, free: 20.6 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001569/0.2364, allocations: 18.64 kB / 454.3 MB, free: 20.59 MB / 350.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.0001537/0.2365, allocations: 39.02 kB / 454.3 MB, free: 20.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.237e-05/0.2366, allocations: 20.36 kB / 454.3 MB, free: 20.56 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.854e-05/0.2366, allocations: 0 / 454.3 MB, free: 20.56 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.672e-05/0.2367, allocations: 7.031 kB / 454.3 MB, free: 20.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001083/0.2368, allocations: 21.19 kB / 454.4 MB, free: 20.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.062e-05/0.2368, allocations: 7.188 kB / 454.4 MB, free: 20.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.456e-05/0.2369, allocations: 34.19 kB / 454.4 MB, free: 20.53 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.327e-05/0.2369, allocations: 11.98 kB / 454.4 MB, free: 20.52 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.322e-05/0.2369, allocations: 6.938 kB / 454.4 MB, free: 20.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001183/0.237, allocations: 55.2 kB / 454.5 MB, free: 20.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.237, allocations: 3.5 kB / 454.5 MB, free: 20.5 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2371, allocations: 0 / 454.5 MB, free: 20.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.018e-06/0.2371, allocations: 0 / 454.5 MB, free: 20.5 MB / 350.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.0003091/0.2374, allocations: 369.7 kB / 454.8 MB, free: 20.1 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.092e-05/0.2374, allocations: 9.75 kB / 454.9 MB, free: 20.1 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.965e-05/0.2374, allocations: 34.75 kB / 454.9 MB, free: 20.05 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.487e-05/0.2375, allocations: 8.062 kB / 454.9 MB, free: 20.05 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.31e-05/0.2376, allocations: 167.5 kB / 455.1 MB, free: 19.85 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.312e-06/0.2376, allocations: 384 / 455.1 MB, free: 19.85 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.438e-06/0.2376, allocations: 384 / 455.1 MB, free: 19.85 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.035e-05/0.2377, allocations: 35.62 kB / 455.1 MB, free: 19.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.565e-06/0.2377, allocations: 7.125 kB / 455.1 MB, free: 19.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.847e-06/0.2377, allocations: 0 / 455.1 MB, free: 19.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.436e-06/0.2377, allocations: 0 / 455.1 MB, free: 19.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.753e-05/0.2378, allocations: 21.48 kB / 455.1 MB, free: 19.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001041/0.2379, allocations: 162.7 kB / 455.3 MB, free: 19.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.938e-05/0.2379, allocations: 21.81 kB / 455.3 MB, free: 19.58 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.541e-05/0.238, allocations: 14.8 kB / 455.3 MB, free: 19.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.021e-06/0.238, allocations: 0 / 455.3 MB, free: 19.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001289/0.2381, allocations: 111.7 kB / 455.4 MB, free: 19.45 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.292e-06/0.2381, allocations: 4 kB / 455.4 MB, free: 19.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001981/0.2383, allocations: 88.97 kB / 455.5 MB, free: 19.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.125e-05/0.2384, allocations: 77.11 kB / 455.6 MB, free: 19.28 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.582e-05/0.2384, allocations: 111 kB / 455.7 MB, free: 19.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.835e-06/0.2385, allocations: 32.8 kB / 455.7 MB, free: 19.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.75e-05/0.2385, allocations: 87.66 kB / 455.8 MB, free: 19.05 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.771e-05/0.2385, allocations: 3.984 kB / 455.8 MB, free: 19.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.429e-05/0.2385, allocations: 17.12 kB / 455.8 MB, free: 19.03 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.621e-05/0.2386, allocations: 318 kB / 456.2 MB, free: 18.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.691e-05/0.2386, allocations: 6.438 kB / 456.2 MB, free: 18.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.406e-05/0.2387, allocations: 16.12 kB / 456.2 MB, free: 18.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.462e-05/0.2387, allocations: 89.45 kB / 456.3 MB, free: 18.61 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.2388, allocations: 0 / 456.3 MB, free: 18.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001096/0.2389, allocations: 85.53 kB / 456.3 MB, free: 18.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.111e-05/0.2389, allocations: 36.02 kB / 456.4 MB, free: 18.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.898e-06/0.2389, allocations: 0 / 456.4 MB, free: 18.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.369e-05/0.2389, allocations: 0 / 456.4 MB, free: 18.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.007e-05/0.239, allocations: 6.766 kB / 456.4 MB, free: 18.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.319e-06/0.239, allocations: 0 / 456.4 MB, free: 18.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.382e-05/0.239, allocations: 3.219 kB / 456.4 MB, free: 18.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.472e-06/0.239, allocations: 11.16 kB / 456.4 MB, free: 18.49 MB / 350.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.879e-05/0.2391, allocations: 139.7 kB / 456.5 MB, free: 18.35 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.256e-05/0.2391, allocations: 3.938 kB / 456.5 MB, free: 18.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.652e-05/0.2391, allocations: 10.78 kB / 456.6 MB, free: 18.33 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-06/0.2391, allocations: 0 / 456.6 MB, free: 18.33 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.2392, allocations: 0 / 456.6 MB, free: 18.33 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-06/0.2392, allocations: 0 / 456.6 MB, free: 18.33 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.732e-05/0.2392, allocations: 158.6 kB / 456.7 MB, free: 18.14 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.2392, allocations: 0 / 456.7 MB, free: 18.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.618e-05/0.2393, allocations: 6.875 kB / 456.7 MB, free: 18.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.2393, allocations: 3.938 kB / 456.7 MB, free: 18.13 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.012e-06/0.2393, allocations: 0 / 456.7 MB, free: 18.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.2393, allocations: 0 / 456.7 MB, free: 18.13 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.2393, allocations: 3.062 kB / 456.7 MB, free: 18.13 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001251/0.2394, allocations: 107.8 kB / 456.8 MB, free: 18.03 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.7e-05/0.2394, allocations: 81.05 kB / 456.9 MB, free: 17.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.352e-05/0.2395, allocations: 14.39 kB / 456.9 MB, free: 17.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.221e-05/0.2395, allocations: 3.125 kB / 456.9 MB, free: 17.92 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.052e-05/0.2395, allocations: 4 kB / 456.9 MB, free: 17.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.771e-06/0.2395, allocations: 3.094 kB / 456.9 MB, free: 17.92 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.641e-05/0.2396, allocations: 88.75 kB / 457 MB, free: 17.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2396, allocations: 0 / 457 MB, free: 17.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002104/0.2398, allocations: 20.38 kB / 457 MB, free: 17.83 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.0004902/0.2403, allocations: 0.7353 MB / 457.8 MB, free: 17.17 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001304/0.2404, allocations: 69.09 kB / 457.8 MB, free: 17.11 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.2404, allocations: 0 / 457.8 MB, free: 17.11 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.034e-05/0.2405, allocations: 67.25 kB / 457.9 MB, free: 17.04 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001425/0.2407, allocations: 11.31 kB / 457.9 MB, free: 17.03 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008113/0.2415, allocations: 1.216 MB / 459.1 MB, free: 15.85 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.024e-05/0.2416, allocations: 0.6852 MB / 459.8 MB, free: 15.15 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.098e-05/0.2416, allocations: 2.625 kB / 459.8 MB, free: 15.15 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.541e-05/0.2416, allocations: 10 kB / 459.8 MB, free: 15.14 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2416, allocations: 4 kB / 459.8 MB, free: 15.14 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.01797/0.2596, allocations: 1.739 MB / 461.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.68/7.94, allocations: 2.531 kB / 461.6 MB, free: 14.66 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 & python3 -m fmpy simulate --output-file KeyWordIO_KeyWordIO.Examples.WriteRealVariable_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 KeyWordIO_KeyWordIO_Examples_WriteRealVariable.fmu > KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe 2>&1)