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.001495/0.001495, allocations: 175.2 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.01774/0.01774, allocations: 0.9744 MB / 14.23 MB, free: 1.062 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.578/1.578, allocations: 221.3 MB / 236.3 MB, free: 1.977 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.0009908/0.0009907, allocations: 85.48 kB / 287.5 MB, free: 5.695 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.696e-05/4.7e-05, allocations: 4 kB / 346.1 MB, free: 6.031 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1271/0.1272, allocations: 50.62 MB / 396.7 MB, free: 3.359 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.373/0.5002, allocations: 76.55 MB / 473.3 MB, free: 15.87 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002073/0.5005, allocations: 69.03 kB / 473.4 MB, free: 15.85 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004522/0.505, allocations: 1.88 MB / 475.2 MB, free: 14.84 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.505, allocations: 0.6562 kB / 475.2 MB, free: 14.84 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.5051, allocations: 0 / 475.2 MB, free: 14.84 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.0002837/0.5053, allocations: 369.5 kB / 475.6 MB, free: 14.44 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/0.5054, allocations: 12.03 kB / 475.6 MB, free: 14.43 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.214e-05/0.5054, allocations: 38.69 kB / 475.6 MB, free: 14.38 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.562e-05/0.5055, allocations: 7 kB / 475.7 MB, free: 14.38 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001056/0.5056, allocations: 169.2 kB / 475.8 MB, free: 14.18 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.293e-05/0.5056, allocations: 4 kB / 475.8 MB, free: 14.18 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.213e-05/0.5056, allocations: 4 kB / 475.8 MB, free: 14.17 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.231e-05/0.5057, allocations: 39.78 kB / 475.9 MB, free: 14.13 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.644e-06/0.5057, allocations: 0 / 475.9 MB, free: 14.13 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.127e-05/0.5058, allocations: 3.609 kB / 475.9 MB, free: 14.13 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.294e-06/0.5058, allocations: 0 / 475.9 MB, free: 14.13 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.052e-05/0.5058, allocations: 9.312 kB / 475.9 MB, free: 14.12 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001282/0.5059, allocations: 162.8 kB / 476 MB, free: 13.93 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.839e-05/0.506, allocations: 30.2 kB / 476.1 MB, free: 13.89 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.558e-05/0.506, allocations: 17.16 kB / 476.1 MB, free: 13.88 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.21e-05/0.506, allocations: 4 kB / 476.1 MB, free: 13.88 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001218/0.5062, allocations: 131.1 kB / 476.2 MB, free: 13.73 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 1.092e-06/0.5062, allocations: 4 kB / 476.2 MB, free: 13.72 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001925/0.5064, allocations: 100.6 kB / 476.3 MB, free: 13.62 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.323e-05/0.5064, allocations: 137.5 kB / 476.5 MB, free: 13.46 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.962e-05/0.5065, allocations: 105.5 kB / 476.6 MB, free: 13.36 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 9.538e-06/0.5065, allocations: 25.7 kB / 476.6 MB, free: 13.33 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.534e-05/0.5065, allocations: 87.45 kB / 476.7 MB, free: 13.25 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.329e-05/0.5066, allocations: 13.53 kB / 476.7 MB, free: 13.23 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.956e-06/0.5066, allocations: 1.781 kB / 476.7 MB, free: 13.23 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.378e-05/0.5066, allocations: 320.2 kB / 477 MB, free: 12.92 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.718e-05/0.5067, allocations: 7.188 kB / 477 MB, free: 12.91 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.389e-05/0.5067, allocations: 17.09 kB / 477 MB, free: 12.89 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.834e-05/0.5067, allocations: 40.38 kB / 477.1 MB, free: 12.85 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.5068, allocations: 0 / 477.1 MB, free: 12.85 MB / 346.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 9.6e-05/0.5069, allocations: 94.2 kB / 477.1 MB, free: 12.76 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.765e-05/0.5069, allocations: 38.48 kB / 477.2 MB, free: 12.72 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.5069, allocations: 0 / 477.2 MB, free: 12.72 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/0.5069, allocations: 2.734 kB / 477.2 MB, free: 12.72 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.217e-05/0.507, allocations: 13.22 kB / 477.2 MB, free: 12.71 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.134e-06/0.507, allocations: 1.312 kB / 477.2 MB, free: 12.71 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.136e-05/0.5071, allocations: 12.91 kB / 477.2 MB, free: 12.7 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.147e-06/0.5071, allocations: 4 kB / 477.2 MB, free: 12.7 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.0001002/0.5072, allocations: 135.5 kB / 477.3 MB, free: 12.55 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.389e-05/0.5072, allocations: 7.906 kB / 477.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.289e-05/0.5072, allocations: 9.484 kB / 477.4 MB, free: 12.54 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.5072, allocations: 4 kB / 477.4 MB, free: 12.54 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.5072, allocations: 3.953 kB / 477.4 MB, free: 12.54 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.016e-06/0.5073, allocations: 1.688 kB / 477.4 MB, free: 12.54 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.952e-05/0.5073, allocations: 165.5 kB / 477.5 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.5074, allocations: 0 / 477.5 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.832e-05/0.5074, allocations: 5.547 kB / 477.5 MB, free: 12.33 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.5074, allocations: 0 / 477.5 MB, free: 12.33 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.105e-05/0.5074, allocations: 2.688 kB / 477.5 MB, free: 12.33 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.5074, allocations: 1.5 kB / 477.5 MB, free: 12.33 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.5074, allocations: 4 kB / 477.6 MB, free: 12.33 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001456/0.5076, allocations: 135 kB / 477.7 MB, free: 12.19 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.638e-05/0.5076, allocations: 90.39 kB / 477.8 MB, free: 12.09 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.833e-05/0.5076, allocations: 4 kB / 477.8 MB, free: 12.08 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.141e-05/0.5077, allocations: 8 kB / 477.8 MB, free: 12.08 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.615e-05/0.5077, allocations: 5.734 kB / 477.8 MB, free: 12.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.515e-05/0.5078, allocations: 8.906 kB / 477.8 MB, free: 12.07 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.038e-05/0.5078, allocations: 86.78 kB / 477.9 MB, free: 11.99 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5078, allocations: 3.938 kB / 477.9 MB, free: 11.98 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002248/0.508, allocations: 29.31 kB / 477.9 MB, free: 11.96 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.0005768/0.5086, allocations: 0.7627 MB / 478.7 MB, free: 11.24 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001233/0.5087, allocations: 95.14 kB / 478.8 MB, free: 11.15 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.5088, allocations: 0 / 478.8 MB, free: 11.15 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 5.886e-05/0.5088, allocations: 87.39 kB / 478.9 MB, free: 11.07 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.189e-05/0.5089, allocations: 192 / 478.9 MB, free: 11.07 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000321/0.5092, allocations: 134.5 kB / 479 MB, free: 10.92 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001001/0.5094, allocations: 0.6868 MB / 479.7 MB, free: 10.21 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 2.064e-05/0.5094, allocations: 4.875 kB / 479.7 MB, free: 10.21 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.886e-05/0.5094, allocations: 15 kB / 479.7 MB, free: 10.21 MB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.5094, allocations: 0 / 479.7 MB, free: 10.21 MB / 346.7 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeMain.mo:718:13-718: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.01361/0.523, allocations: 1.615 MB / 481.3 MB, free: 9.32 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001749/0.5233, allocations: 176.7 kB / 481.5 MB, free: 9.098 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.637/2.161, allocations: 0 / 481.5 MB, free: 9.098 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)