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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo", uses=false) Using package KeyWordIO with version 0.11.X (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005096/0.005096, allocations: 99.31 kB / 15.73 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001142/0.001142, allocations: 186.3 kB / 16.67 MB, free: 5.977 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.362/1.362, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.006108/0.006108, allocations: 1.003 MB / 291.5 MB, free: 1.168 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001334/0.001334, allocations: 61.98 kB / 402.5 MB, free: 9.148 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1045, allocations: 49.65 MB / 452.1 MB, free: 4.91 MB / 318.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.002415/0.107, allocations: 1.368 MB / 453.5 MB, free: 3.535 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001231/0.1082, allocations: 0.8089 MB / 454.3 MB, free: 2.723 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.465e-05/0.1083, allocations: 0 / 454.3 MB, free: 2.723 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.606e-05/0.1084, allocations: 3.938 kB / 454.3 MB, free: 2.719 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001935/0.1086, allocations: 11.94 kB / 454.3 MB, free: 2.707 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/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.0002606/0.1088, allocations: 47.88 kB / 454.4 MB, free: 2.66 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.624e-05/0.1089, allocations: 27.86 kB / 454.4 MB, free: 2.633 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.701e-05/0.109, allocations: 0 / 454.4 MB, free: 2.633 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.733e-05/0.109, allocations: 7.984 kB / 454.4 MB, free: 2.625 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001094/0.1091, allocations: 23.91 kB / 454.4 MB, free: 2.602 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.024e-05/0.1091, allocations: 0 / 454.4 MB, free: 2.602 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001169/0.1093, allocations: 47.91 kB / 454.5 MB, free: 2.555 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.443e-05/0.1093, allocations: 3.938 kB / 454.5 MB, free: 2.551 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.859e-05/0.1093, allocations: 15.92 kB / 454.5 MB, free: 2.535 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001526/0.1095, allocations: 63.86 kB / 454.5 MB, free: 2.473 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1095, allocations: 4 kB / 454.5 MB, free: 2.469 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1095, allocations: 0 / 454.5 MB, free: 2.469 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.318e-06/0.1095, allocations: 0 / 454.5 MB, free: 2.469 MB / 318.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.0004351/0.11, allocations: 375.1 kB / 454.9 MB, free: 2.047 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.839e-05/0.11, allocations: 12.02 kB / 454.9 MB, free: 2.035 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.299e-05/0.11, allocations: 34.75 kB / 455 MB, free: 1.992 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.795e-05/0.1101, allocations: 0.9375 kB / 455 MB, free: 1.992 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000149/0.1102, allocations: 172.2 kB / 455.1 MB, free: 1.785 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.371e-05/0.1103, allocations: 4.359 kB / 455.1 MB, free: 1.781 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.165e-05/0.1103, allocations: 12.31 kB / 455.1 MB, free: 1.77 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001299/0.1104, allocations: 46.23 kB / 455.2 MB, free: 1.719 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.385e-06/0.1104, allocations: 3.938 kB / 455.2 MB, free: 1.715 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.165e-06/0.1104, allocations: 0 / 455.2 MB, free: 1.715 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.517e-06/0.1104, allocations: 4 kB / 455.2 MB, free: 1.711 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.565e-05/0.1105, allocations: 11.98 kB / 455.2 MB, free: 1.699 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001535/0.1107, allocations: 157.7 kB / 455.4 MB, free: 1.496 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.165e-05/0.1108, allocations: 38.61 kB / 455.4 MB, free: 1.449 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.366e-05/0.1108, allocations: 24.86 kB / 455.4 MB, free: 1.422 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.819e-06/0.1108, allocations: 3.938 kB / 455.4 MB, free: 1.418 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002384/0.1111, allocations: 144.4 kB / 455.6 MB, free: 1.246 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 1.393e-06/0.1111, allocations: 0 / 455.6 MB, free: 1.246 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003273/0.1114, allocations: 131.3 kB / 455.7 MB, free: 1.105 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.48e-05/0.1115, allocations: 136.5 kB / 455.8 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.376e-05/0.1116, allocations: 109.8 kB / 455.9 MB, free: 0.8242 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.527e-05/0.1116, allocations: 29.69 kB / 456 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.925e-05/0.1117, allocations: 84.14 kB / 456 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.715e-05/0.1117, allocations: 7.906 kB / 456.1 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.567e-05/0.1118, allocations: 17.72 kB / 456.1 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.1119, allocations: 314.8 kB / 456.4 MB, free: 364 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.874e-05/0.1119, allocations: 16 kB / 456.4 MB, free: 348 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.967e-05/0.112, allocations: 25.7 kB / 456.4 MB, free: 316 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001565/0.1121, allocations: 93.11 kB / 456.5 MB, free: 204 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.608e-06/0.1121, allocations: 3.984 kB / 456.5 MB, free: 200 kB / 318.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001663/0.1123, allocations: 103.2 kB / 456.6 MB, free: 84 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.895e-05/0.1124, allocations: 45.69 kB / 456.7 MB, free: 32 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.1124, allocations: 320 / 456.7 MB, free: 32 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.1124, allocations: 0 / 456.7 MB, free: 32 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.88e-05/0.1125, allocations: 4 kB / 456.7 MB, free: 28 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.1125, allocations: 0 / 456.7 MB, free: 28 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.078e-05/0.1126, allocations: 15.92 kB / 456.7 MB, free: 12 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.215e-05/0.1126, allocations: 11.92 kB / 456.7 MB, free: 0 / 318.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.000157/0.1127, allocations: 135.5 kB / 456.8 MB, free: 15.85 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.631e-05/0.1128, allocations: 11.94 kB / 456.8 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.667e-05/0.1128, allocations: 15.95 kB / 456.9 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-06/0.1128, allocations: 0 / 456.9 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.1128, allocations: 0 / 456.9 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.1128, allocations: 0 / 456.9 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00012/0.113, allocations: 165.6 kB / 457 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.113, allocations: 0 / 457 MB, free: 15.61 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.932e-05/0.113, allocations: 7.938 kB / 457 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.113, allocations: 3.938 kB / 457 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.818e-06/0.113, allocations: 0 / 457 MB, free: 15.6 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.113, allocations: 4.25 kB / 457 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.113, allocations: 4 kB / 457 MB, free: 15.59 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002255/0.1133, allocations: 154.8 kB / 457.2 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.433e-05/0.1133, allocations: 92.98 kB / 457.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.096e-05/0.1134, allocations: 0 / 457.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.702e-05/0.1134, allocations: 4 kB / 457.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.731e-05/0.1134, allocations: 3.984 kB / 457.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.32e-05/0.1135, allocations: 8.031 kB / 457.3 MB, free: 15.29 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.651e-05/0.1135, allocations: 91.27 kB / 457.4 MB, free: 15.2 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1135, allocations: 0 / 457.4 MB, free: 15.2 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002349/0.1138, allocations: 20 kB / 457.4 MB, free: 15.18 MB / 334.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.0007865/0.1146, allocations: 0.7863 MB / 458.2 MB, free: 14.4 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002142/0.1148, allocations: 103.3 kB / 458.3 MB, free: 14.29 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.1148, allocations: 0 / 458.3 MB, free: 14.29 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.794e-05/0.1149, allocations: 91.39 kB / 458.4 MB, free: 14.18 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001471/0.1151, allocations: 4 kB / 458.4 MB, free: 14.18 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001235/0.1163, allocations: 1.297 MB / 459.7 MB, free: 12.79 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000231/0.1165, allocations: 0.6844 MB / 460.4 MB, free: 12.08 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.507e-05/0.1166, allocations: 3.906 kB / 460.4 MB, free: 12.07 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.734e-05/0.1166, allocations: 23.36 kB / 460.4 MB, free: 12.05 MB / 334.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1166, allocations: 0 / 460.4 MB, free: 12.05 MB / 334.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeMain.mo:787:13-787:114:writable] Error: Internal error Failed to copy path /home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/../output.txt to KeyWordIO_KeyWordIO_Examples_WriteRealVariables.fmutmp/resources//home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/.. Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02093/0.1376, allocations: 1.967 MB / 462.4 MB, free: 10.16 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.698/7.835, allocations: 10.55 kB / 462.4 MB, free: 10.15 MB / 334.1 MB (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 --timeout=50 --tolerance=1e-06 KeyWordIO_KeyWordIO_Examples_WriteRealVariables.fmu > KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe 2>&1)