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-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.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.001046/0.001046, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001042/0.001042, allocations: 196.6 kB / 16.53 MB, free: 6.664 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.302/1.302, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.006275/0.006275, allocations: 0.9983 MB / 291.4 MB, free: 1.258 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00139/0.00139, allocations: 67.88 kB / 352.2 MB, free: 6.77 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07856/0.07997, allocations: 49.64 MB / 401.8 MB, free: 5.082 MB / 334.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.002375/0.08238, allocations: 1.365 MB / 403.2 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001113/0.08352, allocations: 0.8087 MB / 404 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.801e-05/0.08356, allocations: 0 / 404 MB, free: 2.895 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.326e-05/0.08359, allocations: 3.938 kB / 404 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001529/0.08376, allocations: 7.938 kB / 404 MB, free: 2.883 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/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.0002208/0.08399, allocations: 51.88 kB / 404 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 7.394e-05/0.08407, allocations: 35.86 kB / 404.1 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.237e-05/0.08411, allocations: 0 / 404.1 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.706e-05/0.08414, allocations: 7.984 kB / 404.1 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001088/0.08426, allocations: 15.94 kB / 404.1 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.678e-06/0.08427, allocations: 0 / 404.1 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001132/0.08439, allocations: 47.89 kB / 404.1 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.179e-05/0.08441, allocations: 3.938 kB / 404.2 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.633e-05/0.08445, allocations: 19.92 kB / 404.2 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001216/0.08458, allocations: 55.86 kB / 404.2 MB, free: 2.648 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.08459, allocations: 0 / 404.2 MB, free: 2.648 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.08459, allocations: 0 / 404.2 MB, free: 2.648 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.647e-06/0.0846, allocations: 4 kB / 404.2 MB, free: 2.645 MB / 334.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.0004078/0.08502, allocations: 381.3 kB / 404.6 MB, free: 2.215 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.162e-05/0.08505, allocations: 8.031 kB / 404.6 MB, free: 2.207 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.967e-05/0.08509, allocations: 38.75 kB / 404.6 MB, free: 2.16 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.437e-05/0.08512, allocations: 0.9375 kB / 404.6 MB, free: 2.16 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001166/0.08524, allocations: 172.3 kB / 404.8 MB, free: 1.953 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.005e-05/0.08526, allocations: 384 / 404.8 MB, free: 1.953 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.142e-05/0.08527, allocations: 4.375 kB / 404.8 MB, free: 1.949 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000115/0.08539, allocations: 50.19 kB / 404.9 MB, free: 1.895 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.564e-06/0.08541, allocations: 3.938 kB / 404.9 MB, free: 1.891 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.033e-06/0.08542, allocations: 0 / 404.9 MB, free: 1.891 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.607e-06/0.08543, allocations: 4 kB / 404.9 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.864e-05/0.0855, allocations: 11.98 kB / 404.9 MB, free: 1.875 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001384/0.08565, allocations: 157.7 kB / 405 MB, free: 1.672 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.342e-05/0.08573, allocations: 34.56 kB / 405.1 MB, free: 1.629 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.958e-05/0.08579, allocations: 20.89 kB / 405.1 MB, free: 1.605 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.095e-06/0.0858, allocations: 3.938 kB / 405.1 MB, free: 1.602 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001845/0.08599, allocations: 148.4 kB / 405.2 MB, free: 1.426 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 2.595e-06/0.086, allocations: 0 / 405.2 MB, free: 1.426 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002828/0.08629, allocations: 131.3 kB / 405.4 MB, free: 1.285 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.531e-05/0.08635, allocations: 132.5 kB / 405.5 MB, free: 1.125 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.94e-05/0.08644, allocations: 125.7 kB / 405.6 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.285e-05/0.08646, allocations: 25.7 kB / 405.7 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.824e-05/0.08649, allocations: 80.14 kB / 405.7 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.339e-05/0.08652, allocations: 19.8 kB / 405.7 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.972e-05/0.08656, allocations: 13.72 kB / 405.8 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.8e-05/0.08666, allocations: 314.8 kB / 406.1 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.673e-05/0.08671, allocations: 15.98 kB / 406.1 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.556e-05/0.08676, allocations: 25.7 kB / 406.1 MB, free: 488 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001412/0.08691, allocations: 101.1 kB / 406.2 MB, free: 368 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-06/0.08692, allocations: 0 / 406.2 MB, free: 368 kB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001605/0.08709, allocations: 103.3 kB / 406.3 MB, free: 252 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.002e-05/0.08713, allocations: 37.64 kB / 406.3 MB, free: 208 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-06/0.08715, allocations: 4.062 kB / 406.4 MB, free: 204 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.08716, allocations: 3.984 kB / 406.4 MB, free: 200 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.694e-05/0.08722, allocations: 4 kB / 406.4 MB, free: 196 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.228e-06/0.08723, allocations: 0 / 406.4 MB, free: 196 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.846e-05/0.08728, allocations: 8.156 kB / 406.4 MB, free: 188 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.885e-06/0.08729, allocations: 4 kB / 406.4 MB, free: 184 kB / 334.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,y_start,$whenCondition2,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000123/0.08742, allocations: 155.2 kB / 406.5 MB, free: 16 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.629e-05/0.08744, allocations: 7.938 kB / 406.5 MB, free: 8 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.713e-05/0.08748, allocations: 12.02 kB / 406.5 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.482e-06/0.08748, allocations: 0 / 406.5 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.08749, allocations: 0 / 406.5 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.394e-06/0.0875, allocations: 0 / 406.5 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001054/0.0876, allocations: 165.6 kB / 406.7 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.08761, allocations: 3.984 kB / 406.7 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.727e-05/0.08765, allocations: 4 kB / 406.7 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.467e-06/0.08766, allocations: 3.938 kB / 406.7 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.165e-06/0.08767, allocations: 0 / 406.7 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.08767, allocations: 0 / 406.7 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.08768, allocations: 4 kB / 406.7 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002086/0.08789, allocations: 150.7 kB / 406.9 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.508e-05/0.08794, allocations: 85.05 kB / 406.9 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.919e-05/0.08796, allocations: 0 / 406.9 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.499e-05/0.088, allocations: 11.88 kB / 407 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.293e-05/0.08804, allocations: 7.984 kB / 407 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.314e-05/0.08806, allocations: 4 kB / 407 MB, free: 15.47 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.74e-05/0.08812, allocations: 91.31 kB / 407.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.08812, allocations: 3.938 kB / 407.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002109/0.08834, allocations: 19.98 kB / 407.1 MB, free: 15.36 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: 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 (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.0007021/0.08905, allocations: 0.7896 MB / 407.9 MB, free: 14.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001828/0.08924, allocations: 107.3 kB / 408 MB, free: 14.46 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.674e-06/0.08925, allocations: 0 / 408 MB, free: 14.46 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.532e-05/0.08935, allocations: 87.39 kB / 408.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001369/0.0895, allocations: 11.94 kB / 408.1 MB, free: 14.35 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001148/0.09065, allocations: 1.285 MB / 409.4 MB, free: 12.97 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002156/0.09088, allocations: 0.6844 MB / 410 MB, free: 12.26 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.799e-05/0.09091, allocations: 4 kB / 410.1 MB, free: 12.26 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.702e-05/0.09094, allocations: 11.44 kB / 410.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of SimCode: time 1.653e-06/0.09094, allocations: 0 / 410.1 MB, free: 12.25 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_WriteRealVariables.fmutmp/resources//home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/.. Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2466/0.3376, allocations: 1.9 MB / 412 MB, free: 10.39 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.639/8.977, allocations: 12.06 kB / 412 MB, free: 10.38 MB / 350.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/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)