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+X/package.mo", uses=false) Using package KeyWordIO with version 0.11.X (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/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.0008461/0.0008465, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.001001/0.001001, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.277/1.277, allocations: 223.2 MB / 240 MB, free: 5.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/package.mo): time 0.005204/0.005204, allocations: 0.9957 MB / 292.1 MB, free: 1.234 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002762/0.0002764, allocations: 8 kB / 353.3 MB, free: 2.332 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.254/0.2543, allocations: 50.62 MB / 403.9 MB, free: 9.789 MB / 286.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.001409/0.2558, allocations: 1.077 MB / 405 MB, free: 9.75 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009976/0.2568, allocations: 0.7577 MB / 405.8 MB, free: 9.512 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.834e-05/0.2568, allocations: 0 / 405.8 MB, free: 9.512 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.397e-05/0.2569, allocations: 0 / 405.8 MB, free: 9.512 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001541/0.257, allocations: 8.828 kB / 405.8 MB, free: 9.508 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/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.0001906/0.2572, allocations: 35.03 kB / 405.8 MB, free: 9.496 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 5.373e-05/0.2573, allocations: 16.95 kB / 405.8 MB, free: 9.488 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.392e-05/0.2573, allocations: 1.469 kB / 405.8 MB, free: 9.488 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.912e-05/0.2574, allocations: 13.73 kB / 405.8 MB, free: 9.484 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001226/0.2575, allocations: 19.91 kB / 405.8 MB, free: 9.477 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.008e-05/0.2575, allocations: 1.156 kB / 405.8 MB, free: 9.477 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001001/0.2576, allocations: 35.31 kB / 405.9 MB, free: 9.469 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.048e-05/0.2576, allocations: 0.7188 kB / 405.9 MB, free: 9.469 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.02e-05/0.2576, allocations: 27.28 kB / 405.9 MB, free: 9.438 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.12e-05/0.2577, allocations: 35.78 kB / 405.9 MB, free: 9.426 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.2578, allocations: 7.828 kB / 406 MB, free: 9.422 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2578, allocations: 1.281 kB / 406 MB, free: 9.422 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.955e-06/0.2578, allocations: 0 / 406 MB, free: 9.422 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002958/0.2581, allocations: 357.7 kB / 406.3 MB, free: 9.039 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.751e-05/0.2581, allocations: 10.22 kB / 406.3 MB, free: 9.039 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.236e-05/0.2581, allocations: 35.59 kB / 406.3 MB, free: 8.996 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.224e-05/0.2582, allocations: 6.062 kB / 406.4 MB, free: 8.992 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.358e-05/0.2583, allocations: 172.4 kB / 406.5 MB, free: 8.789 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.054e-05/0.2583, allocations: 5.125 kB / 406.5 MB, free: 8.785 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.891e-06/0.2583, allocations: 0 / 406.5 MB, free: 8.785 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001006/0.2584, allocations: 40.97 kB / 406.6 MB, free: 8.75 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.732e-06/0.2584, allocations: 0 / 406.6 MB, free: 8.75 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.178e-06/0.2584, allocations: 1.609 kB / 406.6 MB, free: 8.75 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.2584, allocations: 0 / 406.6 MB, free: 8.75 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.772e-05/0.2585, allocations: 22.33 kB / 406.6 MB, free: 8.742 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001129/0.2586, allocations: 159.8 kB / 406.7 MB, free: 8.547 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.453e-05/0.2587, allocations: 22.62 kB / 406.8 MB, free: 8.523 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.633e-05/0.2587, allocations: 12.88 kB / 406.8 MB, free: 8.516 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.05e-05/0.2587, allocations: 0 / 406.8 MB, free: 8.516 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001194/0.2589, allocations: 116.1 kB / 406.9 MB, free: 8.395 MB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 1.163e-06/0.2589, allocations: 0 / 406.9 MB, free: 8.395 MB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002212/0.2591, allocations: 94.31 kB / 407 MB, free: 8.32 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.292e-05/0.2592, allocations: 79.05 kB / 407.1 MB, free: 8.227 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.018e-05/0.2592, allocations: 107.9 kB / 407.2 MB, free: 8.125 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.216e-05/0.2593, allocations: 31.17 kB / 407.2 MB, free: 8.09 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.864e-05/0.2593, allocations: 87.08 kB / 407.3 MB, free: 8.004 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.121e-05/0.2593, allocations: 0 / 407.3 MB, free: 8.004 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.137e-06/0.2593, allocations: 1.156 kB / 407.3 MB, free: 8.004 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 6.168e-05/0.2594, allocations: 315.3 kB / 407.6 MB, free: 7.691 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.064e-05/0.2594, allocations: 12.53 kB / 407.6 MB, free: 7.688 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.163e-05/0.2595, allocations: 22.88 kB / 407.6 MB, free: 7.668 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.729e-05/0.2595, allocations: 34.31 kB / 407.7 MB, free: 7.637 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.2595, allocations: 1.031 kB / 407.7 MB, free: 7.637 MB / 286.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000131/0.2597, allocations: 88.83 kB / 407.7 MB, free: 7.562 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.409e-05/0.2597, allocations: 35.98 kB / 407.8 MB, free: 7.527 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.864e-06/0.2597, allocations: 5.906 kB / 407.8 MB, free: 7.523 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.2598, allocations: 1.188 kB / 407.8 MB, free: 7.523 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.47e-05/0.2598, allocations: 5.438 kB / 407.8 MB, free: 7.523 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.03e-06/0.2598, allocations: 0 / 407.8 MB, free: 7.523 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.565e-05/0.2599, allocations: 6.016 kB / 407.8 MB, free: 7.523 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.464e-06/0.2599, allocations: 1.219 kB / 407.8 MB, free: 7.523 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.504e-05/0.26, allocations: 143.5 kB / 407.9 MB, free: 7.371 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.159e-05/0.26, allocations: 2.938 kB / 407.9 MB, free: 7.371 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.189e-05/0.26, allocations: 13.61 kB / 408 MB, free: 7.355 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.26, allocations: 1 kB / 408 MB, free: 7.355 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.229e-06/0.26, allocations: 0 / 408 MB, free: 7.355 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.2601, allocations: 5.859 kB / 408 MB, free: 7.352 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.365e-05/0.2601, allocations: 159.1 kB / 408.1 MB, free: 7.16 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.2601, allocations: 0 / 408.1 MB, free: 7.16 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.904e-05/0.2602, allocations: 9.391 kB / 408.1 MB, free: 7.156 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.917e-06/0.2602, allocations: 1.688 kB / 408.1 MB, free: 7.156 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.428e-06/0.2602, allocations: 1.156 kB / 408.1 MB, free: 7.156 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.2602, allocations: 3.953 kB / 408.1 MB, free: 7.152 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.2602, allocations: 4.797 kB / 408.1 MB, free: 7.148 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000156/0.2604, allocations: 103.8 kB / 408.2 MB, free: 7.051 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.793e-05/0.2604, allocations: 87.48 kB / 408.3 MB, free: 6.949 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.687e-05/0.2605, allocations: 1.75 kB / 408.3 MB, free: 6.949 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.414e-05/0.2605, allocations: 5.828 kB / 408.3 MB, free: 6.949 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.439e-05/0.2605, allocations: 13.69 kB / 408.3 MB, free: 6.938 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.853e-06/0.2606, allocations: 3.062 kB / 408.4 MB, free: 6.938 MB / 286.1 MB Notification: Performance of sorting global known variables: time 3.859e-05/0.2606, allocations: 87.72 kB / 408.4 MB, free: 6.859 MB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2606, allocations: 0 / 408.4 MB, free: 6.859 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002119/0.2608, allocations: 16.75 kB / 408.5 MB, free: 6.855 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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006382/0.2615, allocations: 0.7418 MB / 409.2 MB, free: 6.195 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001702/0.2617, allocations: 80.69 kB / 409.3 MB, free: 6.125 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.2617, allocations: 0 / 409.3 MB, free: 6.125 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 5.334e-05/0.2617, allocations: 67.33 kB / 409.3 MB, free: 6.059 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001406/0.2619, allocations: 10.86 kB / 409.4 MB, free: 6.055 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005825/0.2625, allocations: 403.9 kB / 409.7 MB, free: 5.703 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001016/0.2626, allocations: 0.6783 MB / 410.4 MB, free: 5.008 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 1.833e-05/0.2626, allocations: 1.094 kB / 410.4 MB, free: 5.008 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.694e-05/0.2626, allocations: 14.94 kB / 410.4 MB, free: 4.996 MB / 286.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2626, allocations: 0 / 410.4 MB, free: 4.996 MB / 286.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeMain.mo:717:13-717:124:writable] Error: Internal error Failed to copy path /home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/../output.txt to KeyWordIO_KeyWordIO_Examples_WriteRealVariable.fmutmp/resources//home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/.. Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01243/0.2751, allocations: 1.426 MB / 411.9 MB, free: 4.777 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001356/0.2752, allocations: 200.3 kB / 412.1 MB, free: 4.543 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.634/1.91, allocations: 4 kB / 412.1 MB, free: 4.539 MB / 286.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/linux/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) Environment - environmentSimulation: