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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/Modelica 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) Using package KeyWordIO with version 0.11.X (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009877/0.0009877, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009937/0.0009937, allocations: 193.2 kB / 16.14 MB, free: 6.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.206/1.206, allocations: 222.9 MB / 239.8 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.005622/0.005622, allocations: 1.004 MB / 291 MB, free: 1.453 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001007/0.001007, allocations: 67.89 kB / 351.5 MB, free: 2.234 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06932/0.07034, allocations: 49.65 MB / 401.1 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.1234/0.1937, allocations: 1.418 MB / 402.6 MB, free: 9.992 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009835/0.1948, allocations: 0.7956 MB / 403.4 MB, free: 9.473 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.399e-05/0.1948, allocations: 7.812 kB / 403.4 MB, free: 9.469 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.316e-05/0.1948, allocations: 0 / 403.4 MB, free: 9.469 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001375/0.195, allocations: 11.38 kB / 403.4 MB, free: 9.461 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/writeRealVariables.mo:2:1-21:23:writable] Warning: Pure function ‘KeyWordIO.writeRealVariables‘ contains a call to impure function ‘Modelica.Utilities.Files.removeFile‘. Notification: Performance of NFTyping.typeClassSections: time 0.0002028/0.1952, allocations: 38.05 kB / 403.4 MB, free: 9.441 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 5.227e-05/0.1953, allocations: 25.53 kB / 403.4 MB, free: 9.43 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.425e-05/0.1953, allocations: 7.141 kB / 403.4 MB, free: 9.43 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.722e-05/0.1953, allocations: 5.156 kB / 403.4 MB, free: 9.43 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.563e-05/0.1954, allocations: 16.34 kB / 403.5 MB, free: 9.422 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.02e-05/0.1955, allocations: 1.75 kB / 403.5 MB, free: 9.422 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001049/0.1956, allocations: 45.52 kB / 403.5 MB, free: 9.406 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.121e-05/0.1956, allocations: 2.531 kB / 403.5 MB, free: 9.406 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.066e-05/0.1956, allocations: 17.62 kB / 403.5 MB, free: 9.395 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001282/0.1958, allocations: 62.5 kB / 403.6 MB, free: 9.371 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.816e-06/0.1958, allocations: 0 / 403.6 MB, free: 9.371 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.61e-07/0.1958, allocations: 0.5625 kB / 403.6 MB, free: 9.371 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.926e-06/0.1958, allocations: 0 / 403.6 MB, free: 9.371 MB / 286.1 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.0003104/0.1961, allocations: 380 kB / 404 MB, free: 8.969 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.381e-05/0.1961, allocations: 9.594 kB / 404 MB, free: 8.969 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.156e-05/0.1962, allocations: 32.81 kB / 404 MB, free: 8.93 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.577e-05/0.1962, allocations: 5.844 kB / 404 MB, free: 8.93 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.524e-05/0.1963, allocations: 172.6 kB / 404.2 MB, free: 8.727 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.897e-06/0.1963, allocations: 1.844 kB / 404.2 MB, free: 8.727 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.488e-06/0.1963, allocations: 2.438 kB / 404.2 MB, free: 8.727 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001086/0.1964, allocations: 45.81 kB / 404.2 MB, free: 8.691 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.362e-06/0.1964, allocations: 3.938 kB / 404.2 MB, free: 8.688 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.915e-06/0.1964, allocations: 1.812 kB / 404.2 MB, free: 8.688 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.1965, allocations: 0 / 404.2 MB, free: 8.688 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.033e-05/0.1965, allocations: 20.95 kB / 404.3 MB, free: 8.684 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.961e-05/0.1966, allocations: 160.1 kB / 404.4 MB, free: 8.488 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.513e-05/0.1967, allocations: 35.44 kB / 404.4 MB, free: 8.457 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.847e-05/0.1968, allocations: 19.36 kB / 404.5 MB, free: 8.445 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.047e-06/0.1968, allocations: 0.5 kB / 404.5 MB, free: 8.445 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001699/0.197, allocations: 149.1 kB / 404.6 MB, free: 8.293 MB / 286.1 MB Notification: Performance of pre-optimization done (n=5): time 1.202e-06/0.197, allocations: 0.875 kB / 404.6 MB, free: 8.293 MB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002686/0.1972, allocations: 134.5 kB / 404.7 MB, free: 8.203 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.011e-05/0.1973, allocations: 132.5 kB / 404.9 MB, free: 8.047 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.647e-05/0.1973, allocations: 113.5 kB / 405 MB, free: 7.941 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 7.604e-06/0.1973, allocations: 26.86 kB / 405 MB, free: 7.91 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.621e-05/0.1974, allocations: 87.38 kB / 405.1 MB, free: 7.824 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.88e-05/0.1974, allocations: 9.828 kB / 405.1 MB, free: 7.816 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.841e-05/0.1974, allocations: 23.78 kB / 405.1 MB, free: 7.793 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 3.246e-05/0.1975, allocations: 313.2 kB / 405.4 MB, free: 7.48 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.483e-05/0.1975, allocations: 13 kB / 405.4 MB, free: 7.477 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.341e-05/0.1976, allocations: 25.41 kB / 405.5 MB, free: 7.457 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001165/0.1977, allocations: 107.8 kB / 405.6 MB, free: 7.363 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1977, allocations: 0 / 405.6 MB, free: 7.363 MB / 286.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000142/0.1978, allocations: 101 kB / 405.7 MB, free: 7.289 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.46e-05/0.1979, allocations: 42.11 kB / 405.7 MB, free: 7.25 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.988e-06/0.1979, allocations: 0.7031 kB / 405.7 MB, free: 7.25 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.087e-05/0.1979, allocations: 1.062 kB / 405.7 MB, free: 7.25 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.746e-05/0.198, allocations: 10.09 kB / 405.7 MB, free: 7.246 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.198, allocations: 0 / 405.7 MB, free: 7.246 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.998e-05/0.198, allocations: 6.156 kB / 405.7 MB, free: 7.246 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.194e-06/0.198, allocations: 6.125 kB / 405.7 MB, free: 7.242 MB / 286.1 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,y_start,$whenCondition2,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.383e-05/0.1981, allocations: 145 kB / 405.9 MB, free: 7.094 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.618e-05/0.1982, allocations: 12.38 kB / 405.9 MB, free: 7.086 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.575e-05/0.1982, allocations: 5.766 kB / 405.9 MB, free: 7.078 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.1982, allocations: 0 / 405.9 MB, free: 7.078 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.926e-06/0.1982, allocations: 0 / 405.9 MB, free: 7.078 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.1982, allocations: 1.484 kB / 405.9 MB, free: 7.078 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.314e-05/0.1983, allocations: 168.8 kB / 406.1 MB, free: 6.883 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.1983, allocations: 4 kB / 406.1 MB, free: 6.879 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.593e-05/0.1983, allocations: 4.656 kB / 406.1 MB, free: 6.879 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.1983, allocations: 3.938 kB / 406.1 MB, free: 6.875 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.916e-06/0.1983, allocations: 3.047 kB / 406.1 MB, free: 6.875 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.1983, allocations: 1.062 kB / 406.1 MB, free: 6.875 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.1983, allocations: 0.75 kB / 406.1 MB, free: 6.875 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001764/0.1985, allocations: 150.4 kB / 406.2 MB, free: 6.758 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.624e-05/0.1985, allocations: 83.12 kB / 406.3 MB, free: 6.66 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.827e-05/0.1986, allocations: 7.547 kB / 406.3 MB, free: 6.656 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.432e-05/0.1986, allocations: 5.703 kB / 406.3 MB, free: 6.656 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.238e-05/0.1986, allocations: 3.094 kB / 406.3 MB, free: 6.656 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.299e-05/0.1987, allocations: 7.562 kB / 406.3 MB, free: 6.652 MB / 286.1 MB Notification: Performance of sorting global known variables: time 2.686e-05/0.1987, allocations: 87.8 kB / 406.4 MB, free: 6.574 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1987, allocations: 0 / 406.4 MB, free: 6.574 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002078/0.1989, allocations: 22.09 kB / 406.4 MB, free: 6.57 MB / 286.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005302/0.1994, allocations: 0.786 MB / 407.2 MB, free: 5.895 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001576/0.1996, allocations: 103.8 kB / 407.3 MB, free: 5.816 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.1996, allocations: 0 / 407.3 MB, free: 5.816 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 7.754e-05/0.1997, allocations: 91.19 kB / 407.4 MB, free: 5.738 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001308/0.1998, allocations: 9.375 kB / 407.4 MB, free: 5.734 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008821/0.2007, allocations: 1.297 MB / 408.7 MB, free: 4.523 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.34e-05/0.2008, allocations: 0.6803 MB / 409.4 MB, free: 3.828 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 1.806e-05/0.2008, allocations: 2.219 kB / 409.4 MB, free: 3.828 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.463e-05/0.2009, allocations: 14.22 kB / 409.4 MB, free: 3.816 MB / 286.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2009, allocations: 1.438 kB / 409.4 MB, free: 3.816 MB / 286.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeMain.mo:779:13-779: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.5271/0.7279, allocations: 1.727 MB / 411.1 MB, free: 3.473 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001464/0.7281, allocations: 219.9 kB / 411.4 MB, free: 3.223 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.614/2.342, allocations: 7.875 kB / 411.4 MB, free: 3.215 MB / 286.1 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/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)