Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr KeyWordIO_KeyWordIO.Examples.WriteRealVariable.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.001496/0.001496, allocations: 113.6 kB / 19.13 MB, free: 2.82 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.001723/0.001723, allocations: 186.7 kB / 22.44 MB, free: 5.102 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.405/1.405, allocations: 225.6 MB / 251.3 MB, free: 13.1 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.006879/0.006879, allocations: 1.012 MB / 307.6 MB, free: 7.543 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.WriteRealVariable,fileNamePrefix="KeyWordIO_KeyWordIO_Examples_WriteRealVariable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(KeyWordIO.Examples.WriteRealVariable,fileNamePrefix="KeyWordIO_KeyWordIO_Examples_WriteRealVariable",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002779/0.002779, allocations: 67.88 kB / 427.6 MB, free: 23.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1049, allocations: 52.41 MB / 480 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.002971/0.1078, allocations: 1.368 MB / 481.4 MB, free: 1.547 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001479/0.1093, allocations: 0.892 MB / 482.3 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.308e-05/0.1094, allocations: 0 / 482.3 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.187e-05/0.1094, allocations: 3.938 kB / 482.3 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001903/0.1096, allocations: 11.94 kB / 482.3 MB, free: 0.6367 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/writeRealVariable.mo:2:1-14:22:writable] Warning: Pure function 'KeyWordIO.writeRealVariable' contains a call to impure function 'Modelica.Utilities.Files.removeFile'. Notification: Performance of NFTyping.typeClassSections: time 0.0002142/0.1098, allocations: 43.88 kB / 482.4 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 7.891e-05/0.1099, allocations: 27.92 kB / 482.4 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.365e-05/0.1099, allocations: 4 kB / 482.4 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.73e-05/0.1099, allocations: 7.938 kB / 482.4 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001338/0.1101, allocations: 19.91 kB / 482.4 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.037e-05/0.1101, allocations: 0 / 482.4 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.602e-05/0.1102, allocations: 31.98 kB / 482.4 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.648e-05/0.1102, allocations: 15.97 kB / 482.5 MB, free: 500 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.801e-05/0.1102, allocations: 3.938 kB / 482.5 MB, free: 496 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001561/0.1104, allocations: 64.03 kB / 482.5 MB, free: 432 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.1104, allocations: 0 / 482.5 MB, free: 432 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.1104, allocations: 0 / 482.5 MB, free: 432 kB / 334.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.1104, allocations: 0 / 482.5 MB, free: 432 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004743/0.1109, allocations: 369 kB / 482.9 MB, free: 4 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.657e-05/0.1109, allocations: 8.078 kB / 482.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.699e-05/0.111, allocations: 34.69 kB / 482.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.085e-05/0.111, allocations: 8.938 kB / 482.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001718/0.1112, allocations: 168.3 kB / 483.1 MB, free: 15.74 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.103e-05/0.1112, allocations: 384 / 483.1 MB, free: 15.74 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.949e-06/0.1112, allocations: 384 / 483.1 MB, free: 15.74 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001233/0.1113, allocations: 38.25 kB / 483.1 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.131e-05/0.1113, allocations: 3.938 kB / 483.1 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.142e-05/0.1113, allocations: 4 kB / 483.1 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.1113, allocations: 0 / 483.1 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.991e-05/0.1114, allocations: 15.92 kB / 483.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001865/0.1116, allocations: 157.7 kB / 483.3 MB, free: 15.47 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.225e-05/0.1117, allocations: 18.58 kB / 483.3 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.024e-05/0.1117, allocations: 16.84 kB / 483.3 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.26e-05/0.1117, allocations: 0 / 483.3 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002212/0.1119, allocations: 114.8 kB / 483.5 MB, free: 15.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.272e-06/0.1119, allocations: 0 / 483.5 MB, free: 15.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0003179/0.1123, allocations: 91.27 kB / 483.5 MB, free: 15.19 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.818e-05/0.1123, allocations: 77.11 kB / 483.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001211/0.1124, allocations: 109.8 kB / 483.7 MB, free: 14.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.923e-05/0.1125, allocations: 25.7 kB / 483.8 MB, free: 14.95 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.377e-05/0.1125, allocations: 88.14 kB / 483.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.492e-05/0.1125, allocations: 8 kB / 483.9 MB, free: 14.85 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.378e-05/0.1126, allocations: 17.72 kB / 483.9 MB, free: 14.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.1127, allocations: 318.8 kB / 484.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.81e-05/0.1128, allocations: 4 kB / 484.2 MB, free: 14.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.36e-05/0.1128, allocations: 17.7 kB / 484.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001138/0.1129, allocations: 89.11 kB / 484.3 MB, free: 14.37 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/0.1129, allocations: 0 / 484.3 MB, free: 14.37 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000148/0.1131, allocations: 87.28 kB / 484.4 MB, free: 14.27 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.907e-05/0.1131, allocations: 33.64 kB / 484.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.421e-06/0.1131, allocations: 0 / 484.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.1131, allocations: 0 / 484.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.427e-05/0.1132, allocations: 7.984 kB / 484.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.259e-06/0.1132, allocations: 0 / 484.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.439e-05/0.1132, allocations: 8.062 kB / 484.4 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.23e-06/0.1132, allocations: 0 / 484.4 MB, free: 14.22 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 0.0001015/0.1133, allocations: 147.5 kB / 484.6 MB, free: 14.06 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.482e-05/0.1134, allocations: 7.938 kB / 484.6 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.859e-05/0.1134, allocations: 7.516 kB / 484.6 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-06/0.1134, allocations: 0 / 484.6 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-06/0.1134, allocations: 0 / 484.6 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-06/0.1134, allocations: 0 / 484.6 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001314/0.1135, allocations: 161.7 kB / 484.7 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.1135, allocations: 4 kB / 484.7 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.528e-05/0.1135, allocations: 8 kB / 484.7 MB, free: 13.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.18e-06/0.1135, allocations: 7.922 kB / 484.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.833e-06/0.1136, allocations: 0 / 484.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.92e-07/0.1136, allocations: 0 / 484.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1136, allocations: 3.938 kB / 484.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001645/0.1137, allocations: 106.7 kB / 484.9 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.707e-05/0.1138, allocations: 81.08 kB / 484.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.66e-05/0.1138, allocations: 11.98 kB / 485 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.115e-05/0.1138, allocations: 4 kB / 485 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.964e-05/0.1139, allocations: 4 kB / 485 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.288e-06/0.1139, allocations: 0 / 485 MB, free: 13.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.417e-05/0.1139, allocations: 91.27 kB / 485.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1139, allocations: 0 / 485.1 MB, free: 13.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002186/0.1141, allocations: 8 kB / 485.1 MB, free: 13.47 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: 1 ($whenCondition1) * Number of discrete states: 1 ($whenCondition1) * 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.0008135/0.1149, allocations: 0.7388 MB / 485.8 MB, free: 12.73 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001636/0.1151, allocations: 71.39 kB / 485.9 MB, free: 12.65 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1151, allocations: 0 / 485.9 MB, free: 12.65 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.999e-05/0.1152, allocations: 63.52 kB / 485.9 MB, free: 12.58 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001382/0.1153, allocations: 11.69 kB / 485.9 MB, free: 12.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001267/0.1166, allocations: 1.211 MB / 487.2 MB, free: 11.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003141/0.1169, allocations: 0.6766 MB / 487.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.116e-05/0.1169, allocations: 7.984 kB / 487.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.52e-05/0.117, allocations: 15.44 kB / 487.9 MB, free: 10.54 MB / 350.1 MB Notification: Performance of SimCode: time 6.81e-07/0.117, allocations: 0 / 487.9 MB, free: 10.54 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 539.fmutmp/resources//home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/.. Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02506/0.142, allocations: 1.76 MB / 489.6 MB, free: 8.867 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.822/7.964, allocations: 9.516 kB / 489.6 MB, free: 8.863 MB / 350.1 MB " [Timeout remaining time 652] (rm -f KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe ; mkfifo KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe ; head -c 1048576 < KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe >> ../files/KeyWordIO_KeyWordIO.Examples.WriteRealVariable.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_KeyWordIO_KeyWordIO_Examples_WriteRealVariable_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 KeyWordIO_KeyWordIO_Examples_WriteRealVariable.fmu > KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.415329581010155] Failed to read output from testmodel.py, exit status != 0: 8.034076387993991 8.058222166 7.943486734 Calling exit ...