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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001979/0.001979, allocations: 108.2 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002251/0.002251, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.556/1.556, allocations: 225.6 MB / 247.8 MB, free: 13.94 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.00693/0.00693, allocations: 1.016 MB / 303.7 MB, free: 8.785 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.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001825/0.001825, allocations: 67.89 kB / 422 MB, free: 24.89 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0878/0.08962, allocations: 52.35 MB / 474.4 MB, free: 4.445 MB / 334.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.002482/0.09211, allocations: 1.375 MB / 475.8 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001255/0.09336, allocations: 0.8132 MB / 476.6 MB, free: 2.242 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.542e-05/0.09339, allocations: 0 / 476.6 MB, free: 2.242 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.785e-05/0.09341, allocations: 7.922 kB / 476.6 MB, free: 2.234 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001697/0.09358, allocations: 11.92 kB / 476.6 MB, free: 2.223 MB / 334.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.0002386/0.09382, allocations: 59.77 kB / 476.7 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.499e-05/0.09391, allocations: 15.98 kB / 476.7 MB, free: 2.148 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.412e-05/0.09394, allocations: 8 kB / 476.7 MB, free: 2.141 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.757e-05/0.09398, allocations: 15.86 kB / 476.7 MB, free: 2.125 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001109/0.09409, allocations: 15.92 kB / 476.7 MB, free: 2.109 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.12e-05/0.0941, allocations: 4 kB / 476.7 MB, free: 2.105 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001047/0.09421, allocations: 35.97 kB / 476.8 MB, free: 2.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.444e-05/0.09422, allocations: 7.984 kB / 476.8 MB, free: 2.062 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.057e-05/0.09426, allocations: 19.92 kB / 476.8 MB, free: 2.043 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001458/0.09441, allocations: 56.09 kB / 476.8 MB, free: 1.988 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.09441, allocations: 0 / 476.8 MB, free: 1.988 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.09441, allocations: 3.938 kB / 476.8 MB, free: 1.984 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.237e-06/0.09442, allocations: 0 / 476.8 MB, free: 1.984 MB / 334.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.0004767/0.0949, allocations: 381 kB / 477.2 MB, free: 1.555 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.634e-05/0.09493, allocations: 15.97 kB / 477.2 MB, free: 1.539 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.955e-05/0.09496, allocations: 30.75 kB / 477.3 MB, free: 1.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.005e-05/0.09499, allocations: 12.88 kB / 477.3 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001504/0.09514, allocations: 160.4 kB / 477.4 MB, free: 1.293 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.169e-05/0.09515, allocations: 4.375 kB / 477.4 MB, free: 1.289 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.215e-05/0.09517, allocations: 384 / 477.4 MB, free: 1.289 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001256/0.09529, allocations: 46.25 kB / 477.5 MB, free: 1.238 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.899e-06/0.0953, allocations: 7.938 kB / 477.5 MB, free: 1.23 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.975e-06/0.09531, allocations: 0 / 477.5 MB, free: 1.23 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.998e-06/0.09531, allocations: 0 / 477.5 MB, free: 1.23 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.146e-05/0.09539, allocations: 19.97 kB / 477.5 MB, free: 1.211 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001819/0.09557, allocations: 161.7 kB / 477.7 MB, free: 1.004 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.314e-05/0.09565, allocations: 26.56 kB / 477.7 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.013e-05/0.0957, allocations: 16.89 kB / 477.7 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.848e-06/0.09571, allocations: 4 kB / 477.7 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002329/0.09594, allocations: 148.4 kB / 477.9 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.242e-06/0.09595, allocations: 0 / 477.9 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.000325/0.09627, allocations: 135.3 kB / 478 MB, free: 0.625 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.161e-05/0.09635, allocations: 128.5 kB / 478.1 MB, free: 480 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.307e-05/0.09644, allocations: 105.9 kB / 478.2 MB, free: 364 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.802e-05/0.09646, allocations: 37.7 kB / 478.3 MB, free: 320 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.881e-05/0.09651, allocations: 84.12 kB / 478.3 MB, free: 232 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.337e-05/0.09654, allocations: 11.91 kB / 478.3 MB, free: 220 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.343e-05/0.09657, allocations: 17.72 kB / 478.4 MB, free: 196 kB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000169/0.09674, allocations: 314.8 kB / 478.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.655e-05/0.09678, allocations: 11.98 kB / 478.7 MB, free: 15.86 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.52e-05/0.09684, allocations: 37.58 kB / 478.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00015/0.09699, allocations: 97.05 kB / 478.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.09699, allocations: 0 / 478.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001808/0.09717, allocations: 107.3 kB / 478.9 MB, free: 15.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.628e-05/0.09721, allocations: 33.64 kB / 479 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.09722, allocations: 7.984 kB / 479 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.15e-05/0.09723, allocations: 64 / 479 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.091e-05/0.09729, allocations: 8 kB / 479 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.09729, allocations: 0 / 479 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.124e-05/0.09733, allocations: 11.89 kB / 479 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.003e-05/0.09734, allocations: 4 kB / 479 MB, free: 15.52 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.0001468/0.09749, allocations: 143.8 kB / 479.1 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.971e-05/0.09751, allocations: 11.94 kB / 479.1 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.909e-05/0.09753, allocations: 3.969 kB / 479.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.09753, allocations: 8 kB / 479.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.09754, allocations: 0 / 479.1 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.09754, allocations: 3.984 kB / 479.2 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001319/0.09767, allocations: 161.7 kB / 479.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.09767, allocations: 0 / 479.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.398e-05/0.0977, allocations: 0 / 479.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.254e-06/0.0977, allocations: 7.938 kB / 479.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.105e-06/0.09771, allocations: 0 / 479.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.09771, allocations: 0 / 479.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.09771, allocations: 0 / 479.3 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002392/0.09795, allocations: 166.7 kB / 479.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.508e-05/0.098, allocations: 81.05 kB / 479.6 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.833e-05/0.09802, allocations: 4 kB / 479.6 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.424e-05/0.09805, allocations: 4 kB / 479.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.843e-05/0.09809, allocations: 3.984 kB / 479.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.551e-05/0.09811, allocations: 4 kB / 479.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.772e-05/0.09816, allocations: 87.58 kB / 479.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.09816, allocations: 8.031 kB / 479.7 MB, free: 14.72 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002224/0.09839, allocations: 27.92 kB / 479.7 MB, free: 14.7 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.0008645/0.09925, allocations: 0.7918 MB / 480.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001975/0.09945, allocations: 95.38 kB / 480.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.09945, allocations: 0 / 480.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.715e-05/0.09955, allocations: 75.39 kB / 480.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001359/0.09968, allocations: 4 kB / 480.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001373/0.1011, allocations: 1.289 MB / 481.9 MB, free: 12.33 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003083/0.1014, allocations: 0.6883 MB / 482.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.815e-05/0.1014, allocations: 0 / 482.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.428e-05/0.1014, allocations: 19.42 kB / 482.7 MB, free: 11.6 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.1014, allocations: 0 / 482.7 MB, free: 11.6 MB / 350.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeMain.mo:790:13-790:114:writable] Error: Internal error Failed to copy path /home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/../output.txt to KeyWordIO_KeyWordIO_Examples_WriteRealVariables.fmutmp/resources//home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/.. Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02443/0.1258, allocations: 1.96 MB / 484.6 MB, free: 9.719 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.066/8.192, allocations: 4.656 kB / 484.6 MB, free: 9.715 MB / 350.1 MB " [Timeout remaining time 652] (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: 10.818559523671865] Failed to read output from testmodel.py, exit status != 0: 8.261219034902751 8.289110600999999 8.189439954 Calling exit ...