Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr KeyWordIO_KeyWordIO.Examples.WriteRealVariable.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.WriteRealVariable,fileNamePrefix="KeyWordIO_KeyWordIO_Examples_WriteRealVariable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(KeyWordIO.Examples.WriteRealVariable,fileNamePrefix="KeyWordIO_KeyWordIO_Examples_WriteRealVariable",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.001452/0.001452, allocations: 174.8 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.00544/0.00544, 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.496/1.496, allocations: 221.4 MB / 236.3 MB, free: 13.26 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.000987/0.000987, allocations: 99.44 kB / 287.5 MB, free: 11.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.789e-05/3.791e-05, allocations: 4 kB / 346.1 MB, free: 1.273 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3024/0.3025, allocations: 50.61 MB / 396.7 MB, free: 33.22 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1037/0.4063, allocations: 76.5 MB / 473.2 MB, free: 4.613 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002425/0.4066, allocations: 71.91 kB / 473.3 MB, free: 4.543 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004932/0.4116, allocations: 1.799 MB / 475.1 MB, free: 2.746 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.4116, allocations: 0 / 475.1 MB, free: 2.746 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.344e-06/0.4116, allocations: 0 / 475.1 MB, free: 2.746 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004226/0.4121, allocations: 368.2 kB / 475.5 MB, free: 2.336 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.26e-05/0.4121, allocations: 8.031 kB / 475.5 MB, free: 2.328 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.125e-05/0.4122, allocations: 30.56 kB / 475.5 MB, free: 2.289 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.132e-05/0.4123, allocations: 4 kB / 475.5 MB, free: 2.285 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002091/0.4125, allocations: 163.1 kB / 475.7 MB, free: 2.086 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.678e-05/0.4125, allocations: 4 kB / 475.7 MB, free: 2.082 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.171e-05/0.4125, allocations: 3.984 kB / 475.7 MB, free: 2.078 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001201/0.4127, allocations: 45.58 kB / 475.7 MB, free: 2.027 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.11e-05/0.4127, allocations: 0 / 475.7 MB, free: 2.027 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.107e-05/0.4127, allocations: 0 / 475.7 MB, free: 2.027 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.4127, allocations: 0 / 475.7 MB, free: 2.027 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.334e-05/0.4127, allocations: 4 kB / 475.7 MB, free: 2.023 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002231/0.413, allocations: 153.7 kB / 475.9 MB, free: 1.824 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.437e-05/0.413, allocations: 18.58 kB / 475.9 MB, free: 1.797 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.012e-05/0.4131, allocations: 16.92 kB / 475.9 MB, free: 1.777 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.595e-05/0.4131, allocations: 0 / 475.9 MB, free: 1.777 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001729/0.4133, allocations: 106.7 kB / 476 MB, free: 1.648 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 1.322e-06/0.4133, allocations: 0 / 476 MB, free: 1.648 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002154/0.4135, allocations: 71.27 kB / 476.1 MB, free: 1.566 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.739e-05/0.4135, allocations: 81.14 kB / 476.2 MB, free: 1.469 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001065/0.4137, allocations: 105 kB / 476.3 MB, free: 1.359 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.775e-05/0.4137, allocations: 25.7 kB / 476.3 MB, free: 1.328 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.8e-05/0.4138, allocations: 84.14 kB / 476.4 MB, free: 1.242 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.856e-05/0.4138, allocations: 11.88 kB / 476.4 MB, free: 1.23 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.176e-06/0.4138, allocations: 0 / 476.4 MB, free: 1.23 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.414, allocations: 314.8 kB / 476.7 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.734e-05/0.414, allocations: 7.938 kB / 476.7 MB, free: 0.9062 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.358e-05/0.414, allocations: 21.66 kB / 476.7 MB, free: 0.8789 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.114e-05/0.4141, allocations: 29.7 kB / 476.8 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.4141, allocations: 0 / 476.8 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 9.159e-05/0.4142, allocations: 75.25 kB / 476.8 MB, free: 0.7578 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.159e-05/0.4142, allocations: 37.69 kB / 476.9 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.4142, allocations: 0 / 476.9 MB, free: 0.7148 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.676e-05/0.4143, allocations: 4.078 kB / 476.9 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.181e-05/0.4143, allocations: 8 kB / 476.9 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.4144, allocations: 0 / 476.9 MB, free: 0.7031 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.858e-05/0.4144, allocations: 4 kB / 476.9 MB, free: 0.6992 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.231e-05/0.4144, allocations: 4 kB / 476.9 MB, free: 0.6953 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 0.0001166/0.4145, allocations: 130.7 kB / 477 MB, free: 0.5547 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.253e-05/0.4146, allocations: 4 kB / 477 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.619e-05/0.4146, allocations: 7.656 kB / 477 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.4146, allocations: 0 / 477 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.516e-06/0.4146, allocations: 7.953 kB / 477 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.4146, allocations: 0 / 477 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001571/0.4148, allocations: 161.7 kB / 477.2 MB, free: 340 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.4148, allocations: 0 / 477.2 MB, free: 340 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.794e-05/0.4148, allocations: 4 kB / 477.2 MB, free: 336 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.4148, allocations: 0 / 477.2 MB, free: 336 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.528e-06/0.4149, allocations: 0 / 477.2 MB, free: 336 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.4149, allocations: 0 / 477.2 MB, free: 336 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.4149, allocations: 0 / 477.2 MB, free: 336 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001344/0.415, allocations: 110.6 kB / 477.3 MB, free: 200 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.197e-05/0.4151, allocations: 77.11 kB / 477.4 MB, free: 104 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.889e-05/0.4151, allocations: 4 kB / 477.4 MB, free: 100 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.914e-05/0.4152, allocations: 7.984 kB / 477.4 MB, free: 92 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.038e-05/0.4152, allocations: 0 / 477.4 MB, free: 92 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.031e-06/0.4152, allocations: 0 / 477.4 MB, free: 92 kB / 346.7 MB Notification: Performance of sorting global known variables: time 6.104e-05/0.4153, allocations: 91.23 kB / 477.5 MB, free: 0 / 346.7 MB Notification: Performance of sort global known variables: time 2.024e-06/0.4153, allocations: 4.078 kB / 477.5 MB, free: 15.99 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002354/0.4156, allocations: 27.92 kB / 477.5 MB, free: 15.96 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: 1 ($whenCondition1) * Number of discrete states: 1 ($whenCondition1) * 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.0008046/0.4164, allocations: 0.729 MB / 478.2 MB, free: 15.25 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001275/0.4165, allocations: 63.41 kB / 478.3 MB, free: 15.18 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.4165, allocations: 4.125 kB / 478.3 MB, free: 15.18 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.415e-05/0.4166, allocations: 55.41 kB / 478.4 MB, free: 15.11 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001072/0.4167, allocations: 8 kB / 478.4 MB, free: 15.1 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003414/0.417, allocations: 95.33 kB / 478.5 MB, free: 14.97 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002923/0.4173, allocations: 0.6848 MB / 479.1 MB, free: 14.26 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.154e-05/0.4174, allocations: 0 / 479.1 MB, free: 14.26 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.457e-05/0.4174, allocations: 15.44 kB / 479.2 MB, free: 14.25 MB / 362.7 MB Notification: Performance of SimCode: time 2.9e-07/0.4174, allocations: 64 / 479.2 MB, free: 14.25 MB / 362.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_WriteRealVariable.fmutmp/resources//home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/.. Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01382/0.4312, allocations: 1.406 MB / 480.6 MB, free: 12.96 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002081/0.4315, allocations: 178.3 kB / 480.7 MB, free: 12.73 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.544/1.976, allocations: 0 / 480.7 MB, free: 12.73 MB / 362.7 MB (rm -f KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe ; mkfifo KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe ; head -c 1048576 < KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe >> ../files/KeyWordIO_KeyWordIO.Examples.WriteRealVariable.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_KeyWordIO_KeyWordIO_Examples_WriteRealVariable_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 KeyWordIO_KeyWordIO_Examples_WriteRealVariable.fmu > KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe 2>&1)