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/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00124/0.00124, allocations: 97.92 kB / 19.73 MB, free: 2.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001382/0.001382, allocations: 215.9 kB / 23.03 MB, free: 4.949 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.384/1.384, allocations: 230.6 MB / 256.8 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/package.mo): time 0.006812/0.006812, allocations: 1.012 MB / 314.2 MB, free: 1.906 MB / 238.1 MB " [Timeout remaining time 180] Using package KeyWordIO with version 0.12.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(KeyWordIO.Examples.WriteRealVariable,fileNamePrefix="KeyWordIO_KeyWordIO_Examples_WriteRealVariable",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(KeyWordIO.Examples.WriteRealVariable,fileNamePrefix="KeyWordIO_KeyWordIO_Examples_WriteRealVariable",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: KeyWordIO requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001911/0.001911, allocations: 59.91 kB / 436.4 MB, free: 16.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08656/0.08847, allocations: 53.58 MB / 490 MB, free: 10.79 MB / 350.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.002423/0.09089, allocations: 1.373 MB / 491.4 MB, free: 9.402 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001305/0.0922, allocations: 0.8841 MB / 492.3 MB, free: 8.516 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.478e-05/0.09223, allocations: 0 / 492.3 MB, free: 8.516 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.199e-05/0.09225, allocations: 4 kB / 492.3 MB, free: 8.512 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001916/0.09245, allocations: 19.88 kB / 492.3 MB, free: 8.492 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/writeRealVariable.mo:2:1-14:22:writable] Warning: Pure function 'KeyWordIO.writeRealVariable' contains a call to impure function 'Modelica.Utilities.Files.removeFile'. Notification: Performance of NFTyping.typeClassSections: time 0.0001943/0.09264, allocations: 43.81 kB / 492.3 MB, free: 8.449 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.599e-05/0.09271, allocations: 16 kB / 492.3 MB, free: 8.434 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.144e-05/0.09275, allocations: 7.984 kB / 492.4 MB, free: 8.426 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.055e-05/0.09278, allocations: 11.94 kB / 492.4 MB, free: 8.414 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.03e-05/0.09285, allocations: 11.92 kB / 492.4 MB, free: 8.402 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.848e-06/0.09286, allocations: 0 / 492.4 MB, free: 8.402 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.448e-05/0.09294, allocations: 35.97 kB / 492.4 MB, free: 8.367 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.388e-05/0.09296, allocations: 4 kB / 492.4 MB, free: 8.363 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.662e-05/0.09298, allocations: 7.938 kB / 492.4 MB, free: 8.355 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001433/0.09313, allocations: 64.08 kB / 492.5 MB, free: 8.293 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.09313, allocations: 0 / 492.5 MB, free: 8.293 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.09313, allocations: 0 / 492.5 MB, free: 8.293 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.796e-06/0.09314, allocations: 0 / 492.5 MB, free: 8.293 MB / 350.1 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.0003932/0.09353, allocations: 295.9 kB / 492.8 MB, free: 7.965 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.54e-05/0.09357, allocations: 12.03 kB / 492.8 MB, free: 7.953 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.067e-05/0.09358, allocations: 192 / 492.8 MB, free: 7.953 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.564e-05/0.0936, allocations: 30.75 kB / 492.8 MB, free: 7.914 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.568e-05/0.09363, allocations: 4.891 kB / 492.8 MB, free: 7.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001218/0.09375, allocations: 110.5 kB / 492.9 MB, free: 7.777 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.205e-05/0.09376, allocations: 12.38 kB / 492.9 MB, free: 7.766 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.787e-06/0.09377, allocations: 4.312 kB / 492.9 MB, free: 7.762 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001121/0.09389, allocations: 63.7 kB / 493 MB, free: 7.688 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.733e-06/0.09389, allocations: 0 / 493 MB, free: 7.688 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.052e-05/0.0939, allocations: 4 kB / 493 MB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.111e-06/0.09391, allocations: 3.984 kB / 493 MB, free: 7.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.462e-05/0.09396, allocations: 11.98 kB / 493 MB, free: 7.668 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001444/0.09411, allocations: 124.8 kB / 493.2 MB, free: 7.504 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.388e-05/0.09417, allocations: 26.52 kB / 493.2 MB, free: 7.469 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.854e-05/0.09421, allocations: 16.91 kB / 493.2 MB, free: 7.449 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.458e-06/0.09422, allocations: 0 / 493.2 MB, free: 7.449 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001804/0.0944, allocations: 166.1 kB / 493.4 MB, free: 7.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.0944, allocations: 0 / 493.4 MB, free: 7.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002462/0.09465, allocations: 134.8 kB / 493.5 MB, free: 7.094 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.645e-05/0.09469, allocations: 81.05 kB / 493.6 MB, free: 6.996 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.092e-05/0.09478, allocations: 109.8 kB / 493.7 MB, free: 6.879 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.917e-05/0.0948, allocations: 29.77 kB / 493.7 MB, free: 6.844 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.042e-05/0.09484, allocations: 88.14 kB / 493.8 MB, free: 6.754 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.469e-05/0.09487, allocations: 11.89 kB / 493.8 MB, free: 6.742 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.649e-05/0.0949, allocations: 9.719 kB / 493.8 MB, free: 6.727 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.09503, allocations: 322.8 kB / 494.1 MB, free: 6.402 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.754e-05/0.09507, allocations: 29.7 kB / 494.2 MB, free: 6.367 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.449e-05/0.09513, allocations: 47.41 kB / 494.2 MB, free: 6.309 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.013e-05/0.09522, allocations: 77.11 kB / 494.3 MB, free: 6.215 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.09522, allocations: 8.062 kB / 494.3 MB, free: 6.207 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001453/0.09537, allocations: 109 kB / 494.4 MB, free: 6.082 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.078e-05/0.0954, allocations: 32.36 kB / 494.4 MB, free: 6.047 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.737e-06/0.0954, allocations: 0 / 494.4 MB, free: 6.047 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.159e-05/0.09541, allocations: 4 kB / 494.4 MB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.066e-05/0.09546, allocations: 3.984 kB / 494.4 MB, free: 6.039 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.218e-06/0.09547, allocations: 4 kB / 494.4 MB, free: 6.035 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.093e-05/0.0955, allocations: 4 kB / 494.4 MB, free: 6.031 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.652e-06/0.09551, allocations: 8.062 kB / 494.4 MB, free: 6.023 MB / 350.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.355e-05/0.0956, allocations: 139.5 kB / 494.6 MB, free: 5.871 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.712e-05/0.09562, allocations: 11.92 kB / 494.6 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.877e-05/0.09564, allocations: 7.578 kB / 494.6 MB, free: 5.848 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.153e-06/0.09564, allocations: 4 kB / 494.6 MB, free: 5.844 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.09564, allocations: 3.938 kB / 494.6 MB, free: 5.84 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.09564, allocations: 0 / 494.6 MB, free: 5.84 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001141/0.09576, allocations: 128.7 kB / 494.7 MB, free: 5.672 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.09576, allocations: 0 / 494.7 MB, free: 5.672 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.77e-05/0.09578, allocations: 7.938 kB / 494.7 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.323e-06/0.09579, allocations: 0 / 494.7 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.542e-06/0.09579, allocations: 4 kB / 494.7 MB, free: 5.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.0958, allocations: 4 kB / 494.8 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.0958, allocations: 0 / 494.8 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001676/0.09596, allocations: 128.5 kB / 494.9 MB, free: 5.5 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.081e-05/0.09597, allocations: 3.938 kB / 494.9 MB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.698e-05/0.09599, allocations: 8 kB / 494.9 MB, free: 5.488 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.157e-05/0.09602, allocations: 3.984 kB / 494.9 MB, free: 5.484 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.261e-05/0.09606, allocations: 4 kB / 494.9 MB, free: 5.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.859e-06/0.09606, allocations: 3.938 kB / 494.9 MB, free: 5.477 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.658e-05/0.09612, allocations: 99.59 kB / 495 MB, free: 5.379 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.09612, allocations: 0 / 495 MB, free: 5.379 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002055/0.09632, allocations: 15.98 kB / 495 MB, free: 5.363 MB / 350.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: 1 ($whenCondition1) * Number of discrete states: 1 ($whenCondition1) * 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.0007621/0.09709, allocations: 0.7555 MB / 495.8 MB, free: 4.605 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001828/0.09727, allocations: 130.7 kB / 495.9 MB, free: 4.453 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.09727, allocations: 0 / 495.9 MB, free: 4.453 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.249e-05/0.09735, allocations: 89.09 kB / 496 MB, free: 4.348 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001383/0.09749, allocations: 8.188 kB / 496 MB, free: 4.34 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001322/0.09881, allocations: 1.344 MB / 497.3 MB, free: 2.871 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.335e-05/0.09888, allocations: 67.28 kB / 497.4 MB, free: 2.785 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.858e-05/0.09889, allocations: 0 / 497.4 MB, free: 2.785 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.279e-05/0.09893, allocations: 11.44 kB / 497.4 MB, free: 2.773 MB / 350.1 MB Notification: Performance of SimCode: time 3.5e-07/0.09893, allocations: 0 / 497.4 MB, free: 2.773 MB / 350.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeMain.mo:791:13-791:114:writable] Error: Internal error Failed to copy path /home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/../output.txt to 539.fmutmp/resources//home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/.. Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02164/0.1206, allocations: 1.952 MB / 499.4 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.99/11.11, allocations: 4.062 kB / 499.4 MB, free: 0.9766 MB / 350.1 MB " [Timeout remaining time 649] (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/bin/OMSimulator --tempDir=temp_KeyWordIO_KeyWordIO_Examples_WriteRealVariable_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 KeyWordIO_KeyWordIO_Examples_WriteRealVariable.fmu > KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.527467012987472] Failed to read output from testmodel.py, exit status != 0: 11.268562199082226 11.286880952 11.190612024 Calling exit ...