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.004911/0.004911, allocations: 171.8 kB / 15.11 MB, free: 5.984 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.004723/0.004723, allocations: 0.9897 MB / 16.84 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.188/1.188, allocations: 223.2 MB / 241 MB, free: 10.66 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000866/0.0008661, allocations: 101.4 kB / 292.4 MB, free: 9.84 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003045/0.0003045, allocations: 8 kB / 353.6 MB, free: 12.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1796/0.1799, allocations: 50.62 MB / 404.2 MB, free: 31.14 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08001/0.26, allocations: 76.62 MB / 480.8 MB, free: 2.414 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002351/0.2602, allocations: 71.97 kB / 480.9 MB, free: 2.344 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004627/0.2649, allocations: 2.044 MB / 483 MB, free: 308 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2649, allocations: 4 kB / 483 MB, free: 304 kB / 346.7 MB Notification: Performance of Transformations before backend: time 4.648e-06/0.2649, allocations: 0 / 483 MB, free: 304 kB / 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.0003149/0.2652, allocations: 388.9 kB / 483.3 MB, free: 15.86 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.331e-05/0.2653, allocations: 8.031 kB / 483.3 MB, free: 15.86 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.233e-05/0.2653, allocations: 38.56 kB / 483.4 MB, free: 15.81 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.344e-05/0.2653, allocations: 3.906 kB / 483.4 MB, free: 15.8 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001087/0.2655, allocations: 167.1 kB / 483.5 MB, free: 15.6 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.424e-06/0.2655, allocations: 0 / 483.5 MB, free: 15.6 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.097e-05/0.2655, allocations: 4 kB / 483.6 MB, free: 15.6 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001111/0.2656, allocations: 49.69 kB / 483.6 MB, free: 15.54 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.173e-06/0.2656, allocations: 3.953 kB / 483.6 MB, free: 15.54 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.884e-06/0.2656, allocations: 3.938 kB / 483.6 MB, free: 15.54 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.2656, allocations: 0 / 483.6 MB, free: 15.54 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.585e-05/0.2657, allocations: 23.92 kB / 483.6 MB, free: 15.51 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001302/0.2659, allocations: 153.7 kB / 483.8 MB, free: 15.31 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.776e-05/0.2659, allocations: 38.56 kB / 483.8 MB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.425e-06/0.266, allocations: 0 / 483.8 MB, free: 15.27 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001794/0.2661, allocations: 144.6 kB / 484 MB, free: 15.09 MB / 362.7 MB Notification: Performance of pre-optimization done (n=5): time 1.282e-06/0.2662, allocations: 3.938 kB / 484 MB, free: 15.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=5): time 0.0003159/0.2665, allocations: 216.3 kB / 484.2 MB, free: 14.85 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.765e-05/0.2665, allocations: 136.5 kB / 484.3 MB, free: 14.68 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.433e-05/0.2666, allocations: 101 kB / 484.4 MB, free: 14.58 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.187e-05/0.2666, allocations: 25.7 kB / 484.4 MB, free: 14.55 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.095e-05/0.2667, allocations: 84.14 kB / 484.5 MB, free: 14.46 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.05e-05/0.2667, allocations: 11.89 kB / 484.5 MB, free: 14.45 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.815e-06/0.2667, allocations: 0 / 484.5 MB, free: 14.45 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.72e-05/0.2668, allocations: 322.9 kB / 484.8 MB, free: 14.12 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.311e-05/0.2668, allocations: 11.98 kB / 484.9 MB, free: 14.11 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.287e-05/0.2669, allocations: 25.66 kB / 484.9 MB, free: 14.08 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.932e-05/0.267, allocations: 49.62 kB / 484.9 MB, free: 14.03 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.267, allocations: 0 / 484.9 MB, free: 14.03 MB / 362.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001587/0.2672, allocations: 107.5 kB / 485 MB, free: 13.91 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.963e-05/0.2672, allocations: 33.7 kB / 485.1 MB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.507e-06/0.2672, allocations: 0 / 485.1 MB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.087e-06/0.2672, allocations: 0 / 485.1 MB, free: 13.87 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.252e-05/0.2673, allocations: 19.92 kB / 485.1 MB, free: 13.85 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.192e-06/0.2673, allocations: 3.953 kB / 485.1 MB, free: 13.85 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.045e-05/0.2673, allocations: 7.938 kB / 485.1 MB, free: 13.84 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.075e-06/0.2674, allocations: 8.062 kB / 485.1 MB, free: 13.83 MB / 362.7 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,$whenCondition1,$whenCondition2,y_start) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001096/0.2675, allocations: 143.5 kB / 485.2 MB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.397e-05/0.2675, allocations: 7.906 kB / 485.3 MB, free: 13.67 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.063e-05/0.2675, allocations: 12 kB / 485.3 MB, free: 13.65 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.2675, allocations: 0 / 485.3 MB, free: 13.65 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.2675, allocations: 0 / 485.3 MB, free: 13.65 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.2675, allocations: 3.953 kB / 485.3 MB, free: 13.65 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.737e-05/0.2676, allocations: 165.7 kB / 485.4 MB, free: 13.44 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.2677, allocations: 0 / 485.4 MB, free: 13.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.941e-05/0.2677, allocations: 11.98 kB / 485.4 MB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.2677, allocations: 0 / 485.4 MB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.077e-05/0.2677, allocations: 4 kB / 485.4 MB, free: 13.42 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/0.2677, allocations: 320 / 485.4 MB, free: 13.42 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.2677, allocations: 0 / 485.4 MB, free: 13.42 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002067/0.2679, allocations: 154.7 kB / 485.6 MB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.648e-05/0.268, allocations: 88.94 kB / 485.7 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.652e-05/0.268, allocations: 4 kB / 485.7 MB, free: 13.14 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.322e-05/0.2681, allocations: 4 kB / 485.7 MB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.614e-05/0.2681, allocations: 8 kB / 485.7 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.392e-05/0.2681, allocations: 7.984 kB / 485.7 MB, free: 13.12 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.788e-05/0.2682, allocations: 83.27 kB / 485.8 MB, free: 13.04 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2682, allocations: 0 / 485.8 MB, free: 13.04 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002024/0.2684, allocations: 28 kB / 485.8 MB, free: 13.01 MB / 362.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) * 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 (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.0006654/0.2691, allocations: 0.7977 MB / 486.6 MB, free: 12.22 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001721/0.2692, allocations: 103.4 kB / 486.7 MB, free: 12.11 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.2693, allocations: 4 kB / 486.7 MB, free: 12.11 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.2e-05/0.2694, allocations: 91.38 kB / 486.8 MB, free: 12 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.626e-05/0.2694, allocations: 8 kB / 486.8 MB, free: 12 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000691/0.2701, allocations: 0.6073 MB / 487.4 MB, free: 11.34 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001963/0.2704, allocations: 0.6809 MB / 488.1 MB, free: 10.63 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 1.963e-05/0.2704, allocations: 3.984 kB / 488.1 MB, free: 10.62 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.792e-05/0.2704, allocations: 19.44 kB / 488.1 MB, free: 10.61 MB / 362.7 MB Notification: Performance of SimCode: time 2.054e-06/0.2704, allocations: 0 / 488.1 MB, free: 10.61 MB / 362.7 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeMain.mo:745:13-745: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.01179/0.2822, allocations: 1.609 MB / 489.7 MB, free: 9.098 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000187/0.2824, allocations: 196.7 kB / 489.9 MB, free: 8.859 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.432/1.715, allocations: 4 kB / 489.9 MB, free: 8.855 MB / 362.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)