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.001862/0.001862, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.001575/0.001575, allocations: 216.3 kB / 23.03 MB, free: 4.922 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.355/1.355, allocations: 230.6 MB / 256.8 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.006845/0.006845, allocations: 1.018 MB / 314.2 MB, free: 1.902 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(KeyWordIO.Examples.WriteRealVariables,fileNamePrefix="KeyWordIO_KeyWordIO_Examples_WriteRealVariables",fmuType="cs",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.001886/0.001886, allocations: 67.91 kB / 436.4 MB, free: 16.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09433/0.09622, allocations: 53.57 MB / 490 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.002703/0.09892, allocations: 1.388 MB / 491.4 MB, free: 9.375 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001508/0.1004, allocations: 0.8959 MB / 492.3 MB, free: 8.477 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.131e-05/0.1005, allocations: 0 / 492.3 MB, free: 8.477 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.434e-05/0.1005, allocations: 7.875 kB / 492.3 MB, free: 8.469 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002023/0.1007, allocations: 15.92 kB / 492.3 MB, free: 8.453 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.0002625/0.1009, allocations: 43.89 kB / 492.4 MB, free: 8.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 8.595e-05/0.101, allocations: 23.92 kB / 492.4 MB, free: 8.387 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.471e-05/0.1011, allocations: 4 kB / 492.4 MB, free: 8.383 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.227e-05/0.1011, allocations: 11.92 kB / 492.4 MB, free: 8.371 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.335e-05/0.1012, allocations: 11.98 kB / 492.4 MB, free: 8.359 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.768e-06/0.1012, allocations: 0 / 492.4 MB, free: 8.359 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001122/0.1013, allocations: 55.78 kB / 492.5 MB, free: 8.305 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.601e-05/0.1013, allocations: 7.984 kB / 492.5 MB, free: 8.297 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.618e-05/0.1013, allocations: 7.938 kB / 492.5 MB, free: 8.289 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001537/0.1015, allocations: 68.08 kB / 492.5 MB, free: 8.223 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1015, allocations: 0 / 492.5 MB, free: 8.223 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1015, allocations: 0 / 492.5 MB, free: 8.223 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.459e-06/0.1015, allocations: 0 / 492.5 MB, free: 8.223 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.0004605/0.102, allocations: 307.8 kB / 492.8 MB, free: 7.883 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.476e-05/0.102, allocations: 8.031 kB / 492.9 MB, free: 7.875 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.406e-05/0.102, allocations: 192 / 492.9 MB, free: 7.875 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.713e-05/0.102, allocations: 30.75 kB / 492.9 MB, free: 7.836 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.38e-05/0.1021, allocations: 4.938 kB / 492.9 MB, free: 7.832 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001126/0.1022, allocations: 110.5 kB / 493 MB, free: 7.699 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.838e-06/0.1022, allocations: 8.312 kB / 493 MB, free: 7.691 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.177e-05/0.1022, allocations: 4.375 kB / 493 MB, free: 7.688 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001465/0.1023, allocations: 79.69 kB / 493.1 MB, free: 7.598 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.1023, allocations: 0 / 493.1 MB, free: 7.598 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.546e-06/0.1024, allocations: 0 / 493.1 MB, free: 7.598 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.1024, allocations: 0 / 493.1 MB, free: 7.598 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.946e-05/0.1025, allocations: 45.69 kB / 493.1 MB, free: 7.547 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001542/0.1026, allocations: 128.8 kB / 493.3 MB, free: 7.379 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.793e-05/0.1027, allocations: 60.2 kB / 493.3 MB, free: 7.305 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.896e-05/0.1028, allocations: 50.62 kB / 493.4 MB, free: 7.246 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.003e-05/0.1028, allocations: 3.938 kB / 493.4 MB, free: 7.242 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002007/0.103, allocations: 174.1 kB / 493.5 MB, free: 7.035 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 3.186e-06/0.103, allocations: 3.984 kB / 493.5 MB, free: 7.031 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003403/0.1033, allocations: 182.8 kB / 493.7 MB, free: 6.828 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.907e-05/0.1034, allocations: 136.5 kB / 493.9 MB, free: 6.664 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.577e-05/0.1035, allocations: 113.8 kB / 494 MB, free: 6.543 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.064e-05/0.1035, allocations: 29.7 kB / 494 MB, free: 6.508 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.164e-05/0.1036, allocations: 84.14 kB / 494.1 MB, free: 6.422 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.496e-05/0.1036, allocations: 15.97 kB / 494.1 MB, free: 6.406 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.547e-05/0.1036, allocations: 17.72 kB / 494.1 MB, free: 6.383 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001235/0.1037, allocations: 310.8 kB / 494.4 MB, free: 6.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.774e-05/0.1038, allocations: 41.69 kB / 494.5 MB, free: 6.023 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.715e-05/0.1039, allocations: 55.41 kB / 494.5 MB, free: 5.957 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001518/0.104, allocations: 101 kB / 494.6 MB, free: 5.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.532e-06/0.104, allocations: 0 / 494.6 MB, free: 5.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001876/0.1042, allocations: 137 kB / 494.7 MB, free: 5.688 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.479e-05/0.1043, allocations: 33.69 kB / 494.8 MB, free: 5.648 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.1043, allocations: 4 kB / 494.8 MB, free: 5.645 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.108e-05/0.1043, allocations: 0 / 494.8 MB, free: 5.645 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.062e-05/0.1043, allocations: 7.938 kB / 494.8 MB, free: 5.637 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.123e-06/0.1043, allocations: 3.938 kB / 494.8 MB, free: 5.633 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.267e-05/0.1044, allocations: 15.92 kB / 494.8 MB, free: 5.617 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.017e-06/0.1044, allocations: 4 kB / 494.8 MB, free: 5.613 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.0001412/0.1045, allocations: 142.9 kB / 495 MB, free: 5.461 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.826e-05/0.1046, allocations: 11.92 kB / 495 MB, free: 5.449 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.194e-05/0.1046, allocations: 12.06 kB / 495 MB, free: 5.434 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-06/0.1046, allocations: 0 / 495 MB, free: 5.434 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.1046, allocations: 0 / 495 MB, free: 5.434 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.934e-06/0.1046, allocations: 0 / 495 MB, free: 5.434 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001124/0.1047, allocations: 132.7 kB / 495.1 MB, free: 5.262 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.1047, allocations: 0 / 495.1 MB, free: 5.262 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.982e-05/0.1047, allocations: 7.938 kB / 495.1 MB, free: 5.254 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.1047, allocations: 0 / 495.1 MB, free: 5.254 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.161e-05/0.1047, allocations: 4.234 kB / 495.1 MB, free: 5.25 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.618e-06/0.1047, allocations: 12 kB / 495.1 MB, free: 5.238 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.1047, allocations: 0 / 495.1 MB, free: 5.238 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000246/0.105, allocations: 184.4 kB / 495.3 MB, free: 5.027 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.461e-05/0.105, allocations: 11.88 kB / 495.3 MB, free: 5.016 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.86e-05/0.105, allocations: 4 kB / 495.3 MB, free: 5.012 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.469e-05/0.1051, allocations: 4 kB / 495.3 MB, free: 5.008 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.41e-05/0.1051, allocations: 0 / 495.3 MB, free: 5.008 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.717e-05/0.1051, allocations: 7.984 kB / 495.3 MB, free: 5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.821e-05/0.1052, allocations: 83.28 kB / 495.4 MB, free: 4.918 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1052, allocations: 4 kB / 495.4 MB, free: 4.914 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002157/0.1054, allocations: 27.97 kB / 495.4 MB, free: 4.887 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.0008551/0.1062, allocations: 0.7949 MB / 496.2 MB, free: 4.086 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002302/0.1065, allocations: 154.7 kB / 496.4 MB, free: 3.91 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.1065, allocations: 0 / 496.4 MB, free: 3.91 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001129/0.1066, allocations: 105.1 kB / 496.5 MB, free: 3.789 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001373/0.1067, allocations: 7.094 kB / 496.5 MB, free: 3.785 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001407/0.1081, allocations: 1.457 MB / 498 MB, free: 2.203 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.029e-05/0.1082, allocations: 63.34 kB / 498 MB, free: 2.121 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.603e-05/0.1082, allocations: 0 / 498 MB, free: 2.121 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.25e-05/0.1082, allocations: 19.38 kB / 498 MB, free: 2.102 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.1082, allocations: 0 / 498 MB, free: 2.102 MB / 350.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeMain.mo:791:13-791: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.02272/0.1309, allocations: 2.167 MB / 0.4885 GB, free: 84 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.99/11.12, allocations: 0 / 0.4885 GB, free: 84 kB / 350.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_KeyWordIO_KeyWordIO_Examples_WriteRealVariables_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 KeyWordIO_KeyWordIO_Examples_WriteRealVariables.fmu > KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.575021917000413] Failed to read output from testmodel.py, exit status != 0: 11.27174205193296 11.286099567 11.181817595 Calling exit ...