Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr KeyWordIO_KeyWordIO.Examples.WriteRealVariables.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.WriteRealVariables,fileNamePrefix="KeyWordIO_KeyWordIO_Examples_WriteRealVariables",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(KeyWordIO.Examples.WriteRealVariables,fileNamePrefix="KeyWordIO_KeyWordIO_Examples_WriteRealVariables",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.0007874/0.0007875, 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.0009847/0.0009847, 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.302/1.302, allocations: 223.2 MB / 240 MB, free: 5.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/package.mo): time 0.005533/0.005533, allocations: 1.004 MB / 292.1 MB, free: 1.238 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002847/0.0002847, allocations: 12 kB / 353.3 MB, free: 2.316 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.259/0.2593, allocations: 50.63 MB / 403.9 MB, free: 9.805 MB / 286.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.001361/0.2607, allocations: 1.085 MB / 405 MB, free: 9.77 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001134/0.2619, allocations: 0.7651 MB / 405.8 MB, free: 9.512 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.069e-05/0.2619, allocations: 0.8438 kB / 405.8 MB, free: 9.512 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.495e-05/0.262, allocations: 3.938 kB / 405.8 MB, free: 9.508 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001714/0.2621, allocations: 3.547 kB / 405.8 MB, free: 9.508 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/writeRealVariables.mo:2:1-21:23:writable] Warning: Pure function ‘KeyWordIO.writeRealVariables‘ contains a call to impure function ‘Modelica.Utilities.Files.removeFile‘. Notification: Performance of NFTyping.typeClassSections: time 0.000266/0.2624, allocations: 40.8 kB / 405.8 MB, free: 9.492 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 6.298e-05/0.2625, allocations: 26.44 kB / 405.8 MB, free: 9.48 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.825e-05/0.2625, allocations: 2.969 kB / 405.8 MB, free: 9.48 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.592e-05/0.2626, allocations: 15.5 kB / 405.9 MB, free: 9.473 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001217/0.2627, allocations: 13 kB / 405.9 MB, free: 9.469 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.167e-05/0.2627, allocations: 2.844 kB / 405.9 MB, free: 9.469 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001078/0.2628, allocations: 44.5 kB / 405.9 MB, free: 9.457 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.116e-05/0.2628, allocations: 2.594 kB / 405.9 MB, free: 9.457 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.532e-05/0.2629, allocations: 35.48 kB / 406 MB, free: 9.418 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.504e-05/0.263, allocations: 44.05 kB / 406 MB, free: 9.406 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.263, allocations: 0 / 406 MB, free: 9.406 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.263, allocations: 1.094 kB / 406 MB, free: 9.406 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.176e-06/0.263, allocations: 0 / 406 MB, free: 9.406 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0003037/0.2633, allocations: 367.6 kB / 406.4 MB, free: 9.016 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.388e-05/0.2634, allocations: 10.2 kB / 406.4 MB, free: 9.016 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.412e-05/0.2634, allocations: 36.05 kB / 406.4 MB, free: 8.973 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.322e-05/0.2634, allocations: 3 kB / 406.4 MB, free: 8.973 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.399e-05/0.2635, allocations: 169.8 kB / 406.6 MB, free: 8.773 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.012e-05/0.2635, allocations: 1.406 kB / 406.6 MB, free: 8.773 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.197e-06/0.2635, allocations: 2.719 kB / 406.6 MB, free: 8.773 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001125/0.2637, allocations: 50.19 kB / 406.6 MB, free: 8.734 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.2637, allocations: 0 / 406.6 MB, free: 8.734 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.965e-06/0.2637, allocations: 1.125 kB / 406.6 MB, free: 8.734 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.2637, allocations: 5.125 kB / 406.6 MB, free: 8.73 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.025e-05/0.2638, allocations: 22.41 kB / 406.7 MB, free: 8.727 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001044/0.2639, allocations: 160.2 kB / 406.8 MB, free: 8.531 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.737e-05/0.264, allocations: 33.41 kB / 406.8 MB, free: 8.504 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.577e-05/0.264, allocations: 20.08 kB / 406.9 MB, free: 8.492 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.412e-06/0.264, allocations: 1.406 kB / 406.9 MB, free: 8.492 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001349/0.2642, allocations: 159.2 kB / 407 MB, free: 8.328 MB / 286.1 MB Notification: Performance of pre-optimization done (n=5): time 1.263e-06/0.2642, allocations: 0 / 407 MB, free: 8.328 MB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002657/0.2644, allocations: 126.8 kB / 407.1 MB, free: 8.254 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.488e-05/0.2645, allocations: 135.9 kB / 407.3 MB, free: 8.094 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.049e-05/0.2646, allocations: 110.1 kB / 407.4 MB, free: 7.988 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 7.283e-06/0.2646, allocations: 27.36 kB / 407.4 MB, free: 7.957 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.796e-05/0.2646, allocations: 82.48 kB / 407.5 MB, free: 7.875 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.086e-05/0.2646, allocations: 19.28 kB / 407.5 MB, free: 7.863 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.866e-06/0.2646, allocations: 0 / 407.5 MB, free: 7.863 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 4.021e-05/0.2647, allocations: 318.5 kB / 407.8 MB, free: 7.547 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.179e-05/0.2647, allocations: 11.2 kB / 407.8 MB, free: 7.547 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.474e-05/0.2648, allocations: 35.42 kB / 407.9 MB, free: 7.52 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.956e-05/0.2648, allocations: 43.22 kB / 407.9 MB, free: 7.484 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.2649, allocations: 0 / 407.9 MB, free: 7.484 MB / 286.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001432/0.265, allocations: 104.8 kB / 408 MB, free: 7.41 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.699e-05/0.265, allocations: 37.34 kB / 408 MB, free: 7.375 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.937e-06/0.265, allocations: 5.094 kB / 408.1 MB, free: 7.371 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.193e-05/0.2651, allocations: 1.188 kB / 408.1 MB, free: 7.371 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.374e-05/0.2651, allocations: 10.98 kB / 408.1 MB, free: 7.367 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.2651, allocations: 1.094 kB / 408.1 MB, free: 7.367 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.766e-05/0.2652, allocations: 6 kB / 408.1 MB, free: 7.367 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.634e-06/0.2652, allocations: 2.438 kB / 408.1 MB, free: 7.367 MB / 286.1 MB Warning: Assuming fixed start value for the following 1 variables: y_end:DISCRETE(start = 0.0 fixed = true ) "End value of step.y right after switching" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.y_end,y_end,$whenCondition1,$whenCondition2,y_start) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 3 * 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 0.000101/0.2653, allocations: 149.3 kB / 408.2 MB, free: 7.215 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.4e-05/0.2653, allocations: 11.73 kB / 408.2 MB, free: 7.207 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.775e-05/0.2654, allocations: 10.48 kB / 408.2 MB, free: 7.195 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.2654, allocations: 4.969 kB / 408.2 MB, free: 7.191 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.2654, allocations: 0.5156 kB / 408.2 MB, free: 7.191 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.2654, allocations: 1 kB / 408.2 MB, free: 7.191 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.439e-05/0.2655, allocations: 165.5 kB / 408.4 MB, free: 6.996 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.2655, allocations: 0 / 408.4 MB, free: 6.996 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.919e-05/0.2655, allocations: 5.734 kB / 408.4 MB, free: 6.996 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.2655, allocations: 0 / 408.4 MB, free: 6.996 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.008e-05/0.2655, allocations: 2.422 kB / 408.4 MB, free: 6.996 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.2655, allocations: 8.984 kB / 408.4 MB, free: 6.988 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.2655, allocations: 0.7969 kB / 408.4 MB, free: 6.988 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001859/0.2657, allocations: 155.5 kB / 408.6 MB, free: 6.871 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.812e-05/0.2657, allocations: 82.8 kB / 408.7 MB, free: 6.773 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.787e-05/0.2658, allocations: 2.625 kB / 408.7 MB, free: 6.773 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.659e-05/0.2658, allocations: 10.88 kB / 408.7 MB, free: 6.77 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.284e-05/0.2659, allocations: 14.41 kB / 408.7 MB, free: 6.758 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.336e-05/0.2659, allocations: 3.938 kB / 408.7 MB, free: 6.758 MB / 286.1 MB Notification: Performance of sorting global known variables: time 2.624e-05/0.2659, allocations: 83.16 kB / 408.8 MB, free: 6.684 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2659, allocations: 0 / 408.8 MB, free: 6.684 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002116/0.2661, allocations: 22.64 kB / 408.8 MB, free: 6.68 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: 4 ($whenCondition1,$whenCondition2,y_start,y_end) * Number of discrete states: 4 ($whenCondition2,y_end,$whenCondition1,y_start) * 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.0005573/0.2667, allocations: 0.7904 MB / 409.6 MB, free: 6 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001662/0.2669, allocations: 102 kB / 409.7 MB, free: 5.926 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.2669, allocations: 0 / 409.7 MB, free: 5.926 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 8.331e-05/0.267, allocations: 94.59 kB / 409.8 MB, free: 5.848 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001373/0.2671, allocations: 14.16 kB / 409.8 MB, free: 5.84 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006031/0.2677, allocations: 463.2 kB / 410.2 MB, free: 5.469 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.107e-05/0.2678, allocations: 0.6793 MB / 410.9 MB, free: 4.773 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 1.781e-05/0.2678, allocations: 3.781 kB / 410.9 MB, free: 4.773 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.482e-05/0.2679, allocations: 14.19 kB / 410.9 MB, free: 4.762 MB / 286.1 MB Notification: Performance of SimCode: time 2.7e-07/0.2679, allocations: 0 / 410.9 MB, free: 4.762 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_WriteRealVariables.fmutmp/resources//home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/.. Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01195/0.2798, allocations: 1.618 MB / 412.6 MB, free: 4.52 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001222/0.28, allocations: 207.8 kB / 412.8 MB, free: 4.281 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.609/1.889, allocations: 0 / 412.8 MB, free: 4.281 MB / 286.1 MB (rm -f KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe ; mkfifo KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe ; head -c 1048576 < KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe >> ../files/KeyWordIO_KeyWordIO.Examples.WriteRealVariables.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_KeyWordIO_KeyWordIO_Examples_WriteRealVariables_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 KeyWordIO_KeyWordIO_Examples_WriteRealVariables.fmu > KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe 2>&1) Environment - environmentSimulation: