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.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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007391/0.007391, allocations: 99.34 kB / 15.73 MB, free: 6.047 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.00123/0.00123, allocations: 186.1 kB / 16.67 MB, free: 5.977 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.335/1.335, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.006247/0.006248, allocations: 1.007 MB / 291.5 MB, free: 1.172 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001858/0.001858, allocations: 67.88 kB / 402.5 MB, free: 4.453 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3056/0.3075, allocations: 49.64 MB / 452.1 MB, free: 22.06 MB / 350.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.002743/0.3103, allocations: 1.361 MB / 453.5 MB, free: 21.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001252/0.3116, allocations: 0.7952 MB / 454.3 MB, free: 20.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.465e-05/0.3116, allocations: 0 / 454.3 MB, free: 20.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.407e-05/0.3118, allocations: 3.938 kB / 454.3 MB, free: 20.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002417/0.312, allocations: 18.02 kB / 454.3 MB, free: 20.54 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/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.0002397/0.3123, allocations: 38.83 kB / 454.3 MB, free: 20.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.862e-05/0.3124, allocations: 28.22 kB / 454.3 MB, free: 20.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.548e-05/0.3124, allocations: 3.125 kB / 454.3 MB, free: 20.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.611e-05/0.3125, allocations: 7.156 kB / 454.4 MB, free: 20.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001552/0.3126, allocations: 21.72 kB / 454.4 MB, free: 20.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.215e-05/0.3126, allocations: 0 / 454.4 MB, free: 20.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001023/0.3128, allocations: 32.2 kB / 454.4 MB, free: 20.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.546e-05/0.3128, allocations: 4 kB / 454.4 MB, free: 20.48 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.231e-05/0.3128, allocations: 10.64 kB / 454.4 MB, free: 20.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001687/0.313, allocations: 52.78 kB / 454.5 MB, free: 20.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.313, allocations: 4 kB / 454.5 MB, free: 20.44 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.455e-06/0.313, allocations: 0 / 454.5 MB, free: 20.44 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.961e-06/0.313, allocations: 2.812 kB / 454.5 MB, free: 20.44 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.0004334/0.3135, allocations: 369.5 kB / 454.8 MB, free: 20.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.3135, allocations: 15.97 kB / 454.9 MB, free: 20.04 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.373e-05/0.3136, allocations: 30.75 kB / 454.9 MB, free: 20 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.183e-05/0.3136, allocations: 0.9375 kB / 454.9 MB, free: 20 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001167/0.3137, allocations: 171.5 kB / 455.1 MB, free: 19.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.16e-05/0.3137, allocations: 384 / 455.1 MB, free: 19.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.725e-06/0.3137, allocations: 3.312 kB / 455.1 MB, free: 19.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001378/0.3139, allocations: 39.56 kB / 455.1 MB, free: 19.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.3139, allocations: 3.938 kB / 455.1 MB, free: 19.76 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.899e-06/0.3139, allocations: 0 / 455.1 MB, free: 19.76 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.079e-06/0.3139, allocations: 0 / 455.1 MB, free: 19.76 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.671e-05/0.314, allocations: 15.92 kB / 455.1 MB, free: 19.76 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001487/0.3141, allocations: 167.6 kB / 455.3 MB, free: 19.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.163e-05/0.3142, allocations: 24.8 kB / 455.3 MB, free: 19.53 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.531e-05/0.3143, allocations: 11.34 kB / 455.3 MB, free: 19.52 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.444e-05/0.3143, allocations: 3.156 kB / 455.3 MB, free: 19.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001618/0.3145, allocations: 115.2 kB / 455.4 MB, free: 19.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=2): time 1.202e-06/0.3145, allocations: 0 / 455.4 MB, free: 19.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002515/0.3147, allocations: 90.27 kB / 455.5 MB, free: 19.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.513e-05/0.3148, allocations: 77.11 kB / 455.6 MB, free: 19.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.862e-05/0.3149, allocations: 111.9 kB / 455.7 MB, free: 19.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.248e-05/0.3149, allocations: 25.7 kB / 455.7 MB, free: 19.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.411e-05/0.3149, allocations: 88.08 kB / 455.8 MB, free: 19 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.614e-05/0.3149, allocations: 10 kB / 455.8 MB, free: 19 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.687e-05/0.315, allocations: 12.31 kB / 455.8 MB, free: 18.98 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.164e-05/0.315, allocations: 314.8 kB / 456.1 MB, free: 18.66 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.733e-05/0.3151, allocations: 13.14 kB / 456.2 MB, free: 18.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.545e-05/0.3151, allocations: 14.97 kB / 456.2 MB, free: 18.64 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.788e-05/0.3152, allocations: 83.3 kB / 456.3 MB, free: 18.56 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.3152, allocations: 0 / 456.3 MB, free: 18.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001215/0.3153, allocations: 86.91 kB / 456.3 MB, free: 18.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.707e-05/0.3154, allocations: 35.58 kB / 456.4 MB, free: 18.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.3154, allocations: 0 / 456.4 MB, free: 18.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.617e-05/0.3154, allocations: 2.844 kB / 456.4 MB, free: 18.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.587e-05/0.3155, allocations: 5.938 kB / 456.4 MB, free: 18.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.941e-06/0.3155, allocations: 0 / 456.4 MB, free: 18.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.592e-05/0.3155, allocations: 2.719 kB / 456.4 MB, free: 18.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.474e-06/0.3155, allocations: 2.531 kB / 456.4 MB, free: 18.45 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 7.392e-05/0.3156, allocations: 143.1 kB / 456.5 MB, free: 18.3 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.416e-05/0.3156, allocations: 6.719 kB / 456.5 MB, free: 18.3 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.079e-05/0.3157, allocations: 7.531 kB / 456.5 MB, free: 18.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.3157, allocations: 0 / 456.5 MB, free: 18.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.3157, allocations: 2.688 kB / 456.5 MB, free: 18.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.756e-06/0.3157, allocations: 0 / 456.5 MB, free: 18.29 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.127e-05/0.3158, allocations: 160.9 kB / 456.7 MB, free: 18.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.3158, allocations: 0 / 456.7 MB, free: 18.09 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.774e-05/0.3158, allocations: 2.438 kB / 456.7 MB, free: 18.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.997e-06/0.3158, allocations: 3.938 kB / 456.7 MB, free: 18.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.3158, allocations: 6.266 kB / 456.7 MB, free: 18.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.3159, allocations: 4 kB / 456.7 MB, free: 18.08 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.3159, allocations: 0 / 456.7 MB, free: 18.08 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001321/0.316, allocations: 104 kB / 456.8 MB, free: 17.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.65e-05/0.316, allocations: 87.47 kB / 456.9 MB, free: 17.88 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.638e-05/0.3161, allocations: 0 / 456.9 MB, free: 17.88 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.174e-05/0.3161, allocations: 3.156 kB / 456.9 MB, free: 17.88 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.893e-05/0.3161, allocations: 7.125 kB / 456.9 MB, free: 17.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.692e-06/0.3161, allocations: 11.41 kB / 456.9 MB, free: 17.87 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.443e-05/0.3162, allocations: 85.34 kB / 457 MB, free: 17.79 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3162, allocations: 0 / 457 MB, free: 17.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002528/0.3165, allocations: 23.91 kB / 457 MB, free: 17.78 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.0006423/0.3171, allocations: 0.7388 MB / 457.8 MB, free: 17.11 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001599/0.3173, allocations: 66.88 kB / 457.8 MB, free: 17.05 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3173, allocations: 0 / 457.8 MB, free: 17.05 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.172e-05/0.3173, allocations: 67.73 kB / 457.9 MB, free: 16.98 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001661/0.3175, allocations: 6.969 kB / 457.9 MB, free: 16.98 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001034/0.3186, allocations: 1.219 MB / 459.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001142/0.3187, allocations: 0.6788 MB / 459.8 MB, free: 15.1 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.335e-05/0.3187, allocations: 3.031 kB / 459.8 MB, free: 15.1 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.569e-05/0.3188, allocations: 10.41 kB / 459.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of SimCode: time 7.62e-07/0.3188, allocations: 0 / 459.8 MB, free: 15.09 MB / 350.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeMain.mo:787:13-787:114: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.02294/0.3417, allocations: 1.762 MB / 461.6 MB, free: 14.61 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.598/7.939, allocations: 3.625 kB / 461.6 MB, free: 14.61 MB / 350.1 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/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)