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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001587/0.001587, allocations: 95.64 kB / 18.95 MB, free: 2.691 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002053/0.002053, allocations: 210.9 kB / 22.24 MB, free: 5.242 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.393/1.393, allocations: 230.6 MB / 256 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/package.mo): time 0.006752/0.006752, allocations: 1.012 MB / 313.4 MB, free: 1.914 MB / 238.1 MB " [Timeout remaining time 180] Using package KeyWordIO with version 0.12.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: KeyWordIO requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001903/0.001903, allocations: 67.89 kB / 435.7 MB, free: 16.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09433/0.09624, allocations: 53.58 MB / 489.2 MB, free: 10.78 MB / 350.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.002477/0.09871, allocations: 1.381 MB / 490.6 MB, free: 9.391 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001381/0.1001, allocations: 0.8959 MB / 491.5 MB, free: 8.492 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.48e-05/0.1001, allocations: 0 / 491.5 MB, free: 8.492 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.565e-05/0.1001, allocations: 7.875 kB / 491.5 MB, free: 8.484 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001762/0.1003, allocations: 11.94 kB / 491.5 MB, free: 8.473 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/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.0002322/0.1006, allocations: 43.89 kB / 491.6 MB, free: 8.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.076e-05/0.1006, allocations: 35.84 kB / 491.6 MB, free: 8.395 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.967e-05/0.1007, allocations: 3.984 kB / 491.6 MB, free: 8.391 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.888e-05/0.1007, allocations: 8 kB / 491.6 MB, free: 8.383 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.998e-05/0.1008, allocations: 11.92 kB / 491.6 MB, free: 8.371 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.159e-05/0.1008, allocations: 4 kB / 491.6 MB, free: 8.367 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001138/0.1009, allocations: 47.89 kB / 491.7 MB, free: 8.32 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.555e-05/0.1009, allocations: 7.938 kB / 491.7 MB, free: 8.312 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.068e-05/0.1009, allocations: 11.94 kB / 491.7 MB, free: 8.301 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001537/0.1011, allocations: 64.08 kB / 491.8 MB, free: 8.238 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.718e-06/0.1011, allocations: 0 / 491.8 MB, free: 8.238 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1011, allocations: 4 kB / 491.8 MB, free: 8.234 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.558e-06/0.1011, allocations: 0 / 491.8 MB, free: 8.234 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.0004098/0.1015, allocations: 299.8 kB / 492.1 MB, free: 7.902 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.786e-05/0.1015, allocations: 12.03 kB / 492.1 MB, free: 7.891 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.627e-05/0.1016, allocations: 34.73 kB / 492.1 MB, free: 7.848 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.719e-05/0.1016, allocations: 4.938 kB / 492.1 MB, free: 7.844 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001227/0.1017, allocations: 118.5 kB / 492.2 MB, free: 7.703 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.387e-05/0.1017, allocations: 4.312 kB / 492.2 MB, free: 7.699 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.296e-06/0.1018, allocations: 384 / 492.2 MB, free: 7.699 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002018/0.102, allocations: 71.95 kB / 492.3 MB, free: 7.617 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.223e-05/0.102, allocations: 11.92 kB / 492.3 MB, free: 7.605 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.496e-06/0.102, allocations: 0 / 492.3 MB, free: 7.605 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-06/0.102, allocations: 0 / 492.3 MB, free: 7.605 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.436e-05/0.1021, allocations: 45.69 kB / 492.4 MB, free: 7.555 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001581/0.1022, allocations: 128.8 kB / 492.5 MB, free: 7.387 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.56e-05/0.1023, allocations: 56.22 kB / 492.5 MB, free: 7.316 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.589e-05/0.1024, allocations: 42.62 kB / 492.6 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.532e-06/0.1024, allocations: 0 / 492.6 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002037/0.1026, allocations: 174.1 kB / 492.8 MB, free: 7.059 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.172e-06/0.1026, allocations: 4 kB / 492.8 MB, free: 7.055 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.000346/0.1029, allocations: 182.8 kB / 492.9 MB, free: 6.852 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.466e-05/0.103, allocations: 136.4 kB / 493.1 MB, free: 6.688 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.404e-05/0.1031, allocations: 113.8 kB / 493.2 MB, free: 6.566 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.725e-05/0.1031, allocations: 25.7 kB / 493.2 MB, free: 6.535 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.37e-05/0.1032, allocations: 88.08 kB / 493.3 MB, free: 6.445 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.128e-05/0.1032, allocations: 7.953 kB / 493.3 MB, free: 6.438 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.597e-05/0.1032, allocations: 17.72 kB / 493.3 MB, free: 6.414 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001475/0.1034, allocations: 322.8 kB / 493.6 MB, free: 6.09 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.255e-05/0.1034, allocations: 45.72 kB / 493.7 MB, free: 6.039 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.747e-05/0.1035, allocations: 51.41 kB / 493.7 MB, free: 5.977 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001574/0.1037, allocations: 101 kB / 493.8 MB, free: 5.859 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.1037, allocations: 0 / 493.8 MB, free: 5.859 MB / 350.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000182/0.1039, allocations: 129 kB / 494 MB, free: 5.715 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.893e-05/0.1039, allocations: 37.64 kB / 494 MB, free: 5.672 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.1039, allocations: 3.984 kB / 494 MB, free: 5.668 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.293e-05/0.1039, allocations: 4.109 kB / 494 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.104e-05/0.104, allocations: 7.984 kB / 494 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.104, allocations: 7.938 kB / 494 MB, free: 5.648 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.923e-05/0.104, allocations: 7.938 kB / 494 MB, free: 5.641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.853e-06/0.104, allocations: 0 / 494 MB, free: 5.641 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 0.0001593/0.1042, allocations: 154.1 kB / 494.2 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.901e-05/0.1042, allocations: 7.938 kB / 494.2 MB, free: 5.469 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.065e-05/0.1042, allocations: 8.062 kB / 494.2 MB, free: 5.457 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.1042, allocations: 4 kB / 494.2 MB, free: 5.453 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.1042, allocations: 0 / 494.2 MB, free: 5.453 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.1042, allocations: 3.984 kB / 494.2 MB, free: 5.449 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001149/0.1044, allocations: 136.7 kB / 494.3 MB, free: 5.273 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.836e-06/0.1044, allocations: 4 kB / 494.3 MB, free: 5.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.33e-05/0.1044, allocations: 0 / 494.3 MB, free: 5.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.967e-06/0.1044, allocations: 3.938 kB / 494.3 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.084e-05/0.1044, allocations: 4 kB / 494.3 MB, free: 5.262 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.1044, allocations: 0 / 494.3 MB, free: 5.262 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.1044, allocations: 0 / 494.3 MB, free: 5.262 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002493/0.1046, allocations: 184.4 kB / 494.5 MB, free: 5.051 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.634e-05/0.1047, allocations: 11.89 kB / 494.5 MB, free: 5.039 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.608e-05/0.1047, allocations: 0 / 494.5 MB, free: 5.039 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.814e-05/0.1047, allocations: 7.984 kB / 494.5 MB, free: 5.031 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.334e-05/0.1047, allocations: 4 kB / 494.5 MB, free: 5.027 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.095e-05/0.1048, allocations: 0 / 494.5 MB, free: 5.027 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.377e-05/0.1048, allocations: 91.27 kB / 494.6 MB, free: 4.938 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1048, allocations: 3.938 kB / 494.6 MB, free: 4.934 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002147/0.105, allocations: 23.94 kB / 494.7 MB, free: 4.91 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.000853/0.1059, allocations: 0.8016 MB / 495.5 MB, free: 4.105 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002318/0.1061, allocations: 158.7 kB / 495.6 MB, free: 3.926 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.1061, allocations: 0 / 495.6 MB, free: 3.926 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001174/0.1062, allocations: 109 kB / 495.7 MB, free: 3.801 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001317/0.1064, allocations: 4 kB / 495.7 MB, free: 3.797 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001451/0.1078, allocations: 1.449 MB / 497.2 MB, free: 2.227 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.974e-05/0.1079, allocations: 63.34 kB / 497.2 MB, free: 2.145 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.64e-05/0.1079, allocations: 4.188 kB / 497.2 MB, free: 2.141 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.993e-05/0.1079, allocations: 15.44 kB / 497.3 MB, free: 2.125 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1079, allocations: 0 / 497.3 MB, free: 2.125 MB / 350.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeMain.mo:793:13-793:114:writable] Error: Internal error Failed to copy path /home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/../output.txt to 652.fmutmp/resources//home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/.. Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02791/0.1358, allocations: 2.505 MB / 499.8 MB, free: 15.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.86/10.99, allocations: 5.953 kB / 499.8 MB, free: 15.75 MB / 366.1 MB " [Timeout remaining time 649] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.466602480039] Failed to read output from testmodel.py, exit status != 0: 11.098789716139436 11.119795135 11.015904415 Calling exit ...