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.001026/0.001025, allocations: 178.4 kB / 7.65 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.004812/0.004812, allocations: 0.9673 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.372/1.372, allocations: 221.5 MB / 231.2 MB, free: 6.449 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.0009461/0.0009462, allocations: 98 kB / 282.3 MB, free: 3.984 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.607e-05/1.609e-05, allocations: 0 / 339.2 MB, free: 8.09 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1182, allocations: 50.63 MB / 389.9 MB, free: 5.41 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3983/0.5166, allocations: 75.83 MB / 465.7 MB, free: 0.5508 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000276/0.5169, allocations: 63.97 kB / 465.8 MB, free: 500 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006225/0.5232, allocations: 1.691 MB / 467.5 MB, free: 14.8 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.5232, allocations: 0 / 467.5 MB, free: 14.8 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.576e-06/0.5232, allocations: 0 / 467.5 MB, free: 14.8 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.0004285/0.5236, allocations: 362.9 kB / 467.8 MB, free: 14.4 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.57e-05/0.5237, allocations: 8.031 kB / 467.8 MB, free: 14.39 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.853e-05/0.5238, allocations: 0 / 467.8 MB, free: 14.39 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001941/0.524, allocations: 175.8 kB / 468 MB, free: 14.18 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.769e-05/0.524, allocations: 3.875 kB / 468 MB, free: 14.18 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.002e-05/0.524, allocations: 4 kB / 468 MB, free: 14.18 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 3.624e-05/0.5241, allocations: 0 / 468 MB, free: 14.18 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.287e-05/0.5242, allocations: 33.66 kB / 468 MB, free: 14.14 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.296e-06/0.5242, allocations: 0 / 468 MB, free: 14.14 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.351e-05/0.5242, allocations: 0 / 468 MB, free: 14.14 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.236e-05/0.5242, allocations: 3.984 kB / 468 MB, free: 14.13 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001913/0.5244, allocations: 134.2 kB / 468.2 MB, free: 13.96 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.302e-05/0.5245, allocations: 26.59 kB / 468.2 MB, free: 13.93 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.105e-05/0.5245, allocations: 12.8 kB / 468.2 MB, free: 13.91 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.502e-05/0.5246, allocations: 0 / 468.2 MB, free: 13.91 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001577/0.5247, allocations: 102.9 kB / 468.3 MB, free: 13.79 MB / 346.7 MB Notification: Performance of pre-optimization done (n=2): time 1.493e-06/0.5247, allocations: 0 / 468.3 MB, free: 13.79 MB / 346.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001691/0.5249, allocations: 42.17 kB / 468.3 MB, free: 13.74 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.875e-05/0.525, allocations: 85.09 kB / 468.4 MB, free: 13.64 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.606e-05/0.5251, allocations: 97 kB / 468.5 MB, free: 13.54 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.841e-05/0.5251, allocations: 25.7 kB / 468.5 MB, free: 13.51 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.938e-05/0.5252, allocations: 88.12 kB / 468.6 MB, free: 13.42 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.723e-05/0.5252, allocations: 7.938 kB / 468.6 MB, free: 13.41 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.469e-06/0.5252, allocations: 7.875 kB / 468.6 MB, free: 13.4 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.5254, allocations: 310.8 kB / 469 MB, free: 13.09 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.96e-05/0.5254, allocations: 7.938 kB / 469 MB, free: 13.08 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.141e-05/0.5255, allocations: 21.72 kB / 469 MB, free: 13.05 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.831e-05/0.5255, allocations: 0 / 469 MB, free: 13.05 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.5255, allocations: 0 / 469 MB, free: 13.05 MB / 346.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001075/0.5256, allocations: 45.59 kB / 469 MB, free: 13 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.688e-05/0.5257, allocations: 31.27 kB / 469.1 MB, free: 12.97 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.5257, allocations: 0 / 469.1 MB, free: 12.97 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/0.5257, allocations: 4 kB / 469.1 MB, free: 12.96 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.676e-05/0.5258, allocations: 8.125 kB / 469.1 MB, free: 12.96 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.089e-06/0.5258, allocations: 3.938 kB / 469.1 MB, free: 12.95 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.003e-05/0.5259, allocations: 11.94 kB / 469.1 MB, free: 12.94 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.646e-06/0.5259, allocations: 0 / 469.1 MB, free: 12.94 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 9.787e-05/0.526, allocations: 130.7 kB / 469.2 MB, free: 12.8 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 8.59e-05/0.5261, allocations: 41.7 kB / 469.3 MB, free: 12.75 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.802e-05/0.5262, allocations: 7.891 kB / 469.3 MB, free: 12.75 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.672e-05/0.5262, allocations: 7.969 kB / 469.3 MB, free: 12.74 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.5262, allocations: 4.031 kB / 469.3 MB, free: 12.73 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.053e-06/0.5262, allocations: 3.953 kB / 469.3 MB, free: 12.73 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.5262, allocations: 0 / 469.3 MB, free: 12.73 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001325/0.5264, allocations: 134.2 kB / 469.4 MB, free: 12.56 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.5264, allocations: 0 / 469.4 MB, free: 12.56 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.26e-05/0.5264, allocations: 7.984 kB / 469.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.5264, allocations: 0 / 469.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.042e-05/0.5265, allocations: 4 kB / 469.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.5265, allocations: 0 / 469.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.5265, allocations: 0 / 469.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001189/0.5266, allocations: 73.03 kB / 469.5 MB, free: 12.46 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.269e-05/0.5267, allocations: 81.09 kB / 469.6 MB, free: 12.36 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.007e-05/0.5267, allocations: 4 kB / 469.6 MB, free: 12.36 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.147e-05/0.5268, allocations: 6.438 kB / 469.6 MB, free: 12.36 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.059e-05/0.5268, allocations: 0 / 469.6 MB, free: 12.36 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.799e-06/0.5268, allocations: 3.984 kB / 469.6 MB, free: 12.35 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.215e-05/0.5269, allocations: 91.31 kB / 469.7 MB, free: 12.26 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.354e-06/0.5269, allocations: 0 / 469.7 MB, free: 12.26 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003735/0.5273, allocations: 23.94 kB / 469.7 MB, free: 12.24 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: 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.0008944/0.5282, allocations: 0.7061 MB / 470.4 MB, free: 11.54 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001386/0.5284, allocations: 63.41 kB / 470.5 MB, free: 11.46 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.5284, allocations: 0 / 470.5 MB, free: 11.46 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.946e-05/0.5284, allocations: 55.41 kB / 470.5 MB, free: 11.39 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001528/0.5286, allocations: 7.984 kB / 470.5 MB, free: 11.39 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004287/0.529, allocations: 93.59 kB / 470.6 MB, free: 11.26 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003012/0.5294, allocations: 0.6808 MB / 471.3 MB, free: 10.55 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 2.472e-05/0.5294, allocations: 4 kB / 471.3 MB, free: 10.55 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.364e-05/0.5295, allocations: 15.42 kB / 471.3 MB, free: 10.53 MB / 346.7 MB Notification: Performance of SimCode: time 3.9e-07/0.5295, allocations: 0 / 471.3 MB, free: 10.53 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_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.02388/0.5534, allocations: 1.127 MB / 472.4 MB, free: 9.418 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002636/0.5537, allocations: 146.8 kB / 472.6 MB, free: 9.227 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.511/2.065, allocations: 0 / 472.6 MB, free: 9.227 MB / 346.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)