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/Complex 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) 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-master/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.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/Complex 4.0.0+maint.om/package.mo): time 0.008844/0.008844, allocations: 164.5 kB / 15.13 MB, free: 5.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.006887/0.006887, allocations: 1.001 MB / 16.87 MB, free: 4.691 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.311/1.311, allocations: 223.3 MB / 241.1 MB, free: 0.5859 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007297/0.0007296, allocations: 98.55 kB / 292.5 MB, free: 12.85 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003442/0.0003443, allocations: 8 kB / 353.7 MB, free: 15.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2185/0.2189, allocations: 50.6 MB / 404.3 MB, free: 49.39 MB / 330.7 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.001113/0.2201, allocations: 1.083 MB / 405.4 MB, free: 49.36 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008392/0.2209, allocations: 0.7622 MB / 406.1 MB, free: 49.33 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.465e-05/0.2209, allocations: 1.781 kB / 406.1 MB, free: 49.33 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 1.149e-05/0.221, allocations: 4.734 kB / 406.2 MB, free: 49.32 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001384/0.2211, allocations: 9.078 kB / 406.2 MB, free: 49.32 MB / 330.7 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.0002039/0.2213, allocations: 43.59 kB / 406.2 MB, free: 49.32 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 4.508e-05/0.2214, allocations: 19.48 kB / 406.2 MB, free: 49.31 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.796e-05/0.2214, allocations: 4.438 kB / 406.2 MB, free: 49.31 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.595e-05/0.2214, allocations: 9.531 kB / 406.2 MB, free: 49.31 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.151e-05/0.2215, allocations: 19.64 kB / 406.3 MB, free: 49.3 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.095e-05/0.2216, allocations: 2.578 kB / 406.3 MB, free: 49.3 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.789e-05/0.2217, allocations: 42.34 kB / 406.3 MB, free: 49.3 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 9.868e-06/0.2217, allocations: 3.719 kB / 406.3 MB, free: 49.3 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 2.406e-05/0.2217, allocations: 33.92 kB / 406.3 MB, free: 49.27 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 8.891e-05/0.2218, allocations: 46.2 kB / 406.4 MB, free: 49.26 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.2218, allocations: 0 / 406.4 MB, free: 49.26 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2218, allocations: 0 / 406.4 MB, free: 49.26 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.038e-06/0.2218, allocations: 0 / 406.4 MB, free: 49.26 MB / 330.7 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.0002957/0.2221, allocations: 368 kB / 406.7 MB, free: 48.87 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.077e-05/0.2222, allocations: 9.688 kB / 406.7 MB, free: 48.87 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.485e-05/0.2222, allocations: 33.12 kB / 406.8 MB, free: 48.83 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.29e-05/0.2222, allocations: 8.594 kB / 406.8 MB, free: 48.83 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.873e-05/0.2223, allocations: 167.9 kB / 407 MB, free: 48.63 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.739e-06/0.2223, allocations: 3.125 kB / 407 MB, free: 48.63 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.654e-06/0.2223, allocations: 0.8438 kB / 407 MB, free: 48.63 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001031/0.2224, allocations: 54.3 kB / 407 MB, free: 48.59 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.2225, allocations: 3.938 kB / 407 MB, free: 48.59 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.074e-06/0.2225, allocations: 6.219 kB / 407 MB, free: 48.59 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.276e-06/0.2225, allocations: 0 / 407 MB, free: 48.59 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.851e-05/0.2225, allocations: 18.25 kB / 407 MB, free: 48.59 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.645e-05/0.2227, allocations: 163.3 kB / 407.2 MB, free: 48.4 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.381e-05/0.2227, allocations: 35.86 kB / 407.2 MB, free: 48.38 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.648e-05/0.2228, allocations: 21.09 kB / 407.3 MB, free: 48.37 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.656e-06/0.2228, allocations: 0 / 407.3 MB, free: 48.37 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001268/0.2229, allocations: 152.4 kB / 407.4 MB, free: 48.22 MB / 330.7 MB Notification: Performance of pre-optimization done (n=5): time 1.162e-06/0.2229, allocations: 1.781 kB / 407.4 MB, free: 48.22 MB / 330.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002525/0.2232, allocations: 131.9 kB / 407.5 MB, free: 48.16 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.339e-05/0.2232, allocations: 134.9 kB / 407.7 MB, free: 48 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.691e-05/0.2233, allocations: 110.2 kB / 407.8 MB, free: 47.9 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.303e-06/0.2233, allocations: 27.72 kB / 407.8 MB, free: 47.87 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.559e-05/0.2233, allocations: 88.02 kB / 407.9 MB, free: 47.79 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.544e-05/0.2233, allocations: 7.891 kB / 407.9 MB, free: 47.78 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.945e-06/0.2234, allocations: 2.875 kB / 407.9 MB, free: 47.78 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 3.486e-05/0.2234, allocations: 317.5 kB / 408.2 MB, free: 47.46 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.343e-05/0.2234, allocations: 11.73 kB / 408.2 MB, free: 47.46 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.213e-05/0.2235, allocations: 33.86 kB / 408.3 MB, free: 47.45 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.41e-05/0.2236, allocations: 45.39 kB / 408.3 MB, free: 47.41 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.2236, allocations: 0 / 408.3 MB, free: 47.41 MB / 330.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001352/0.2237, allocations: 105.8 kB / 408.4 MB, free: 47.35 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.229e-05/0.2237, allocations: 41.44 kB / 408.4 MB, free: 47.31 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.2237, allocations: 7.031 kB / 408.4 MB, free: 47.31 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.866e-06/0.2238, allocations: 0.75 kB / 408.4 MB, free: 47.31 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.583e-05/0.2238, allocations: 7.906 kB / 408.5 MB, free: 47.31 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.578e-06/0.2238, allocations: 0 / 408.5 MB, free: 47.31 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.947e-05/0.2239, allocations: 10.12 kB / 408.5 MB, free: 47.31 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.294e-06/0.2239, allocations: 2 kB / 408.5 MB, free: 47.31 MB / 330.7 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 8.945e-05/0.224, allocations: 151.2 kB / 408.6 MB, free: 47.16 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.283e-05/0.224, allocations: 7.844 kB / 408.6 MB, free: 47.16 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.654e-05/0.224, allocations: 10.17 kB / 408.6 MB, free: 47.15 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.224, allocations: 2.562 kB / 408.6 MB, free: 47.15 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.936e-06/0.224, allocations: 0 / 408.6 MB, free: 47.15 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.884e-06/0.224, allocations: 0.9688 kB / 408.6 MB, free: 47.15 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.263e-05/0.2241, allocations: 161.4 kB / 408.8 MB, free: 46.96 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.2241, allocations: 1.188 kB / 408.8 MB, free: 46.96 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.919e-05/0.2242, allocations: 7.188 kB / 408.8 MB, free: 46.96 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.2242, allocations: 0 / 408.8 MB, free: 46.96 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.405e-06/0.2242, allocations: 5.375 kB / 408.8 MB, free: 46.96 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.995e-06/0.2242, allocations: 7.672 kB / 408.8 MB, free: 46.96 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.2242, allocations: 0 / 408.8 MB, free: 46.96 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001701/0.2244, allocations: 152.6 kB / 409 MB, free: 46.86 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.752e-05/0.2244, allocations: 88.55 kB / 409 MB, free: 46.76 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.643e-05/0.2244, allocations: 7.562 kB / 409.1 MB, free: 46.76 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.634e-05/0.2245, allocations: 3.688 kB / 409.1 MB, free: 46.76 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.928e-05/0.2245, allocations: 11.08 kB / 409.1 MB, free: 46.76 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.18e-05/0.2245, allocations: 6.844 kB / 409.1 MB, free: 46.75 MB / 330.7 MB Notification: Performance of sorting global known variables: time 2.463e-05/0.2245, allocations: 85.72 kB / 409.2 MB, free: 46.68 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2245, allocations: 1.531 kB / 409.2 MB, free: 46.68 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001928/0.2247, allocations: 20.03 kB / 409.2 MB, free: 46.68 MB / 330.7 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.0005569/0.2253, allocations: 0.7984 MB / 410 MB, free: 46.04 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000155/0.2255, allocations: 103.1 kB / 410.1 MB, free: 45.98 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.432e-06/0.2255, allocations: 1.875 kB / 410.1 MB, free: 45.98 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 7.566e-05/0.2256, allocations: 90 kB / 410.2 MB, free: 45.92 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001509/0.2257, allocations: 9.234 kB / 410.2 MB, free: 45.91 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005572/0.2263, allocations: 462 kB / 410.6 MB, free: 45.57 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.912e-05/0.2264, allocations: 0.6819 MB / 411.3 MB, free: 44.88 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 1.677e-05/0.2264, allocations: 2.281 kB / 411.3 MB, free: 44.88 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.416e-05/0.2264, allocations: 13.78 kB / 411.3 MB, free: 44.87 MB / 330.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2264, allocations: 3.688 kB / 411.3 MB, free: 44.87 MB / 330.7 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-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.3611/0.5876, allocations: 1.621 MB / 413 MB, free: 44.71 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00019/0.5878, allocations: 202 kB / 413.2 MB, free: 44.48 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.687/2.275, allocations: 0 / 413.2 MB, free: 44.48 MB / 330.7 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)