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.001249/0.001249, allocations: 116.8 kB / 17.17 MB, free: 6 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.001326/0.001326, allocations: 214.3 kB / 20.13 MB, free: 3.055 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.409/1.409, allocations: 230.6 MB / 253.5 MB, free: 15.07 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.006423/0.006423, allocations: 1.024 MB / 310.6 MB, free: 3.238 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.001936/0.001936, allocations: 68.52 kB / 431.3 MB, free: 40.98 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08042/0.08236, allocations: 53.53 MB / 484.8 MB, free: 18.41 MB / 350.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.002226/0.08458, allocations: 1.372 MB / 486.2 MB, free: 17.36 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009507/0.08554, allocations: 0.8112 MB / 487 MB, free: 16.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.528e-05/0.08557, allocations: 1.156 kB / 487 MB, free: 16.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.73e-05/0.0856, allocations: 3.938 kB / 487 MB, free: 16.72 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001768/0.08577, allocations: 10.16 kB / 487 MB, free: 16.71 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.0001803/0.08595, allocations: 37.05 kB / 487 MB, free: 16.69 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.39e-05/0.08602, allocations: 27.67 kB / 487.1 MB, free: 16.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.665e-05/0.08607, allocations: 10.61 kB / 487.1 MB, free: 16.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.889e-05/0.08609, allocations: 7.688 kB / 487.1 MB, free: 16.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001155/0.08621, allocations: 13.42 kB / 487.1 MB, free: 16.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.012e-05/0.08622, allocations: 1.25 kB / 487.1 MB, free: 16.65 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.228e-05/0.0863, allocations: 41.23 kB / 487.1 MB, free: 16.63 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.178e-05/0.08631, allocations: 0 / 487.1 MB, free: 16.63 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.433e-05/0.08634, allocations: 11.16 kB / 487.1 MB, free: 16.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001195/0.08646, allocations: 49.5 kB / 487.2 MB, free: 16.6 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.08646, allocations: 5.094 kB / 487.2 MB, free: 16.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.08646, allocations: 0 / 487.2 MB, free: 16.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.81e-06/0.08647, allocations: 7.938 kB / 487.2 MB, free: 16.59 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.0003478/0.08682, allocations: 371 kB / 487.6 MB, free: 16.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.08685, allocations: 10.47 kB / 487.6 MB, free: 16.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.119e-05/0.08686, allocations: 192 / 487.6 MB, free: 16.18 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.606e-05/0.08688, allocations: 31.94 kB / 487.6 MB, free: 16.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.601e-05/0.08691, allocations: 6.047 kB / 487.6 MB, free: 16.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.276e-05/0.087, allocations: 171.9 kB / 487.8 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.065e-05/0.08701, allocations: 4.375 kB / 487.8 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.783e-06/0.08702, allocations: 1.375 kB / 487.8 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.972e-05/0.08712, allocations: 44.09 kB / 487.8 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.694e-06/0.08712, allocations: 3.984 kB / 487.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.045e-06/0.08713, allocations: 1.375 kB / 487.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.326e-06/0.08713, allocations: 0 / 487.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.49e-05/0.08719, allocations: 15.77 kB / 487.8 MB, free: 15.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001135/0.0873, allocations: 153.9 kB / 488 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.575e-05/0.08736, allocations: 35.25 kB / 488 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.35e-05/0.08739, allocations: 9.266 kB / 488 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.118e-05/0.0874, allocations: 0 / 488 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001169/0.08752, allocations: 116.5 kB / 488.2 MB, free: 15.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.232e-06/0.08752, allocations: 0 / 488.2 MB, free: 15.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002066/0.08773, allocations: 87.36 kB / 488.2 MB, free: 15.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.076e-05/0.08776, allocations: 78.7 kB / 488.3 MB, free: 15.33 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.277e-05/0.08781, allocations: 111.4 kB / 488.4 MB, free: 15.22 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.883e-06/0.08782, allocations: 25.7 kB / 488.4 MB, free: 15.19 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.712e-05/0.08784, allocations: 81.58 kB / 488.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.004e-05/0.08786, allocations: 13.28 kB / 488.5 MB, free: 15.1 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.326e-05/0.08788, allocations: 12.31 kB / 488.6 MB, free: 15.08 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.665e-05/0.08792, allocations: 311.8 kB / 488.9 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.614e-05/0.08795, allocations: 12.16 kB / 488.9 MB, free: 14.76 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.42e-05/0.08799, allocations: 19.67 kB / 488.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.208e-05/0.08806, allocations: 84.14 kB / 489 MB, free: 14.65 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.08806, allocations: 0 / 489 MB, free: 14.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001063/0.08817, allocations: 85.05 kB / 489.1 MB, free: 14.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.34e-05/0.08819, allocations: 35.09 kB / 489.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.08819, allocations: 1.125 kB / 489.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.08821, allocations: 0 / 489.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.105e-05/0.08826, allocations: 4.25 kB / 489.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.508e-06/0.08826, allocations: 0 / 489.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.128e-05/0.08829, allocations: 6.938 kB / 489.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.32e-06/0.0883, allocations: 1.125 kB / 489.1 MB, free: 14.54 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 5.297e-05/0.08835, allocations: 139.1 kB / 489.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.24e-05/0.08836, allocations: 10.28 kB / 489.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.666e-05/0.08838, allocations: 12.56 kB / 489.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.08838, allocations: 4 kB / 489.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.08839, allocations: 1.469 kB / 489.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.514e-06/0.08839, allocations: 0 / 489.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.851e-05/0.08845, allocations: 163 kB / 489.4 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.08845, allocations: 0 / 489.4 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.51e-05/0.08847, allocations: 6.688 kB / 489.4 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.08847, allocations: 1.438 kB / 489.4 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.931e-06/0.08848, allocations: 0 / 489.4 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.08848, allocations: 4 kB / 489.4 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.08848, allocations: 1.344 kB / 489.4 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001216/0.0886, allocations: 110.4 kB / 489.5 MB, free: 14.03 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.779e-05/0.08862, allocations: 82.11 kB / 489.6 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.268e-05/0.08863, allocations: 1.156 kB / 489.6 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.949e-05/0.08866, allocations: 2.5 kB / 489.6 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.534e-05/0.0887, allocations: 5.125 kB / 489.6 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.733e-06/0.08871, allocations: 6.266 kB / 489.6 MB, free: 13.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.572e-05/0.08873, allocations: 85.16 kB / 489.7 MB, free: 13.85 MB / 350.1 MB Notification: Performance of sort global known variables: time 5e-08/0.08873, allocations: 0 / 489.7 MB, free: 13.85 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000201/0.08893, allocations: 16.59 kB / 489.7 MB, free: 13.84 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.0005337/0.08947, allocations: 0.7256 MB / 490.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001406/0.08961, allocations: 84.59 kB / 490.5 MB, free: 13.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.08961, allocations: 0 / 490.5 MB, free: 13.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.659e-05/0.08966, allocations: 58.78 kB / 490.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001338/0.08979, allocations: 7.875 kB / 490.6 MB, free: 13.02 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008039/0.09059, allocations: 1.209 MB / 491.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.844e-05/0.09068, allocations: 0.6781 MB / 492.5 MB, free: 11.12 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.913e-05/0.0907, allocations: 0.9688 kB / 492.5 MB, free: 11.12 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.62e-05/0.09073, allocations: 14.5 kB / 492.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.09073, allocations: 0 / 492.5 MB, free: 11.11 MB / 350.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeMain.mo:790:13-790:114:writable] Error: Internal error Failed to copy path /home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/../output.txt to KeyWordIO_KeyWordIO_Examples_WriteRealVariable.fmutmp/resources//home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/.. Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01732/0.108, allocations: 1.771 MB / 494.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.08/8.188, allocations: 7.438 kB / 494.3 MB, free: 10.1 MB / 350.1 MB " [Timeout remaining time 652] (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: 10.661130736989435] Failed to read output from testmodel.py, exit status != 0: 8.469580653996672 8.315756804 8.227210466 Calling exit ...