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.00127/0.00127, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001485/0.001485, allocations: 210.5 kB / 22.24 MB, free: 4.855 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.348/1.348, allocations: 230.6 MB / 256 MB, free: 8.012 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.009734/0.009734, allocations: 1.015 MB / 313.4 MB, free: 1.945 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.001987/0.001987, allocations: 67.91 kB / 435.6 MB, free: 16.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08661/0.0886, allocations: 53.59 MB / 489.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.002382/0.09098, allocations: 1.379 MB / 490.6 MB, free: 9.414 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001314/0.09229, allocations: 0.8997 MB / 491.5 MB, free: 8.512 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.881e-05/0.09232, allocations: 4 kB / 491.5 MB, free: 8.508 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.591e-05/0.09235, allocations: 3.938 kB / 491.5 MB, free: 8.504 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001843/0.09253, allocations: 11.94 kB / 491.5 MB, free: 8.492 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.0002283/0.09276, allocations: 47.88 kB / 491.6 MB, free: 8.445 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.38e-05/0.09283, allocations: 19.88 kB / 491.6 MB, free: 8.426 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.251e-05/0.09287, allocations: 7.984 kB / 491.6 MB, free: 8.418 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.093e-05/0.0929, allocations: 11.98 kB / 491.6 MB, free: 8.406 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.438e-05/0.09296, allocations: 11.92 kB / 491.6 MB, free: 8.395 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.598e-06/0.09297, allocations: 0 / 491.6 MB, free: 8.395 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001088/0.09308, allocations: 43.91 kB / 491.7 MB, free: 8.352 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.993e-05/0.0931, allocations: 15.92 kB / 491.7 MB, free: 8.336 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.978e-05/0.09313, allocations: 8 kB / 491.7 MB, free: 8.328 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001581/0.09329, allocations: 64.08 kB / 491.8 MB, free: 8.266 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.09329, allocations: 3.938 kB / 491.8 MB, free: 8.262 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.09329, allocations: 0 / 491.8 MB, free: 8.262 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.097e-06/0.0933, allocations: 4 kB / 491.8 MB, free: 8.258 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.0004294/0.09373, allocations: 299.8 kB / 492.1 MB, free: 7.926 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/0.09376, allocations: 8.031 kB / 492.1 MB, free: 7.918 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.952e-05/0.0938, allocations: 38.73 kB / 492.1 MB, free: 7.871 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.786e-05/0.09383, allocations: 4.938 kB / 492.1 MB, free: 7.867 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001122/0.09394, allocations: 114.5 kB / 492.2 MB, free: 7.73 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.502e-05/0.09396, allocations: 4.312 kB / 492.2 MB, free: 7.727 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.836e-06/0.09396, allocations: 8.375 kB / 492.2 MB, free: 7.719 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001401/0.0941, allocations: 75.94 kB / 492.3 MB, free: 7.633 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.906e-06/0.09411, allocations: 3.938 kB / 492.3 MB, free: 7.629 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.795e-06/0.09412, allocations: 0 / 492.3 MB, free: 7.629 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.09412, allocations: 0 / 492.3 MB, free: 7.629 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.601e-05/0.09421, allocations: 45.69 kB / 492.4 MB, free: 7.578 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001504/0.09436, allocations: 128.7 kB / 492.5 MB, free: 7.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.316e-05/0.09445, allocations: 56.22 kB / 492.5 MB, free: 7.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.757e-05/0.09452, allocations: 42.62 kB / 492.6 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.136e-05/0.09453, allocations: 8 kB / 492.6 MB, free: 7.281 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002175/0.09475, allocations: 178.1 kB / 492.8 MB, free: 7.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.222e-06/0.09475, allocations: 4 kB / 492.8 MB, free: 7.066 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003342/0.09509, allocations: 178.8 kB / 492.9 MB, free: 6.867 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.69e-05/0.09517, allocations: 136.5 kB / 493.1 MB, free: 6.703 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.284e-05/0.09527, allocations: 113.8 kB / 493.2 MB, free: 6.582 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.923e-05/0.09529, allocations: 29.7 kB / 493.2 MB, free: 6.547 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.143e-05/0.09533, allocations: 84.14 kB / 493.3 MB, free: 6.461 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.175e-05/0.09535, allocations: 11.98 kB / 493.3 MB, free: 6.449 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.665e-05/0.09539, allocations: 21.7 kB / 493.3 MB, free: 6.422 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.09552, allocations: 310.8 kB / 493.6 MB, free: 6.109 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.419e-05/0.09558, allocations: 45.62 kB / 493.7 MB, free: 6.059 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.85e-05/0.09565, allocations: 55.41 kB / 493.7 MB, free: 5.992 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001556/0.09581, allocations: 101 kB / 493.8 MB, free: 5.875 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.09581, allocations: 0 / 493.8 MB, free: 5.875 MB / 350.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001833/0.09599, allocations: 133.1 kB / 494 MB, free: 5.727 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.794e-05/0.09603, allocations: 41.62 kB / 494 MB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.09603, allocations: 0 / 494 MB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.102e-05/0.09604, allocations: 0 / 494 MB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.103e-05/0.0961, allocations: 4 kB / 494 MB, free: 5.676 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.024e-05/0.09611, allocations: 3.938 kB / 494 MB, free: 5.672 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.857e-05/0.09615, allocations: 7.938 kB / 494 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.837e-06/0.09616, allocations: 4 kB / 494 MB, free: 5.66 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.0001405/0.0963, allocations: 143.5 kB / 494.2 MB, free: 5.504 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.426e-05/0.09632, allocations: 11.97 kB / 494.2 MB, free: 5.492 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.062e-05/0.09634, allocations: 8.062 kB / 494.2 MB, free: 5.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.09634, allocations: 0 / 494.2 MB, free: 5.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.09634, allocations: 4.234 kB / 494.2 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.09635, allocations: 0 / 494.2 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001155/0.09646, allocations: 140.7 kB / 494.3 MB, free: 5.297 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.09646, allocations: 0 / 494.3 MB, free: 5.297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.63e-05/0.09649, allocations: 4 kB / 494.3 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.09649, allocations: 3.938 kB / 494.3 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.187e-06/0.0965, allocations: 48 / 494.3 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.0965, allocations: 4 kB / 494.3 MB, free: 5.285 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.09651, allocations: 7.984 kB / 494.3 MB, free: 5.277 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000248/0.09676, allocations: 180.4 kB / 494.5 MB, free: 5.07 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.327e-05/0.09677, allocations: 7.891 kB / 494.5 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.869e-05/0.09679, allocations: 4 kB / 494.5 MB, free: 5.059 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.625e-05/0.09682, allocations: 11.92 kB / 494.5 MB, free: 5.047 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.648e-05/0.09686, allocations: 0 / 494.5 MB, free: 5.047 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.458e-05/0.09687, allocations: 4 kB / 494.5 MB, free: 5.043 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.772e-05/0.09693, allocations: 91.25 kB / 494.6 MB, free: 4.953 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.09693, allocations: 4 kB / 494.6 MB, free: 4.949 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002126/0.09715, allocations: 27.97 kB / 494.7 MB, free: 4.922 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.0008468/0.09799, allocations: 0.7978 MB / 495.5 MB, free: 4.121 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002214/0.09821, allocations: 154.7 kB / 495.6 MB, free: 3.945 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.09821, allocations: 0 / 495.6 MB, free: 3.945 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001124/0.09833, allocations: 105.1 kB / 495.7 MB, free: 3.824 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001383/0.09847, allocations: 4 kB / 495.7 MB, free: 3.82 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001398/0.09986, allocations: 1.453 MB / 497.2 MB, free: 2.246 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.987e-05/0.09991, allocations: 67.34 kB / 497.2 MB, free: 2.16 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.82e-05/0.09993, allocations: 4 kB / 497.2 MB, free: 2.156 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.264e-05/0.09996, allocations: 11.44 kB / 497.3 MB, free: 2.145 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.09996, allocations: 0 / 497.3 MB, free: 2.145 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.02795/0.1279, allocations: 2.52 MB / 499.8 MB, free: 15.76 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.62/10.75, allocations: 3.109 kB / 499.8 MB, free: 15.76 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 & /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 sys.exit(0), Time elapsed: 13.068242167122662] Failed to read output from testmodel.py, exit status != 0: 10.849243927747011 10.864658091 10.768506876 Calling exit ...