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.004927/0.004927, allocations: 97.66 kB / 15.73 MB, free: 6.047 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.001301/0.001301, allocations: 202.5 kB / 16.68 MB, free: 5.969 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.452/1.452, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.007158/0.007158, allocations: 0.9978 MB / 291.5 MB, free: 1.203 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001918/0.001918, allocations: 67.89 kB / 402.5 MB, free: 4.48 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2452/0.2471, allocations: 49.64 MB / 452.1 MB, free: 22.06 MB / 350.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.001886/0.249, allocations: 1.378 MB / 453.5 MB, free: 21.11 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009119/0.2499, allocations: 0.8067 MB / 454.3 MB, free: 20.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.092e-05/0.2499, allocations: 0 / 454.3 MB, free: 20.54 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.157e-05/0.2499, allocations: 3.938 kB / 454.3 MB, free: 20.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001753/0.2501, allocations: 18.03 kB / 454.3 MB, free: 20.52 MB / 350.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.0002113/0.2503, allocations: 46.25 kB / 454.4 MB, free: 20.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 7.878e-05/0.2504, allocations: 20.69 kB / 454.4 MB, free: 20.49 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.085e-05/0.2504, allocations: 2.969 kB / 454.4 MB, free: 20.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.638e-05/0.2505, allocations: 10.2 kB / 454.4 MB, free: 20.49 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.974e-05/0.2506, allocations: 25.09 kB / 454.4 MB, free: 20.47 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.059e-05/0.2506, allocations: 0 / 454.4 MB, free: 20.47 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.687e-05/0.2507, allocations: 43.2 kB / 454.5 MB, free: 20.46 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.186e-05/0.2507, allocations: 3.984 kB / 454.5 MB, free: 20.46 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.602e-05/0.2507, allocations: 13.44 kB / 454.5 MB, free: 20.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000142/0.2509, allocations: 65.52 kB / 454.5 MB, free: 20.43 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.2509, allocations: 3.938 kB / 454.5 MB, free: 20.42 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2509, allocations: 0 / 454.5 MB, free: 20.42 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.073e-05/0.2509, allocations: 3.031 kB / 454.5 MB, free: 20.42 MB / 350.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.0003567/0.2512, allocations: 376.2 kB / 454.9 MB, free: 20.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.156e-05/0.2513, allocations: 8.75 kB / 454.9 MB, free: 20.02 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.039e-05/0.2513, allocations: 33.44 kB / 455 MB, free: 19.98 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.604e-05/0.2513, allocations: 7.547 kB / 455 MB, free: 19.98 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.969e-05/0.2514, allocations: 170.6 kB / 455.1 MB, free: 19.78 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.834e-06/0.2514, allocations: 384 / 455.1 MB, free: 19.78 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.165e-05/0.2514, allocations: 2.906 kB / 455.1 MB, free: 19.78 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001092/0.2515, allocations: 48.27 kB / 455.2 MB, free: 19.74 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.2515, allocations: 3.938 kB / 455.2 MB, free: 19.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.025e-06/0.2515, allocations: 3.938 kB / 455.2 MB, free: 19.73 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.797e-06/0.2515, allocations: 4 kB / 455.2 MB, free: 19.73 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.37e-05/0.2516, allocations: 17.34 kB / 455.2 MB, free: 19.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001107/0.2517, allocations: 158.1 kB / 455.4 MB, free: 19.53 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.043e-05/0.2518, allocations: 29.95 kB / 455.4 MB, free: 19.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.409e-05/0.2518, allocations: 17.3 kB / 455.4 MB, free: 19.49 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.094e-05/0.2518, allocations: 6.688 kB / 455.4 MB, free: 19.49 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001698/0.252, allocations: 156 kB / 455.6 MB, free: 19.33 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.293e-06/0.252, allocations: 0 / 455.6 MB, free: 19.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002673/0.2523, allocations: 126.5 kB / 455.7 MB, free: 19.25 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.399e-05/0.2523, allocations: 128.5 kB / 455.8 MB, free: 19.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.176e-05/0.2524, allocations: 110.9 kB / 455.9 MB, free: 18.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.121e-05/0.2524, allocations: 32.83 kB / 456 MB, free: 18.95 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.807e-05/0.2524, allocations: 84.17 kB / 456 MB, free: 18.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.285e-05/0.2524, allocations: 14.03 kB / 456.1 MB, free: 18.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.763e-05/0.2525, allocations: 16.75 kB / 456.1 MB, free: 18.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.231e-05/0.2525, allocations: 321.3 kB / 456.4 MB, free: 18.52 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.068e-05/0.2525, allocations: 10.19 kB / 456.4 MB, free: 18.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.138e-05/0.2526, allocations: 26.77 kB / 456.4 MB, free: 18.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001177/0.2527, allocations: 98.33 kB / 456.5 MB, free: 18.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.2527, allocations: 0 / 456.5 MB, free: 18.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.000144/0.2528, allocations: 104.9 kB / 456.6 MB, free: 18.33 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.388e-05/0.2529, allocations: 39.06 kB / 456.7 MB, free: 18.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.2529, allocations: 3.125 kB / 456.7 MB, free: 18.29 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.333e-05/0.2529, allocations: 0 / 456.7 MB, free: 18.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.993e-05/0.2529, allocations: 3 kB / 456.7 MB, free: 18.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.2529, allocations: 7.125 kB / 456.7 MB, free: 18.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.702e-05/0.253, allocations: 10.08 kB / 456.7 MB, free: 18.29 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.927e-06/0.253, allocations: 3 kB / 456.7 MB, free: 18.29 MB / 350.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.0001149/0.2531, allocations: 153.9 kB / 456.8 MB, free: 18.13 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.386e-05/0.2531, allocations: 6.969 kB / 456.8 MB, free: 18.12 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.757e-05/0.2531, allocations: 4.016 kB / 456.8 MB, free: 18.12 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.2531, allocations: 6.953 kB / 456.9 MB, free: 18.11 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.2531, allocations: 0 / 456.9 MB, free: 18.11 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.2531, allocations: 4 kB / 456.9 MB, free: 18.11 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.627e-05/0.2532, allocations: 161 kB / 457 MB, free: 17.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.2532, allocations: 0 / 457 MB, free: 17.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.33e-05/0.2532, allocations: 3 kB / 457 MB, free: 17.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.2532, allocations: 6.969 kB / 457 MB, free: 17.91 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.255e-06/0.2532, allocations: 0 / 457 MB, free: 17.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.2533, allocations: 6.219 kB / 457 MB, free: 17.91 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.2533, allocations: 0 / 457 MB, free: 17.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00017/0.2534, allocations: 163.2 kB / 457.2 MB, free: 17.78 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.896e-05/0.2534, allocations: 84.38 kB / 457.3 MB, free: 17.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.67e-05/0.2535, allocations: 2.969 kB / 457.3 MB, free: 17.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.201e-05/0.2535, allocations: 9.938 kB / 457.3 MB, free: 17.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.673e-05/0.2535, allocations: 3.234 kB / 457.3 MB, free: 17.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.224e-05/0.2535, allocations: 3 kB / 457.3 MB, free: 17.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.704e-05/0.2536, allocations: 89.64 kB / 457.4 MB, free: 17.6 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2536, allocations: 0 / 457.4 MB, free: 17.6 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002134/0.2538, allocations: 29.52 kB / 457.4 MB, free: 17.59 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.0006223/0.2544, allocations: 0.7819 MB / 458.2 MB, free: 16.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001654/0.2546, allocations: 99.28 kB / 458.3 MB, free: 16.83 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.2546, allocations: 4.125 kB / 458.3 MB, free: 16.83 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.793e-05/0.2546, allocations: 77.59 kB / 458.4 MB, free: 16.76 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001371/0.2548, allocations: 5.859 kB / 458.4 MB, free: 16.76 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008804/0.2557, allocations: 1.294 MB / 459.7 MB, free: 15.56 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.27e-05/0.2557, allocations: 0.6819 MB / 460.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.856e-05/0.2558, allocations: 7.094 kB / 460.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.672e-05/0.2558, allocations: 14.53 kB / 460.4 MB, free: 14.85 MB / 350.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2558, allocations: 3.938 kB / 460.4 MB, free: 14.84 MB / 350.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeMain.mo:790:13-790: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.02637/0.2822, allocations: 1.943 MB / 462.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.203/8.485, allocations: 7.25 kB / 462.3 MB, free: 14.36 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)