Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr KeyWordIO_KeyWordIO.Examples.WriteRealVariables.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.WriteRealVariables,fileNamePrefix="KeyWordIO_KeyWordIO_Examples_WriteRealVariables",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(KeyWordIO.Examples.WriteRealVariables,fileNamePrefix="KeyWordIO_KeyWordIO_Examples_WriteRealVariables",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.007746/0.007746, allocations: 102.1 kB / 15.73 MB, free: 5.996 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.001838/0.001838, allocations: 185.6 kB / 16.67 MB, free: 5.93 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.602/1.602, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.006303/0.006303, allocations: 0.9997 MB / 291.5 MB, free: 1.188 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 67.89 kB / 402.5 MB, free: 4.496 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2236/0.2248, allocations: 49.63 MB / 452.1 MB, free: 22.09 MB / 350.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.001913/0.2268, allocations: 1.372 MB / 453.5 MB, free: 21.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000903/0.2277, allocations: 0.8071 MB / 454.3 MB, free: 20.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.181e-05/0.2277, allocations: 0 / 454.3 MB, free: 20.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.296e-05/0.2278, allocations: 3.938 kB / 454.3 MB, free: 20.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001782/0.228, allocations: 14.27 kB / 454.3 MB, free: 20.56 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/writeRealVariables.mo:2:1-21:23:writable] Warning: Pure function 'KeyWordIO.writeRealVariables' contains a call to impure function 'Modelica.Utilities.Files.removeFile'. Notification: Performance of NFTyping.typeClassSections: time 0.0002236/0.2282, allocations: 43.08 kB / 454.3 MB, free: 20.54 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.518e-05/0.2283, allocations: 31.95 kB / 454.4 MB, free: 20.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.158e-05/0.2283, allocations: 0 / 454.4 MB, free: 20.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.836e-05/0.2284, allocations: 13.52 kB / 454.4 MB, free: 20.52 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.796e-05/0.2285, allocations: 18.48 kB / 454.4 MB, free: 20.51 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.008e-05/0.2285, allocations: 3.188 kB / 454.4 MB, free: 20.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.68e-05/0.2286, allocations: 42.17 kB / 454.4 MB, free: 20.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.092e-05/0.2286, allocations: 0 / 454.4 MB, free: 20.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.323e-05/0.2286, allocations: 17.94 kB / 454.5 MB, free: 20.49 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001306/0.2288, allocations: 61.03 kB / 454.5 MB, free: 20.46 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.2288, allocations: 3.281 kB / 454.5 MB, free: 20.46 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2288, allocations: 11.88 kB / 454.5 MB, free: 20.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.358e-06/0.2288, allocations: 0 / 454.5 MB, free: 20.45 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003349/0.2291, allocations: 373.6 kB / 454.9 MB, free: 20.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.143e-05/0.2292, allocations: 9.531 kB / 454.9 MB, free: 20.05 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.327e-05/0.2292, allocations: 38.69 kB / 454.9 MB, free: 20.01 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.68e-05/0.2292, allocations: 11.86 kB / 455 MB, free: 20 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.022e-05/0.2293, allocations: 170.9 kB / 455.1 MB, free: 19.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.126e-05/0.2293, allocations: 3.469 kB / 455.1 MB, free: 19.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.719e-06/0.2294, allocations: 384 / 455.1 MB, free: 19.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001104/0.2295, allocations: 47.11 kB / 455.2 MB, free: 19.76 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.2295, allocations: 3.938 kB / 455.2 MB, free: 19.76 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.646e-06/0.2295, allocations: 3.094 kB / 455.2 MB, free: 19.76 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.2295, allocations: 3.984 kB / 455.2 MB, free: 19.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.985e-05/0.2296, allocations: 16.08 kB / 455.2 MB, free: 19.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001037/0.2297, allocations: 155.1 kB / 455.4 MB, free: 19.56 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.834e-05/0.2298, allocations: 38.53 kB / 455.4 MB, free: 19.53 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.874e-05/0.2298, allocations: 23.17 kB / 455.4 MB, free: 19.51 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.498e-06/0.2299, allocations: 0 / 455.4 MB, free: 19.51 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001619/0.23, allocations: 154.4 kB / 455.6 MB, free: 19.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.362e-06/0.23, allocations: 0 / 455.6 MB, free: 19.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002762/0.2303, allocations: 122.8 kB / 455.7 MB, free: 19.28 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.995e-05/0.2304, allocations: 139.1 kB / 455.8 MB, free: 19.11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.261e-05/0.2304, allocations: 104.9 kB / 455.9 MB, free: 19.01 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.075e-06/0.2304, allocations: 28.17 kB / 456 MB, free: 18.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.596e-05/0.2305, allocations: 84.14 kB / 456 MB, free: 18.89 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.1e-05/0.2305, allocations: 17.89 kB / 456.1 MB, free: 18.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.906e-05/0.2305, allocations: 19.31 kB / 456.1 MB, free: 18.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.579e-05/0.2306, allocations: 314.1 kB / 456.4 MB, free: 18.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.541e-05/0.2306, allocations: 12.53 kB / 456.4 MB, free: 18.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.228e-05/0.2307, allocations: 27.3 kB / 456.4 MB, free: 18.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001197/0.2308, allocations: 105.4 kB / 456.5 MB, free: 18.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.2308, allocations: 0 / 456.5 MB, free: 18.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001429/0.2309, allocations: 98.75 kB / 456.6 MB, free: 18.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.498e-05/0.231, allocations: 35.61 kB / 456.6 MB, free: 18.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.978e-06/0.231, allocations: 8 kB / 456.7 MB, free: 18.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.089e-05/0.231, allocations: 0 / 456.7 MB, free: 18.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.041e-05/0.2311, allocations: 9.859 kB / 456.7 MB, free: 18.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.378e-06/0.2311, allocations: 0 / 456.7 MB, free: 18.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.924e-05/0.2311, allocations: 7.141 kB / 456.7 MB, free: 18.31 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.323e-06/0.2311, allocations: 2.969 kB / 456.7 MB, free: 18.31 MB / 350.1 MB Warning: Assuming fixed start value for the following 1 variables: y_end:DISCRETE(start = 0.0 fixed = true ) "End value of step.y right after switching" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.y_end,y_end,y_start,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 3 * 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 9.372e-05/0.2312, allocations: 147 kB / 456.8 MB, free: 18.16 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.514e-05/0.2313, allocations: 10.78 kB / 456.8 MB, free: 18.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.659e-05/0.2313, allocations: 11.09 kB / 456.8 MB, free: 18.14 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.2313, allocations: 3.516 kB / 456.8 MB, free: 18.14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.2313, allocations: 256 / 456.8 MB, free: 18.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.2313, allocations: 0 / 456.8 MB, free: 18.14 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.531e-05/0.2314, allocations: 169.4 kB / 457 MB, free: 17.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.2314, allocations: 0 / 457 MB, free: 17.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.667e-05/0.2314, allocations: 3.219 kB / 457 MB, free: 17.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.2314, allocations: 3.938 kB / 457 MB, free: 17.94 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.979e-06/0.2314, allocations: 6.312 kB / 457 MB, free: 17.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.453e-06/0.2314, allocations: 3.984 kB / 457 MB, free: 17.94 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.2314, allocations: 4 kB / 457 MB, free: 17.93 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001808/0.2316, allocations: 150.9 kB / 457.2 MB, free: 17.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.74e-05/0.2317, allocations: 83.95 kB / 457.3 MB, free: 17.72 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.831e-05/0.2317, allocations: 0 / 457.3 MB, free: 17.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.605e-05/0.2317, allocations: 6.188 kB / 457.3 MB, free: 17.72 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.393e-05/0.2318, allocations: 7.469 kB / 457.3 MB, free: 17.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.242e-05/0.2318, allocations: 3.312 kB / 457.3 MB, free: 17.71 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.621e-05/0.2318, allocations: 89.53 kB / 457.4 MB, free: 17.63 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2318, allocations: 0 / 457.4 MB, free: 17.63 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000222/0.232, allocations: 25.73 kB / 457.4 MB, free: 17.63 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: 4 ($whenCondition1,$whenCondition2,y_start,y_end) * Number of discrete states: 4 ($whenCondition2,y_end,$whenCondition1,y_start) * 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.0005493/0.2326, allocations: 0.7943 MB / 458.2 MB, free: 16.94 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001721/0.2328, allocations: 101.1 kB / 458.3 MB, free: 16.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.2328, allocations: 0 / 458.3 MB, free: 16.86 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.121e-05/0.2329, allocations: 92.53 kB / 458.4 MB, free: 16.78 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001411/0.233, allocations: 2.75 kB / 458.4 MB, free: 16.78 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009093/0.2339, allocations: 1.302 MB / 459.7 MB, free: 15.58 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.696e-05/0.234, allocations: 0.6821 MB / 460.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.783e-05/0.2341, allocations: 3.094 kB / 460.4 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.883e-05/0.2341, allocations: 18.14 kB / 460.4 MB, free: 14.87 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2341, allocations: 0 / 460.4 MB, free: 14.87 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_WriteRealVariables.fmutmp/resources//home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/.. Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01737/0.2515, allocations: 1.942 MB / 462.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.933/8.185, allocations: 16.22 kB / 462.3 MB, free: 14.37 MB / 350.1 MB (rm -f KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe ; mkfifo KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe ; head -c 1048576 < KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe >> ../files/KeyWordIO_KeyWordIO.Examples.WriteRealVariables.sim & python3 -m fmpy simulate --output-file KeyWordIO_KeyWordIO.Examples.WriteRealVariables_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_WriteRealVariables.fmu > KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe 2>&1)