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.0008421/0.0008421, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0009527/0.0009527, allocations: 170.3 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.9094/0.9094, allocations: 177.1 MB / 202.8 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/package.mo): time 0.005278/0.005278, allocations: 0.7935 MB / 260 MB, free: 12.47 MB / 250.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/readLineWithoutCache.mo:2:1-87:25:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/writeLine.mo:2:1-61:14:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 180] Using package KeyWordIO with version 0.12.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/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: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 382.3 MB, free: 15.68 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.899e-05/2.063e-05, allocations: 2.281 kB / 382.3 MB, free: 15.68 MB / 362.7 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.001732/0.001752, allocations: 1.398 MB / 383.7 MB, free: 14.27 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008426/0.002595, allocations: 0.9037 MB / 384.6 MB, free: 13.37 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.696e-05/0.002622, allocations: 0 / 384.6 MB, free: 13.37 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 2.514e-05/0.002647, allocations: 3.938 kB / 384.6 MB, free: 13.36 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001976/0.002845, allocations: 15.94 kB / 384.6 MB, free: 13.35 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/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.0001948/0.00304, allocations: 47.77 kB / 384.6 MB, free: 13.3 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 7.237e-05/0.003112, allocations: 23.91 kB / 384.6 MB, free: 13.28 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.471e-05/0.003147, allocations: 4 kB / 384.6 MB, free: 13.27 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.5e-05/0.003192, allocations: 15.92 kB / 384.7 MB, free: 13.26 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.14e-05/0.003253, allocations: 11.98 kB / 384.7 MB, free: 13.25 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 1.113e-05/0.003264, allocations: 0 / 384.7 MB, free: 13.25 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.928e-05/0.003353, allocations: 51.83 kB / 384.7 MB, free: 13.2 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.206e-05/0.003366, allocations: 4 kB / 384.7 MB, free: 13.19 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.386e-05/0.003389, allocations: 11.94 kB / 384.7 MB, free: 13.18 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001325/0.003522, allocations: 71.78 kB / 384.8 MB, free: 13.11 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.003525, allocations: 3.984 kB / 384.8 MB, free: 13.11 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.003526, allocations: 0 / 384.8 MB, free: 13.11 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.466e-06/0.003529, allocations: 0 / 384.8 MB, free: 13.11 MB / 362.7 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.000343/0.003872, allocations: 302.6 kB / 385.1 MB, free: 12.77 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.003907, allocations: 8.031 kB / 385.1 MB, free: 12.77 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.661e-05/0.003934, allocations: 42.67 kB / 385.2 MB, free: 12.71 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.38e-05/0.003958, allocations: 4.938 kB / 385.2 MB, free: 12.71 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.496e-05/0.004043, allocations: 113.7 kB / 385.3 MB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.107e-06/0.004052, allocations: 384 / 385.3 MB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.917e-06/0.004061, allocations: 8.375 kB / 385.3 MB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001088/0.004169, allocations: 67.95 kB / 385.4 MB, free: 12.49 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.683e-06/0.004176, allocations: 192 / 385.4 MB, free: 12.49 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.488e-06/0.004186, allocations: 8.359 kB / 385.4 MB, free: 12.48 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.00419, allocations: 4.125 kB / 385.4 MB, free: 12.48 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.705e-05/0.004237, allocations: 45.69 kB / 385.4 MB, free: 12.43 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001152/0.004353, allocations: 124.8 kB / 385.5 MB, free: 12.26 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.839e-05/0.004411, allocations: 60.16 kB / 385.6 MB, free: 12.19 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.649e-05/0.004447, allocations: 46.62 kB / 385.6 MB, free: 12.13 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.584e-06/0.004455, allocations: 4 kB / 385.6 MB, free: 12.13 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001713/0.004626, allocations: 170.2 kB / 385.8 MB, free: 11.93 MB / 362.7 MB Notification: Performance of pre-optimization done (n=5): time 8.51e-07/0.004627, allocations: 0 / 385.8 MB, free: 11.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002417/0.004869, allocations: 190.6 kB / 386 MB, free: 11.71 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.245e-05/0.004921, allocations: 140.5 kB / 386.1 MB, free: 11.55 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.911e-05/0.00498, allocations: 105.8 kB / 386.2 MB, free: 11.43 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.598e-06/0.00499, allocations: 25.7 kB / 386.3 MB, free: 11.4 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.665e-05/0.005017, allocations: 84.14 kB / 386.3 MB, free: 11.32 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.373e-05/0.00504, allocations: 11.94 kB / 386.4 MB, free: 11.3 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.766e-05/0.005068, allocations: 21.75 kB / 386.4 MB, free: 11.28 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.488e-05/0.005143, allocations: 318.8 kB / 386.7 MB, free: 10.96 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.668e-05/0.00518, allocations: 41.69 kB / 386.7 MB, free: 10.91 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.913e-05/0.005219, allocations: 59.39 kB / 386.8 MB, free: 10.84 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001011/0.00532, allocations: 101.3 kB / 386.9 MB, free: 10.72 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.005322, allocations: 0 / 386.9 MB, free: 10.72 MB / 362.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001078/0.005429, allocations: 141.1 kB / 387 MB, free: 10.57 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.516e-05/0.005455, allocations: 29.7 kB / 387 MB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.005458, allocations: 0 / 387 MB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.005473, allocations: 15.86 kB / 387.1 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.176e-05/0.005525, allocations: 4 kB / 387.1 MB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.958e-06/0.005529, allocations: 0 / 387.1 MB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.371e-05/0.005552, allocations: 4 kB / 387.1 MB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.763e-06/0.005559, allocations: 3.938 kB / 387.1 MB, free: 10.5 MB / 362.7 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.0001102/0.005669, allocations: 147.8 kB / 387.2 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.418e-06/0.005679, allocations: 11.98 kB / 387.2 MB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.688e-05/0.005696, allocations: 4.125 kB / 387.2 MB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.93e-06/0.005701, allocations: 7.938 kB / 387.2 MB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.897e-06/0.005704, allocations: 0 / 387.2 MB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.505e-06/0.005707, allocations: 0 / 387.2 MB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.614e-05/0.005783, allocations: 136.7 kB / 387.4 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.005784, allocations: 0 / 387.4 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.295e-05/0.005797, allocations: 4 kB / 387.4 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.005798, allocations: 0 / 387.4 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.917e-06/0.005807, allocations: 4 kB / 387.4 MB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.00581, allocations: 11.86 kB / 387.4 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.005811, allocations: 4 kB / 387.4 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001438/0.005955, allocations: 176.4 kB / 387.6 MB, free: 9.914 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.298e-06/0.005965, allocations: 7.953 kB / 387.6 MB, free: 9.906 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.449e-05/0.005979, allocations: 4 kB / 387.6 MB, free: 9.902 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.953e-05/0.005999, allocations: 7.922 kB / 387.6 MB, free: 9.895 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.428e-05/0.006033, allocations: 8 kB / 387.6 MB, free: 9.887 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.127e-05/0.006044, allocations: 4 kB / 387.6 MB, free: 9.883 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.013e-05/0.006074, allocations: 87.27 kB / 387.7 MB, free: 9.797 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006074, allocations: 0 / 387.7 MB, free: 9.797 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001618/0.006236, allocations: 20 kB / 387.7 MB, free: 9.777 MB / 362.7 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.0005562/0.006792, allocations: 0.8038 MB / 388.5 MB, free: 8.973 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001468/0.006939, allocations: 154.8 kB / 388.7 MB, free: 8.797 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.262e-06/0.00694, allocations: 0 / 388.7 MB, free: 8.797 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.738e-05/0.006998, allocations: 101.1 kB / 388.8 MB, free: 8.68 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001088/0.007106, allocations: 7.938 kB / 388.8 MB, free: 8.672 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009267/0.008033, allocations: 1.434 MB / 390.2 MB, free: 7.109 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.871e-05/0.008072, allocations: 75.28 kB / 390.3 MB, free: 7.016 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 1.79e-05/0.00809, allocations: 0 / 390.3 MB, free: 7.016 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.169e-05/0.008122, allocations: 16.5 kB / 390.3 MB, free: 7 MB / 362.7 MB Notification: Performance of SimCode: time 4.81e-07/0.008122, allocations: 0 / 390.3 MB, free: 7 MB / 362.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeMain.mo:796:13-796:114:writable] Error: Internal error Failed to copy path /home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/../output.txt to 652.fmutmp/resources//home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/.. Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0185/0.02662, allocations: 2.674 MB / 393 MB, free: 4.438 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.827/6.854, allocations: 3.094 kB / 393 MB, free: 4.438 MB / 362.7 MB " [Timeout remaining time 653] (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: 8.542235048487782] Failed to read output from testmodel.py, exit status != 0: 6.933225658722222 6.940647522 6.935566119 Calling exit ...