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.0009417/0.0009417, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001063/0.001063, allocations: 177.3 kB / 15.94 MB, free: 228 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.266/1.266, allocations: 223.2 MB / 239.9 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/package.mo): time 0.005369/0.005369, allocations: 0.989 MB / 292 MB, free: 1.172 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003186/0.0003186, allocations: 8 kB / 353.2 MB, free: 2.359 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2884/0.2887, allocations: 50.64 MB / 403.8 MB, free: 9.812 MB / 286.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.001393/0.2902, allocations: 1.077 MB / 404.9 MB, free: 9.777 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009829/0.2912, allocations: 0.7687 MB / 405.7 MB, free: 9.523 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.22e-05/0.2912, allocations: 1.094 kB / 405.7 MB, free: 9.523 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.239e-05/0.2912, allocations: 0 / 405.7 MB, free: 9.523 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001306/0.2913, allocations: 12.11 kB / 405.7 MB, free: 9.52 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.0002002/0.2916, allocations: 37.23 kB / 405.7 MB, free: 9.504 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 5.051e-05/0.2916, allocations: 15.58 kB / 405.7 MB, free: 9.5 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.11e-05/0.2917, allocations: 3.703 kB / 405.7 MB, free: 9.5 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3e-05/0.2917, allocations: 13.16 kB / 405.7 MB, free: 9.496 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001011/0.2918, allocations: 16.94 kB / 405.8 MB, free: 9.492 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.01e-05/0.2918, allocations: 1.469 kB / 405.8 MB, free: 9.492 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.852e-05/0.2919, allocations: 31.81 kB / 405.8 MB, free: 9.484 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.079e-05/0.2919, allocations: 7.406 kB / 405.8 MB, free: 9.48 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 2.425e-05/0.292, allocations: 32.42 kB / 405.8 MB, free: 9.445 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.56e-05/0.2921, allocations: 39.97 kB / 405.9 MB, free: 9.438 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.2921, allocations: 0 / 405.9 MB, free: 9.438 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2921, allocations: 0.5938 kB / 405.9 MB, free: 9.438 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.156e-06/0.2921, allocations: 4 kB / 405.9 MB, free: 9.434 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.0003212/0.2924, allocations: 370.2 kB / 406.2 MB, free: 9.043 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.2925, allocations: 8.938 kB / 406.2 MB, free: 9.043 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.252e-05/0.2925, allocations: 35.86 kB / 406.3 MB, free: 9 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.368e-05/0.2925, allocations: 2.531 kB / 406.3 MB, free: 9 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.75e-05/0.2926, allocations: 166.3 kB / 406.4 MB, free: 8.805 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.424e-06/0.2926, allocations: 4.531 kB / 406.5 MB, free: 8.801 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.075e-05/0.2926, allocations: 2 kB / 406.5 MB, free: 8.801 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001232/0.2928, allocations: 55.44 kB / 406.5 MB, free: 8.758 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.651e-06/0.2928, allocations: 0 / 406.5 MB, free: 8.758 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.108e-06/0.2928, allocations: 1.125 kB / 406.5 MB, free: 8.758 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.2928, allocations: 1.078 kB / 406.5 MB, free: 8.758 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.492e-05/0.2929, allocations: 18.81 kB / 406.5 MB, free: 8.758 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001075/0.293, allocations: 156.1 kB / 406.7 MB, free: 8.566 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.095e-05/0.2931, allocations: 39.94 kB / 406.7 MB, free: 8.531 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.674e-06/0.2931, allocations: 1.625 kB / 406.7 MB, free: 8.531 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001676/0.2933, allocations: 153.4 kB / 406.9 MB, free: 8.375 MB / 286.1 MB Notification: Performance of pre-optimization done (n=5): time 1.823e-06/0.2933, allocations: 0 / 406.9 MB, free: 8.375 MB / 286.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003037/0.2936, allocations: 215 kB / 407.1 MB, free: 8.195 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.873e-05/0.2936, allocations: 132 kB / 407.2 MB, free: 8.039 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.921e-05/0.2937, allocations: 116.2 kB / 407.3 MB, free: 7.93 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 8.245e-06/0.2937, allocations: 26.7 kB / 407.3 MB, free: 7.898 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.95e-05/0.2937, allocations: 85.89 kB / 407.4 MB, free: 7.812 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.101e-05/0.2938, allocations: 11.44 kB / 407.4 MB, free: 7.805 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.677e-06/0.2938, allocations: 1 kB / 407.4 MB, free: 7.805 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 4.368e-05/0.2938, allocations: 321.4 kB / 407.8 MB, free: 7.484 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.367e-05/0.2939, allocations: 10.33 kB / 407.8 MB, free: 7.484 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.465e-05/0.2939, allocations: 27.14 kB / 407.8 MB, free: 7.465 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.167e-05/0.294, allocations: 47.45 kB / 407.8 MB, free: 7.426 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-06/0.294, allocations: 0 / 407.8 MB, free: 7.426 MB / 286.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001429/0.2941, allocations: 109.1 kB / 407.9 MB, free: 7.348 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.514e-05/0.2942, allocations: 33.19 kB / 408 MB, free: 7.316 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.2942, allocations: 7.922 kB / 408 MB, free: 7.312 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.104e-05/0.2942, allocations: 0.75 kB / 408 MB, free: 7.312 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.548e-05/0.2943, allocations: 6.625 kB / 408 MB, free: 7.312 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.2943, allocations: 0.75 kB / 408 MB, free: 7.312 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.995e-05/0.2943, allocations: 7.281 kB / 408 MB, free: 7.312 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.726e-06/0.2943, allocations: 13.47 kB / 408 MB, free: 7.301 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.0001059/0.2945, allocations: 145.3 kB / 408.2 MB, free: 7.152 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.334e-05/0.2945, allocations: 8.281 kB / 408.2 MB, free: 7.148 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.914e-05/0.2945, allocations: 9.047 kB / 408.2 MB, free: 7.137 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.2945, allocations: 5.484 kB / 408.2 MB, free: 7.133 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.2945, allocations: 0 / 408.2 MB, free: 7.133 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.806e-06/0.2945, allocations: 0.5156 kB / 408.2 MB, free: 7.133 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.768e-05/0.2946, allocations: 162.3 kB / 408.3 MB, free: 6.941 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.2946, allocations: 6.047 kB / 408.3 MB, free: 6.938 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.856e-05/0.2946, allocations: 4.141 kB / 408.3 MB, free: 6.938 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.2947, allocations: 4.469 kB / 408.4 MB, free: 6.934 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.114e-05/0.2947, allocations: 3 kB / 408.4 MB, free: 6.934 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.2947, allocations: 0 / 408.4 MB, free: 6.934 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.2947, allocations: 6.641 kB / 408.4 MB, free: 6.93 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001955/0.2949, allocations: 150.5 kB / 408.5 MB, free: 6.816 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2e-05/0.2949, allocations: 82.2 kB / 408.6 MB, free: 6.719 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.979e-05/0.2949, allocations: 7.844 kB / 408.6 MB, free: 6.715 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.795e-05/0.295, allocations: 10.55 kB / 408.6 MB, free: 6.711 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.092e-05/0.295, allocations: 6.281 kB / 408.6 MB, free: 6.707 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.48e-05/0.295, allocations: 4.078 kB / 408.6 MB, free: 6.707 MB / 286.1 MB Notification: Performance of sorting global known variables: time 3.037e-05/0.2951, allocations: 87.94 kB / 408.7 MB, free: 6.629 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2951, allocations: 0 / 408.7 MB, free: 6.629 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002169/0.2953, allocations: 18.8 kB / 408.7 MB, free: 6.629 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.0006079/0.2959, allocations: 0.7938 MB / 409.5 MB, free: 5.949 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0001708/0.2961, allocations: 106.4 kB / 409.6 MB, free: 5.871 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.2961, allocations: 1.25 kB / 409.6 MB, free: 5.871 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 8.568e-05/0.2962, allocations: 97.09 kB / 409.7 MB, free: 5.789 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.285e-05/0.2963, allocations: 7.609 kB / 409.7 MB, free: 5.785 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006638/0.297, allocations: 0.5916 MB / 410.3 MB, free: 5.266 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001032/0.2971, allocations: 0.6835 MB / 411 MB, free: 4.57 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 1.892e-05/0.2971, allocations: 6.594 kB / 411 MB, free: 4.566 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.102e-05/0.2972, allocations: 15.22 kB / 411 MB, free: 4.555 MB / 286.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2972, allocations: 0 / 411 MB, free: 4.555 MB / 286.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeMain.mo:719:13-719: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.01385/0.311, allocations: 1.6 MB / 412.6 MB, free: 4.32 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001349/0.3112, allocations: 207.4 kB / 412.8 MB, free: 4.078 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.567/1.878, allocations: 0 / 412.8 MB, free: 4.078 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: