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.001525/0.001525, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001627/0.001627, allocations: 218.3 kB / 22.26 MB, free: 5.125 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.672/1.672, allocations: 230.6 MB / 256 MB, free: 7.969 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.007852/0.007852, allocations: 1.012 MB / 313.5 MB, free: 2.062 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.002057/0.002057, allocations: 67.89 kB / 435.7 MB, free: 16.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1337/0.1357, allocations: 53.58 MB / 489.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.003592/0.1393, allocations: 1.388 MB / 490.7 MB, free: 9.531 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001866/0.1412, allocations: 0.9036 MB / 491.6 MB, free: 8.625 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.696e-05/0.1413, allocations: 4 kB / 491.6 MB, free: 8.621 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 4.213e-05/0.1413, allocations: 3.938 kB / 491.6 MB, free: 8.617 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002098/0.1415, allocations: 3.938 kB / 491.6 MB, free: 8.613 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.0003773/0.1419, allocations: 55.88 kB / 491.7 MB, free: 8.559 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001202/0.142, allocations: 23.86 kB / 491.7 MB, free: 8.535 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.558e-05/0.1421, allocations: 8 kB / 491.7 MB, free: 8.527 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.159e-05/0.1421, allocations: 11.98 kB / 491.7 MB, free: 8.516 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001941/0.1423, allocations: 11.92 kB / 491.7 MB, free: 8.504 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.017e-05/0.1424, allocations: 4 kB / 491.7 MB, free: 8.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002119/0.1426, allocations: 51.89 kB / 491.8 MB, free: 8.449 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.286e-05/0.1426, allocations: 0 / 491.8 MB, free: 8.449 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.596e-05/0.1426, allocations: 19.88 kB / 491.8 MB, free: 8.43 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001975/0.1428, allocations: 64.06 kB / 491.9 MB, free: 8.367 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.13e-06/0.1428, allocations: 0 / 491.9 MB, free: 8.367 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1428, allocations: 0 / 491.9 MB, free: 8.367 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.631e-06/0.1428, allocations: 0 / 491.9 MB, free: 8.367 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.0005452/0.1434, allocations: 307.8 kB / 492.2 MB, free: 8.027 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.1434, allocations: 8.031 kB / 492.2 MB, free: 8.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.734e-05/0.1435, allocations: 38.73 kB / 492.2 MB, free: 7.973 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.482e-05/0.1435, allocations: 0.9375 kB / 492.2 MB, free: 7.973 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002138/0.1437, allocations: 110.5 kB / 492.3 MB, free: 7.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.199e-05/0.1437, allocations: 4.375 kB / 492.3 MB, free: 7.836 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.778e-05/0.1438, allocations: 384 / 492.3 MB, free: 7.836 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001661/0.144, allocations: 50.19 kB / 492.4 MB, free: 7.781 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.144, allocations: 7.938 kB / 492.4 MB, free: 7.773 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.451e-05/0.144, allocations: 3.984 kB / 492.4 MB, free: 7.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.144, allocations: 3.938 kB / 492.4 MB, free: 7.766 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.357e-05/0.1441, allocations: 11.98 kB / 492.4 MB, free: 7.754 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001858/0.1442, allocations: 132.8 kB / 492.5 MB, free: 7.582 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.68e-05/0.1443, allocations: 26.56 kB / 492.6 MB, free: 7.547 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.242e-05/0.1444, allocations: 16.89 kB / 492.6 MB, free: 7.527 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.773e-05/0.1444, allocations: 7.938 kB / 492.6 MB, free: 7.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003568/0.1448, allocations: 144.5 kB / 492.7 MB, free: 7.348 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.002e-06/0.1448, allocations: 0 / 492.7 MB, free: 7.348 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003376/0.1451, allocations: 127.3 kB / 492.8 MB, free: 7.211 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.778e-05/0.1452, allocations: 132.5 kB / 493 MB, free: 7.051 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.801e-05/0.1453, allocations: 117.8 kB / 493.1 MB, free: 6.926 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.015e-05/0.1453, allocations: 33.64 kB / 493.1 MB, free: 6.887 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.271e-05/0.1454, allocations: 84.12 kB / 493.2 MB, free: 6.801 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.588e-05/0.1454, allocations: 7.938 kB / 493.2 MB, free: 6.793 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.921e-05/0.1454, allocations: 21.72 kB / 493.2 MB, free: 6.766 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.1456, allocations: 318.8 kB / 493.5 MB, free: 6.445 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.517e-05/0.1456, allocations: 8 kB / 493.6 MB, free: 6.438 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.896e-05/0.1457, allocations: 29.7 kB / 493.6 MB, free: 6.402 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002967/0.146, allocations: 93.11 kB / 493.7 MB, free: 6.293 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.146, allocations: 0 / 493.7 MB, free: 6.293 MB / 350.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001857/0.1462, allocations: 111.3 kB / 493.8 MB, free: 6.172 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.802e-05/0.1462, allocations: 37.62 kB / 493.8 MB, free: 6.129 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.1462, allocations: 0 / 493.8 MB, free: 6.129 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.185e-05/0.1462, allocations: 8.062 kB / 493.8 MB, free: 6.121 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.321e-05/0.1463, allocations: 4 kB / 493.8 MB, free: 6.117 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.1463, allocations: 0 / 493.8 MB, free: 6.117 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.134e-05/0.1463, allocations: 7.938 kB / 493.8 MB, free: 6.109 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.635e-06/0.1464, allocations: 256 / 493.8 MB, free: 6.109 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.000168/0.1465, allocations: 155.5 kB / 494 MB, free: 5.941 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.772e-05/0.1465, allocations: 7.938 kB / 494 MB, free: 5.934 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.064e-05/0.1466, allocations: 4.062 kB / 494 MB, free: 5.926 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.1466, allocations: 4 kB / 494 MB, free: 5.922 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.1466, allocations: 4 kB / 494 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.1466, allocations: 3.984 kB / 494 MB, free: 5.914 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001324/0.1467, allocations: 136.7 kB / 494.1 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.1467, allocations: 0 / 494.1 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.512e-05/0.1467, allocations: 0 / 494.1 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.923e-06/0.1467, allocations: 7.938 kB / 494.2 MB, free: 5.73 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.033e-05/0.1468, allocations: 4 kB / 494.2 MB, free: 5.727 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.1468, allocations: 0 / 494.2 MB, free: 5.727 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1468, allocations: 0 / 494.2 MB, free: 5.727 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002463/0.147, allocations: 150.8 kB / 494.3 MB, free: 5.555 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.203e-05/0.147, allocations: 11.83 kB / 494.3 MB, free: 5.543 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.05e-05/0.147, allocations: 4 kB / 494.3 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.522e-05/0.1471, allocations: 7.938 kB / 494.3 MB, free: 5.531 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.228e-05/0.1471, allocations: 7.922 kB / 494.3 MB, free: 5.523 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.734e-05/0.1471, allocations: 8 kB / 494.3 MB, free: 5.516 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.482e-05/0.1472, allocations: 83.28 kB / 494.4 MB, free: 5.434 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1472, allocations: 4.031 kB / 494.4 MB, free: 5.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002387/0.1474, allocations: 27.92 kB / 494.5 MB, free: 5.402 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.0009747/0.1484, allocations: 0.768 MB / 495.2 MB, free: 4.633 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002304/0.1486, allocations: 95.31 kB / 495.3 MB, free: 4.527 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.1486, allocations: 0 / 495.3 MB, free: 4.527 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000106/0.1487, allocations: 75.52 kB / 495.4 MB, free: 4.441 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000152/0.1489, allocations: 8 kB / 495.4 MB, free: 4.434 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001646/0.1505, allocations: 1.301 MB / 496.7 MB, free: 3.039 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003184/0.1509, allocations: 0.6807 MB / 497.4 MB, free: 2.332 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.951e-05/0.1509, allocations: 0 / 497.4 MB, free: 2.332 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.806e-05/0.1509, allocations: 23.42 kB / 497.4 MB, free: 2.309 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1509, allocations: 0 / 497.4 MB, free: 2.309 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.0324/0.1833, allocations: 2.097 MB / 499.5 MB, free: 352 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.4/12.59, allocations: 6.906 kB / 499.5 MB, free: 348 kB / 350.1 MB " [Timeout remaining time 647] (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: 15.529839298920706] Failed to read output from testmodel.py, exit status != 0: 12.70547808916308 12.725685220999999 12.579011133 Calling exit ...