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.001237/0.001237, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001411/0.001411, allocations: 190.8 kB / 16.25 MB, free: 6.629 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.307/1.307, allocations: 222.9 MB / 239.9 MB, free: 4.465 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.005919/0.005919, allocations: 1.005 MB / 291.1 MB, free: 1.352 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001131/0.001131, allocations: 63.91 kB / 351.7 MB, free: 7.086 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08872/0.08987, allocations: 49.64 MB / 401.3 MB, free: 5.395 MB / 334.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.002187/0.0921, allocations: 1.422 MB / 402.7 MB, free: 3.961 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001036/0.09315, allocations: 0.7929 MB / 403.5 MB, free: 3.164 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.526e-05/0.09318, allocations: 0 / 403.5 MB, free: 3.164 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.266e-05/0.0932, allocations: 0 / 403.5 MB, free: 3.164 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.503e-05/0.09329, allocations: 15.92 kB / 403.5 MB, free: 3.148 MB / 334.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.0001727/0.09348, allocations: 35.91 kB / 403.6 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 6.837e-05/0.09355, allocations: 35.92 kB / 403.6 MB, free: 3.078 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.315e-05/0.09358, allocations: 7.938 kB / 403.6 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.834e-05/0.09361, allocations: 11.97 kB / 403.6 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.563e-05/0.09367, allocations: 11.94 kB / 403.6 MB, free: 3.047 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.498e-06/0.09368, allocations: 4 kB / 403.6 MB, free: 3.043 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.44e-05/0.09376, allocations: 43.95 kB / 403.7 MB, free: 3 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.455e-06/0.09378, allocations: 0 / 403.7 MB, free: 3 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.166e-05/0.0938, allocations: 19.86 kB / 403.7 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 9.048e-05/0.0939, allocations: 51.88 kB / 403.8 MB, free: 2.93 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.09391, allocations: 0 / 403.8 MB, free: 2.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 7.91e-07/0.09392, allocations: 7.938 kB / 403.8 MB, free: 2.922 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.09393, allocations: 4 kB / 403.8 MB, free: 2.918 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.000328/0.09426, allocations: 385.3 kB / 404.1 MB, free: 2.484 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.759e-05/0.09429, allocations: 8.031 kB / 404.2 MB, free: 2.477 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.629e-05/0.09433, allocations: 34.75 kB / 404.2 MB, free: 2.434 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.227e-05/0.09435, allocations: 8.922 kB / 404.2 MB, free: 2.426 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001102/0.09447, allocations: 168.3 kB / 404.4 MB, free: 2.223 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.16e-06/0.09448, allocations: 384 / 404.4 MB, free: 2.223 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.806e-06/0.09449, allocations: 4.375 kB / 404.4 MB, free: 2.219 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.838e-05/0.09459, allocations: 50.25 kB / 404.4 MB, free: 2.164 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.921e-06/0.09461, allocations: 3.938 kB / 404.4 MB, free: 2.16 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.66e-06/0.09462, allocations: 0 / 404.4 MB, free: 2.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.154e-06/0.09463, allocations: 0 / 404.4 MB, free: 2.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.31e-05/0.0947, allocations: 23.91 kB / 404.4 MB, free: 2.137 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001298/0.09484, allocations: 153.7 kB / 404.6 MB, free: 1.938 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.801e-05/0.09492, allocations: 38.56 kB / 404.6 MB, free: 1.891 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.642e-05/0.09498, allocations: 24.83 kB / 404.7 MB, free: 1.863 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.759e-06/0.09499, allocations: 0 / 404.7 MB, free: 1.863 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001445/0.09514, allocations: 144.5 kB / 404.8 MB, free: 1.691 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.103e-06/0.09515, allocations: 0 / 404.8 MB, free: 1.691 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002512/0.09541, allocations: 127.3 kB / 404.9 MB, free: 1.555 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.382e-05/0.09549, allocations: 136.5 kB / 405.1 MB, free: 1.391 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.671e-05/0.09557, allocations: 113.8 kB / 405.2 MB, free: 1.27 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.467e-05/0.0956, allocations: 29.7 kB / 405.2 MB, free: 1.234 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.015e-05/0.09564, allocations: 84.12 kB / 405.3 MB, free: 1.148 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.011e-05/0.09567, allocations: 19.8 kB / 405.3 MB, free: 1.129 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.174e-05/0.0957, allocations: 13.72 kB / 405.3 MB, free: 1.109 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.09583, allocations: 318.8 kB / 405.6 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.906e-05/0.09587, allocations: 12 kB / 405.6 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.515e-05/0.09592, allocations: 25.7 kB / 405.7 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001419/0.09607, allocations: 101 kB / 405.8 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.09608, allocations: 0 / 405.8 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001531/0.09624, allocations: 103.3 kB / 405.9 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.494e-05/0.09628, allocations: 37.62 kB / 405.9 MB, free: 484 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.09629, allocations: 4.062 kB / 405.9 MB, free: 480 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.792e-06/0.0963, allocations: 4 kB / 405.9 MB, free: 476 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.488e-05/0.09635, allocations: 4 kB / 405.9 MB, free: 472 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.414e-06/0.09636, allocations: 0 / 405.9 MB, free: 472 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.839e-05/0.0964, allocations: 7.906 kB / 405.9 MB, free: 464 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.933e-06/0.09642, allocations: 4 kB / 405.9 MB, free: 460 kB / 334.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.0001248/0.09655, allocations: 145.4 kB / 406.1 MB, free: 300 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.767e-05/0.09657, allocations: 11.97 kB / 406.1 MB, free: 288 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.376e-05/0.09659, allocations: 7.969 kB / 406.1 MB, free: 280 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.0966, allocations: 4 kB / 406.1 MB, free: 276 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.09661, allocations: 4 kB / 406.1 MB, free: 272 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.09661, allocations: 3.984 kB / 406.1 MB, free: 268 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001264/0.09674, allocations: 165.7 kB / 406.3 MB, free: 52 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.09675, allocations: 0 / 406.3 MB, free: 52 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.285e-05/0.09678, allocations: 0 / 406.3 MB, free: 52 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.989e-06/0.09679, allocations: 7.938 kB / 406.3 MB, free: 44 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.163e-06/0.0968, allocations: 0 / 406.3 MB, free: 44 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.636e-06/0.09681, allocations: 0 / 406.3 MB, free: 44 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.09682, allocations: 3.938 kB / 406.3 MB, free: 40 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002307/0.09705, allocations: 154.8 kB / 406.4 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.989e-05/0.09711, allocations: 81.05 kB / 406.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.654e-05/0.09714, allocations: 4 kB / 406.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.61e-05/0.09718, allocations: 4 kB / 406.5 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.18e-05/0.09721, allocations: 11.92 kB / 406.5 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.526e-05/0.09723, allocations: 7.938 kB / 406.5 MB, free: 15.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.712e-05/0.09728, allocations: 95.3 kB / 406.6 MB, free: 15.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09729, allocations: 0 / 406.6 MB, free: 15.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002026/0.09749, allocations: 19.98 kB / 406.6 MB, free: 15.62 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.0007098/0.09821, allocations: 0.7862 MB / 407.4 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001579/0.09838, allocations: 103.4 kB / 407.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.192e-06/0.09839, allocations: 0 / 407.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.053e-05/0.09848, allocations: 91.33 kB / 407.6 MB, free: 14.63 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000116/0.09861, allocations: 13.62 kB / 407.6 MB, free: 14.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001012/0.09963, allocations: 1.284 MB / 408.9 MB, free: 13.24 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000196/0.09984, allocations: 0.6844 MB / 409.6 MB, free: 12.53 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.311e-05/0.09985, allocations: 0 / 409.6 MB, free: 12.53 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.498e-05/0.09988, allocations: 15.44 kB / 409.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.09989, allocations: 0 / 409.6 MB, free: 12.52 MB / 350.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.01097/0.1109, allocations: 1.779 MB / 411.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001555/0.111, allocations: 228.2 kB / 411.6 MB, free: 10.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.53/1.642, allocations: 0 / 411.6 MB, free: 10.57 MB / 350.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)