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.001103/0.001103, allocations: 108 kB / 15.63 MB, free: 112 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.001214/0.001214, allocations: 193.5 kB / 16.56 MB, free: 6.66 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.234/1.234, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0+X/package.mo): time 0.005594/0.005594, allocations: 1.002 MB / 291.4 MB, free: 1.258 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001069/0.001069, allocations: 63.91 kB / 352.2 MB, free: 6.707 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0774/0.07849, allocations: 49.64 MB / 401.8 MB, free: 5.023 MB / 334.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.00221/0.08073, allocations: 1.369 MB / 403.2 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001018/0.08176, allocations: 0.8088 MB / 404 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.27e-05/0.0818, allocations: 0 / 404 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.303e-05/0.08183, allocations: 0 / 404 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001696/0.08201, allocations: 15.88 kB / 404 MB, free: 2.816 MB / 334.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.0002028/0.08222, allocations: 47.81 kB / 404.1 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 7.39e-05/0.0823, allocations: 31.86 kB / 404.1 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.363e-05/0.08234, allocations: 0 / 404.1 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.817e-05/0.08237, allocations: 7.984 kB / 404.1 MB, free: 2.73 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.091e-05/0.08247, allocations: 23.91 kB / 404.1 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.858e-06/0.08249, allocations: 0 / 404.1 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.393e-05/0.08259, allocations: 39.98 kB / 404.2 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.273e-05/0.08261, allocations: 7.922 kB / 404.2 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 2.723e-05/0.08264, allocations: 19.86 kB / 404.2 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001184/0.08276, allocations: 63.86 kB / 404.3 MB, free: 2.578 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.086e-06/0.08277, allocations: 0 / 404.3 MB, free: 2.578 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.08278, allocations: 0 / 404.3 MB, free: 2.578 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.546e-06/0.08279, allocations: 0 / 404.3 MB, free: 2.578 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.000369/0.08316, allocations: 373.3 kB / 404.6 MB, free: 2.156 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.991e-05/0.0832, allocations: 12.02 kB / 404.7 MB, free: 2.145 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.464e-05/0.08324, allocations: 38.75 kB / 404.7 MB, free: 2.098 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.175e-05/0.08326, allocations: 0.9375 kB / 404.7 MB, free: 2.098 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.917e-05/0.08337, allocations: 168.3 kB / 404.9 MB, free: 1.895 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.162e-05/0.08338, allocations: 8.375 kB / 404.9 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.886e-06/0.0834, allocations: 4.375 kB / 404.9 MB, free: 1.883 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000118/0.08352, allocations: 50.17 kB / 404.9 MB, free: 1.828 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.08354, allocations: 3.938 kB / 404.9 MB, free: 1.824 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.586e-06/0.08355, allocations: 4 kB / 404.9 MB, free: 1.82 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.346e-06/0.08356, allocations: 0 / 404.9 MB, free: 1.82 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.504e-05/0.08363, allocations: 11.98 kB / 404.9 MB, free: 1.809 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001345/0.08377, allocations: 157.7 kB / 405.1 MB, free: 1.605 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.877e-05/0.08385, allocations: 34.61 kB / 405.1 MB, free: 1.562 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.636e-05/0.0839, allocations: 16.89 kB / 405.1 MB, free: 1.543 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.936e-06/0.08392, allocations: 4.031 kB / 405.1 MB, free: 1.539 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001642/0.08408, allocations: 152.4 kB / 405.3 MB, free: 1.359 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 2.404e-06/0.0841, allocations: 4 kB / 405.3 MB, free: 1.355 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002635/0.08437, allocations: 123.3 kB / 405.4 MB, free: 1.223 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.868e-05/0.08443, allocations: 136.5 kB / 405.6 MB, free: 1.059 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.856e-05/0.08451, allocations: 113.7 kB / 405.7 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.58e-05/0.08453, allocations: 29.69 kB / 405.7 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.674e-05/0.08456, allocations: 80.14 kB / 405.8 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.035e-05/0.08459, allocations: 15.84 kB / 405.8 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.764e-05/0.08462, allocations: 13.72 kB / 405.8 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.434e-05/0.08471, allocations: 322.8 kB / 406.1 MB, free: 472 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.445e-05/0.08476, allocations: 12.03 kB / 406.1 MB, free: 460 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.41e-05/0.08481, allocations: 25.64 kB / 406.1 MB, free: 428 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001232/0.08494, allocations: 97.11 kB / 406.2 MB, free: 312 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.08495, allocations: 0 / 406.2 MB, free: 312 kB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001512/0.08511, allocations: 111.2 kB / 406.4 MB, free: 188 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.88e-05/0.08515, allocations: 41.62 kB / 406.4 MB, free: 140 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/0.08516, allocations: 0 / 406.4 MB, free: 140 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.107e-06/0.08517, allocations: 0 / 406.4 MB, free: 140 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.345e-05/0.08523, allocations: 4 kB / 406.4 MB, free: 136 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.757e-06/0.08524, allocations: 0 / 406.4 MB, free: 136 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.7e-05/0.08528, allocations: 7.984 kB / 406.4 MB, free: 128 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.464e-06/0.08529, allocations: 4 kB / 406.4 MB, free: 124 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.0001244/0.08542, allocations: 152 kB / 406.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.351e-05/0.08544, allocations: 3.938 kB / 406.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.691e-05/0.08547, allocations: 15.98 kB / 406.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.08547, allocations: 0 / 406.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.986e-06/0.08548, allocations: 0 / 406.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.084e-06/0.08548, allocations: 0 / 406.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.32e-05/0.08558, allocations: 165.9 kB / 406.7 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.08559, allocations: 4 kB / 406.7 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.604e-05/0.08562, allocations: 4 kB / 406.7 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.08563, allocations: 3.938 kB / 406.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.904e-06/0.08564, allocations: 4 kB / 406.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.234e-06/0.08565, allocations: 4 kB / 406.8 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.08565, allocations: 0 / 406.8 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001912/0.08585, allocations: 146.7 kB / 406.9 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.746e-05/0.08591, allocations: 85.05 kB / 407 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.513e-05/0.08593, allocations: 0 / 407 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.599e-05/0.08597, allocations: 7.828 kB / 407 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.971e-05/0.08601, allocations: 16.02 kB / 407 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.227e-05/0.08602, allocations: 0 / 407 MB, free: 15.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.055e-05/0.08607, allocations: 99.19 kB / 407.1 MB, free: 15.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.08608, allocations: 0 / 407.1 MB, free: 15.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002015/0.08628, allocations: 23.98 kB / 407.1 MB, free: 15.29 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.0006341/0.08692, allocations: 0.7881 MB / 407.9 MB, free: 14.51 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001689/0.0871, allocations: 103.3 kB / 408 MB, free: 14.4 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.08711, allocations: 0 / 408 MB, free: 14.4 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.906e-05/0.08721, allocations: 87.39 kB / 408.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001303/0.08734, allocations: 11.94 kB / 408.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001039/0.08839, allocations: 1.289 MB / 409.4 MB, free: 12.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001802/0.08858, allocations: 0.6844 MB / 410.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.664e-05/0.08861, allocations: 4 kB / 410.1 MB, free: 12.19 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.196e-05/0.08864, allocations: 15.42 kB / 410.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of SimCode: time 2.31e-07/0.08865, allocations: 3.938 kB / 410.1 MB, free: 12.17 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+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.01751/0.1062, allocations: 1.91 MB / 412 MB, free: 10.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.335/5.441, allocations: 6.391 kB / 412 MB, free: 10.31 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)