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/Complex 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 KeyWordIO with version 0.11.X (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.00142/0.00142, allocations: 173.9 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.02589/0.02589, allocations: 0.9751 MB / 9.043 MB, free: 8 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.59/1.59, allocations: 221.5 MB / 231.2 MB, free: 6.441 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009575/0.0009576, allocations: 85.16 kB / 282.3 MB, free: 3.969 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.685e-05/1.687e-05, allocations: 4 kB / 339.2 MB, free: 8.051 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1093, allocations: 50.63 MB / 389.9 MB, free: 5.371 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3408/0.4501, allocations: 75.89 MB / 465.8 MB, free: 452 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001504/0.4503, allocations: 59.97 kB / 465.8 MB, free: 392 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004102/0.4544, allocations: 1.764 MB / 467.6 MB, free: 14.62 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4545, allocations: 0 / 467.6 MB, free: 14.62 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.071e-06/0.4545, allocations: 0 / 467.6 MB, free: 14.62 MB / 346.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.0002852/0.4548, allocations: 372.9 kB / 467.9 MB, free: 14.21 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.501e-05/0.4548, allocations: 8.031 kB / 468 MB, free: 14.21 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.858e-05/0.4549, allocations: 0 / 468 MB, free: 14.21 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001453/0.455, allocations: 176.2 kB / 468.1 MB, free: 14 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.328e-05/0.455, allocations: 4 kB / 468.1 MB, free: 13.99 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.716e-06/0.455, allocations: 0 / 468.1 MB, free: 13.99 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.179e-05/0.4551, allocations: 12 kB / 468.1 MB, free: 13.98 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.446e-05/0.4552, allocations: 45.58 kB / 468.2 MB, free: 13.93 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.523e-06/0.4552, allocations: 0 / 468.2 MB, free: 13.93 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.4552, allocations: 3.984 kB / 468.2 MB, free: 13.93 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.346e-06/0.4552, allocations: 0 / 468.2 MB, free: 13.93 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001259/0.4553, allocations: 134.2 kB / 468.3 MB, free: 13.76 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.425e-05/0.4554, allocations: 26.58 kB / 468.3 MB, free: 13.72 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.511e-05/0.4554, allocations: 16.97 kB / 468.4 MB, free: 13.7 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.686e-06/0.4554, allocations: 4 kB / 468.4 MB, free: 13.7 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001195/0.4556, allocations: 137.2 kB / 468.5 MB, free: 13.54 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 1.112e-06/0.4556, allocations: 0 / 468.5 MB, free: 13.54 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001716/0.4557, allocations: 69.69 kB / 468.6 MB, free: 13.46 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.221e-05/0.4558, allocations: 132.5 kB / 468.7 MB, free: 13.3 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.148e-05/0.4559, allocations: 105 kB / 468.8 MB, free: 13.19 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.409e-05/0.4559, allocations: 25.7 kB / 468.8 MB, free: 13.16 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.273e-05/0.4559, allocations: 96.11 kB / 468.9 MB, free: 13.06 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.099e-05/0.456, allocations: 7.812 kB / 468.9 MB, free: 13.05 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.046e-06/0.456, allocations: 3.938 kB / 468.9 MB, free: 13.05 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.449e-05/0.4561, allocations: 318.8 kB / 469.2 MB, free: 12.73 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.536e-05/0.4561, allocations: 8 kB / 469.2 MB, free: 12.72 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.277e-05/0.4561, allocations: 17.72 kB / 469.3 MB, free: 12.7 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.504e-05/0.4561, allocations: 4 kB / 469.3 MB, free: 12.7 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.4561, allocations: 4 kB / 469.3 MB, free: 12.69 MB / 346.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 8.866e-05/0.4562, allocations: 65.62 kB / 469.3 MB, free: 12.62 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.037e-05/0.4563, allocations: 33.69 kB / 469.4 MB, free: 12.58 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.4563, allocations: 0 / 469.4 MB, free: 12.58 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.377e-06/0.4563, allocations: 4 kB / 469.4 MB, free: 12.58 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.243e-05/0.4564, allocations: 7.875 kB / 469.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.326e-06/0.4564, allocations: 0 / 469.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.168e-05/0.4564, allocations: 11.86 kB / 469.4 MB, free: 12.56 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.953e-06/0.4564, allocations: 4 kB / 469.4 MB, free: 12.56 MB / 346.7 MB Warning: Assuming fixed start value for the following 1 variables: y_end:DISCRETE(start = 0.0 fixed = false ) "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,$whenCondition1,$whenCondition2,y_start) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001115/0.4566, allocations: 138.7 kB / 469.5 MB, free: 12.41 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001131/0.4567, allocations: 81.62 kB / 469.6 MB, free: 12.32 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.043e-05/0.4567, allocations: 4 kB / 469.6 MB, free: 12.32 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.248e-05/0.4567, allocations: 12.39 kB / 469.6 MB, free: 12.3 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.4567, allocations: 4 kB / 469.6 MB, free: 12.3 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.4567, allocations: 3.953 kB / 469.6 MB, free: 12.3 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.4567, allocations: 0 / 469.6 MB, free: 12.3 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.179e-05/0.4568, allocations: 142.1 kB / 469.8 MB, free: 12.12 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.4568, allocations: 4.031 kB / 469.8 MB, free: 12.12 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.654e-05/0.4569, allocations: 4 kB / 469.8 MB, free: 12.11 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.4569, allocations: 4 kB / 469.8 MB, free: 12.11 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.165e-06/0.4569, allocations: 0 / 469.8 MB, free: 12.11 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.31e-07/0.4569, allocations: 0 / 469.8 MB, free: 12.11 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.4569, allocations: 0 / 469.8 MB, free: 12.11 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001284/0.457, allocations: 113 kB / 469.9 MB, free: 11.98 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.672e-05/0.4571, allocations: 88.95 kB / 470 MB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.589e-05/0.4571, allocations: 7.969 kB / 470 MB, free: 11.87 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.857e-05/0.4572, allocations: 4 kB / 470 MB, free: 11.86 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.359e-05/0.4572, allocations: 7.984 kB / 470 MB, free: 11.86 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.407e-05/0.4572, allocations: 8.062 kB / 470 MB, free: 11.85 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.378e-05/0.4573, allocations: 83.28 kB / 470.1 MB, free: 11.77 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4573, allocations: 0 / 470.1 MB, free: 11.77 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000196/0.4575, allocations: 28 kB / 470.1 MB, free: 11.74 MB / 346.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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000593/0.4581, allocations: 0.7381 MB / 470.9 MB, free: 11 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001123/0.4582, allocations: 87.39 kB / 470.9 MB, free: 10.91 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.4582, allocations: 0 / 470.9 MB, free: 10.91 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 6.072e-05/0.4583, allocations: 83.53 kB / 471 MB, free: 10.81 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.449e-05/0.4584, allocations: 8.062 kB / 471 MB, free: 10.8 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003033/0.4587, allocations: 125.5 kB / 471.2 MB, free: 10.64 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001882/0.4589, allocations: 0.6807 MB / 471.8 MB, free: 9.938 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 2.054e-05/0.4589, allocations: 3.984 kB / 471.8 MB, free: 9.934 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.427e-05/0.4589, allocations: 11.44 kB / 471.9 MB, free: 9.926 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.459, allocations: 0 / 471.9 MB, free: 9.926 MB / 346.7 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/Compiler/SimCode/SimCodeMain.mo:693:13-693:124: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.03332/0.4923, allocations: 1.321 MB / 473.2 MB, free: 8.617 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001699/0.4925, allocations: 152.1 kB / 473.3 MB, free: 8.422 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.548/2.04, allocations: 0 / 473.3 MB, free: 8.422 MB / 346.7 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/linux/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)