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/Complex 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 KeyWordIO with version 0.11.X (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0009217/0.0009219, allocations: 180.5 kB / 15.45 MB, free: 0.6523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/package.mo): time 0.004974/0.004974, allocations: 0.9964 MB / 17.19 MB, free: 6.082 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.309/1.309, allocations: 223.3 MB / 241.4 MB, free: 4.492 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007972/0.000797, allocations: 95.77 kB / 292.8 MB, free: 1.012 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002928/0.000293, allocations: 8 kB / 354.3 MB, free: 1.941 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2685/0.2688, allocations: 50.63 MB / 404.9 MB, free: 9.98 MB / 286.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.001574/0.2705, allocations: 1.083 MB / 406 MB, free: 9.945 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001047/0.2715, allocations: 0.7713 MB / 406.8 MB, free: 9.633 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.104e-05/0.2716, allocations: 1.188 kB / 406.8 MB, free: 9.633 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.691e-05/0.2716, allocations: 0 / 406.8 MB, free: 9.633 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001413/0.2717, allocations: 6.844 kB / 406.8 MB, free: 9.629 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.0001864/0.2719, allocations: 42.44 kB / 406.8 MB, free: 9.609 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 4.793e-05/0.272, allocations: 15.3 kB / 406.9 MB, free: 9.605 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.176e-05/0.272, allocations: 3.875 kB / 406.9 MB, free: 9.605 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.102e-05/0.2721, allocations: 15.95 kB / 406.9 MB, free: 9.598 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001165/0.2722, allocations: 17.5 kB / 406.9 MB, free: 9.59 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.023e-05/0.2722, allocations: 2.891 kB / 406.9 MB, free: 9.59 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.992e-05/0.2723, allocations: 39.59 kB / 406.9 MB, free: 9.578 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.169e-05/0.2723, allocations: 3.438 kB / 406.9 MB, free: 9.578 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.853e-05/0.2723, allocations: 33.7 kB / 407 MB, free: 9.543 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001164/0.2725, allocations: 50.61 kB / 407 MB, free: 9.527 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.2725, allocations: 1.062 kB / 407 MB, free: 9.527 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2725, allocations: 0 / 407 MB, free: 9.527 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.316e-06/0.2725, allocations: 0 / 407 MB, free: 9.527 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.0003134/0.2728, allocations: 366.4 kB / 407.4 MB, free: 9.133 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.2729, allocations: 9.625 kB / 407.4 MB, free: 9.133 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.045e-05/0.2729, allocations: 32.22 kB / 407.4 MB, free: 9.094 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.326e-05/0.2729, allocations: 6.062 kB / 407.4 MB, free: 9.09 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.721e-05/0.273, allocations: 173.5 kB / 407.6 MB, free: 8.887 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.833e-06/0.273, allocations: 5.406 kB / 407.6 MB, free: 8.883 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.875e-06/0.273, allocations: 384 / 407.6 MB, free: 8.883 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.446e-05/0.2731, allocations: 38.36 kB / 407.6 MB, free: 8.852 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.703e-06/0.2731, allocations: 7.938 kB / 407.6 MB, free: 8.844 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.949e-06/0.2732, allocations: 1 kB / 407.6 MB, free: 8.844 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.516e-06/0.2732, allocations: 0 / 407.6 MB, free: 8.844 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.974e-05/0.2732, allocations: 15.06 kB / 407.7 MB, free: 8.844 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001048/0.2733, allocations: 154.9 kB / 407.8 MB, free: 8.652 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.633e-05/0.2734, allocations: 35.06 kB / 407.8 MB, free: 8.617 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.686e-05/0.2735, allocations: 11.78 kB / 407.9 MB, free: 8.609 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.167e-06/0.2735, allocations: 6.359 kB / 407.9 MB, free: 8.605 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001128/0.2736, allocations: 111.3 kB / 408 MB, free: 8.488 MB / 286.1 MB Notification: Performance of pre-optimization done (n=2): time 1.152e-06/0.2736, allocations: 0 / 408 MB, free: 8.488 MB / 286.1 MB Notification: Performance of matching and sorting (n=2): time 0.000207/0.2738, allocations: 96.41 kB / 408.1 MB, free: 8.414 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.264e-05/0.2738, allocations: 82.55 kB / 408.1 MB, free: 8.316 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.948e-05/0.2739, allocations: 110.2 kB / 408.3 MB, free: 8.211 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 8.506e-06/0.2739, allocations: 27.2 kB / 408.3 MB, free: 8.18 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.695e-05/0.2739, allocations: 82.38 kB / 408.4 MB, free: 8.098 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.896e-05/0.274, allocations: 8.516 kB / 408.4 MB, free: 8.09 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.742e-05/0.274, allocations: 15.41 kB / 408.4 MB, free: 8.07 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 3.735e-05/0.274, allocations: 313.6 kB / 408.7 MB, free: 7.758 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.799e-05/0.2741, allocations: 7.656 kB / 408.7 MB, free: 7.758 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.65e-05/0.2741, allocations: 24.25 kB / 408.7 MB, free: 7.738 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.162e-05/0.2742, allocations: 87.47 kB / 408.8 MB, free: 7.652 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.2742, allocations: 0 / 408.8 MB, free: 7.652 MB / 286.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001188/0.2743, allocations: 88.94 kB / 408.9 MB, free: 7.578 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.789e-05/0.2744, allocations: 36.17 kB / 408.9 MB, free: 7.543 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.2744, allocations: 1.766 kB / 408.9 MB, free: 7.543 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.055e-05/0.2744, allocations: 0 / 408.9 MB, free: 7.543 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.471e-05/0.2745, allocations: 9.906 kB / 408.9 MB, free: 7.539 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.42e-06/0.2745, allocations: 0.75 kB / 408.9 MB, free: 7.539 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.434e-05/0.2745, allocations: 5.328 kB / 408.9 MB, free: 7.539 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.442e-06/0.2745, allocations: 2.828 kB / 408.9 MB, free: 7.539 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.441e-05/0.2746, allocations: 143.1 kB / 409.1 MB, free: 7.387 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.186e-05/0.2746, allocations: 6.609 kB / 409.1 MB, free: 7.383 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.854e-05/0.2746, allocations: 8.094 kB / 409.1 MB, free: 7.375 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.2746, allocations: 4.969 kB / 409.1 MB, free: 7.371 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.2747, allocations: 0 / 409.1 MB, free: 7.371 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.2747, allocations: 1.031 kB / 409.1 MB, free: 7.371 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.443e-05/0.2747, allocations: 155.7 kB / 409.3 MB, free: 7.18 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.2747, allocations: 0 / 409.3 MB, free: 7.18 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.842e-05/0.2748, allocations: 7.297 kB / 409.3 MB, free: 7.18 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.2748, allocations: 5.016 kB / 409.3 MB, free: 7.176 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.663e-06/0.2748, allocations: 1.062 kB / 409.3 MB, free: 7.176 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.2748, allocations: 0 / 409.3 MB, free: 7.176 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.2748, allocations: 1.5 kB / 409.3 MB, free: 7.176 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000127/0.2749, allocations: 117.9 kB / 409.4 MB, free: 7.062 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.038e-05/0.275, allocations: 84.06 kB / 409.5 MB, free: 6.965 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.23e-05/0.275, allocations: 1.094 kB / 409.5 MB, free: 6.965 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.267e-05/0.275, allocations: 7.5 kB / 409.5 MB, free: 6.965 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.032e-05/0.2751, allocations: 1.188 kB / 409.5 MB, free: 6.965 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.45e-06/0.2751, allocations: 9.312 kB / 409.5 MB, free: 6.957 MB / 286.1 MB Notification: Performance of sorting global known variables: time 3.032e-05/0.2751, allocations: 88.75 kB / 409.6 MB, free: 6.879 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2751, allocations: 1.031 kB / 409.6 MB, free: 6.879 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002099/0.2753, allocations: 18.55 kB / 409.6 MB, free: 6.875 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 (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.0005618/0.2759, allocations: 0.7396 MB / 410.3 MB, free: 6.211 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001581/0.2761, allocations: 85.17 kB / 410.4 MB, free: 6.141 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2761, allocations: 0 / 410.4 MB, free: 6.141 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 5.94e-05/0.2761, allocations: 60.47 kB / 410.5 MB, free: 6.078 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001513/0.2763, allocations: 16.94 kB / 410.5 MB, free: 6.07 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001042/0.2774, allocations: 1.219 MB / 411.7 MB, free: 4.891 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001348/0.2775, allocations: 0.6858 MB / 412.4 MB, free: 4.188 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 2.223e-05/0.2775, allocations: 2.109 kB / 412.4 MB, free: 4.188 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.425e-05/0.2776, allocations: 10 kB / 412.4 MB, free: 4.18 MB / 286.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2776, allocations: 0 / 412.4 MB, free: 4.18 MB / 286.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeMain.mo:779:13-779: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.01174/0.2893, allocations: 1.451 MB / 413.9 MB, free: 3.949 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001634/0.2895, allocations: 219.9 kB / 414.1 MB, free: 3.695 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.561/1.85, allocations: 0 / 414.1 MB, free: 3.695 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)