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.001271/0.001271, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001395/0.001395, allocations: 216.4 kB / 22.25 MB, free: 5.262 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.381/1.381, allocations: 230.6 MB / 256 MB, free: 7.809 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.006822/0.006822, allocations: 1.012 MB / 313.4 MB, free: 1.918 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(KeyWordIO.Examples.WriteRealVariable,fileNamePrefix="KeyWordIO_KeyWordIO_Examples_WriteRealVariable",fmuType="me",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.001894/0.001894, allocations: 68.19 kB / 435.7 MB, free: 16.47 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0895/0.0914, allocations: 53.58 MB / 489.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.002378/0.09377, allocations: 1.369 MB / 490.6 MB, free: 9.418 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001265/0.09504, allocations: 0.888 MB / 491.5 MB, free: 8.527 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.327e-05/0.09507, allocations: 0 / 491.5 MB, free: 8.527 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.281e-05/0.0951, allocations: 3.938 kB / 491.5 MB, free: 8.523 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001921/0.09529, allocations: 19.92 kB / 491.5 MB, free: 8.504 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.0001791/0.09547, allocations: 31.91 kB / 491.5 MB, free: 8.473 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.926e-05/0.09554, allocations: 27.92 kB / 491.6 MB, free: 8.445 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.061e-05/0.09558, allocations: 4 kB / 491.6 MB, free: 8.441 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.337e-05/0.09561, allocations: 15.92 kB / 491.6 MB, free: 8.426 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.393e-05/0.09568, allocations: 11.92 kB / 491.6 MB, free: 8.414 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.427e-06/0.09569, allocations: 0 / 491.6 MB, free: 8.414 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.485e-05/0.09578, allocations: 35.97 kB / 491.6 MB, free: 8.379 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.115e-05/0.09579, allocations: 4 kB / 491.6 MB, free: 8.375 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.368e-05/0.09581, allocations: 11.86 kB / 491.7 MB, free: 8.363 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001331/0.09595, allocations: 60.09 kB / 491.7 MB, free: 8.305 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.237e-06/0.09595, allocations: 0 / 491.7 MB, free: 8.305 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.09595, allocations: 0 / 491.7 MB, free: 8.305 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.053e-05/0.09596, allocations: 4 kB / 491.7 MB, free: 8.301 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.0003988/0.09636, allocations: 287.9 kB / 492 MB, free: 7.98 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.0964, allocations: 12.03 kB / 492 MB, free: 7.969 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.045e-05/0.09643, allocations: 34.75 kB / 492 MB, free: 7.926 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.575e-05/0.09645, allocations: 4.891 kB / 492.1 MB, free: 7.922 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001169/0.09657, allocations: 110.5 kB / 492.2 MB, free: 7.789 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.105e-05/0.09658, allocations: 4.375 kB / 492.2 MB, free: 7.785 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.067e-05/0.09659, allocations: 4.375 kB / 492.2 MB, free: 7.781 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001218/0.09671, allocations: 59.95 kB / 492.2 MB, free: 7.711 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.246e-06/0.09672, allocations: 3.938 kB / 492.2 MB, free: 7.707 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.385e-06/0.09673, allocations: 4 kB / 492.2 MB, free: 7.703 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.881e-06/0.09674, allocations: 4 kB / 492.2 MB, free: 7.699 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.718e-05/0.09679, allocations: 15.92 kB / 492.3 MB, free: 7.684 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000147/0.09694, allocations: 124.8 kB / 492.4 MB, free: 7.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.661e-05/0.09701, allocations: 22.56 kB / 492.4 MB, free: 7.488 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.497e-05/0.09704, allocations: 8.922 kB / 492.4 MB, free: 7.477 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.112e-05/0.09705, allocations: 3.984 kB / 492.4 MB, free: 7.473 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001962/0.09725, allocations: 174 kB / 492.6 MB, free: 7.266 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.252e-06/0.09725, allocations: 7.938 kB / 492.6 MB, free: 7.258 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002394/0.09749, allocations: 130.8 kB / 492.7 MB, free: 7.105 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.174e-05/0.09754, allocations: 81.05 kB / 492.8 MB, free: 7.008 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.444e-05/0.09763, allocations: 109.8 kB / 492.9 MB, free: 6.891 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.718e-05/0.09764, allocations: 29.7 kB / 492.9 MB, free: 6.855 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.803e-05/0.09769, allocations: 88.11 kB / 493 MB, free: 6.766 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.361e-05/0.09772, allocations: 11.89 kB / 493 MB, free: 6.754 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.104e-05/0.09775, allocations: 13.72 kB / 493 MB, free: 6.734 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.09788, allocations: 314.8 kB / 493.4 MB, free: 6.418 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.186e-05/0.09793, allocations: 37.81 kB / 493.4 MB, free: 6.375 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.104e-05/0.09799, allocations: 47.36 kB / 493.4 MB, free: 6.316 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.436e-05/0.09809, allocations: 77.11 kB / 493.5 MB, free: 6.223 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.09809, allocations: 0 / 493.5 MB, free: 6.223 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001491/0.09824, allocations: 113 kB / 493.6 MB, free: 6.094 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.214e-05/0.09827, allocations: 33.64 kB / 493.7 MB, free: 6.055 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.787e-06/0.09827, allocations: 4.125 kB / 493.7 MB, free: 6.051 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.09829, allocations: 4 kB / 493.7 MB, free: 6.047 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.83e-05/0.09834, allocations: 0 / 493.7 MB, free: 6.047 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.323e-06/0.09834, allocations: 4 kB / 493.7 MB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.134e-05/0.09837, allocations: 3.984 kB / 493.7 MB, free: 6.039 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.464e-06/0.09838, allocations: 4 kB / 493.7 MB, free: 6.035 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.049e-05/0.09847, allocations: 135.5 kB / 493.8 MB, free: 5.887 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.259e-05/0.09849, allocations: 7.938 kB / 493.8 MB, free: 5.879 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.861e-05/0.0985, allocations: 7.578 kB / 493.8 MB, free: 5.867 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.404e-06/0.09851, allocations: 4 kB / 493.8 MB, free: 5.863 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.09851, allocations: 4 kB / 493.8 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.953e-06/0.09852, allocations: 0 / 493.8 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001031/0.09862, allocations: 128.7 kB / 494 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.09862, allocations: 0 / 494 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.701e-05/0.09865, allocations: 7.984 kB / 494 MB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.09865, allocations: 3.938 kB / 494 MB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.923e-06/0.09866, allocations: 0 / 494 MB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.09866, allocations: 0 / 494 MB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.09866, allocations: 0 / 494 MB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001744/0.09883, allocations: 140.5 kB / 494.1 MB, free: 5.512 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.34e-05/0.09885, allocations: 7.922 kB / 494.1 MB, free: 5.504 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.419e-05/0.09886, allocations: 4 kB / 494.1 MB, free: 5.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.172e-05/0.09889, allocations: 4 kB / 494.1 MB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.424e-05/0.09893, allocations: 7.938 kB / 494.1 MB, free: 5.488 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.529e-06/0.09893, allocations: 0 / 494.1 MB, free: 5.488 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.109e-05/0.09898, allocations: 91.27 kB / 494.2 MB, free: 5.398 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.09898, allocations: 0 / 494.2 MB, free: 5.398 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000202/0.09919, allocations: 19.94 kB / 494.2 MB, free: 5.379 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.0007611/0.09995, allocations: 0.7523 MB / 495 MB, free: 4.625 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001818/0.1001, allocations: 134.8 kB / 495.1 MB, free: 4.469 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.1001, allocations: 0 / 495.1 MB, free: 4.469 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.323e-05/0.1002, allocations: 89.11 kB / 495.2 MB, free: 4.363 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001401/0.1004, allocations: 7.984 kB / 495.2 MB, free: 4.355 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001273/0.1016, allocations: 1.34 MB / 496.6 MB, free: 2.891 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.297e-05/0.1017, allocations: 63.53 kB / 496.6 MB, free: 2.809 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.462e-05/0.1017, allocations: 7.984 kB / 496.6 MB, free: 2.801 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.113e-05/0.1017, allocations: 11.44 kB / 496.6 MB, free: 2.789 MB / 350.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1017, allocations: 0 / 496.6 MB, free: 2.789 MB / 350.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeMain.mo:793:13-793: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.0285/0.1302, allocations: 2.291 MB / 498.9 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.61/10.74, allocations: 7.5 kB / 498.9 MB, free: 0.6289 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 sys.exit(0), Time elapsed: 13.113256155047566] Failed to read output from testmodel.py, exit status != 0: 10.859007518272847 10.885302224 10.78485913 Calling exit ...