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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001143/0.001143, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008748/0.0008748, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8838/0.8838, allocations: 177.2 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/package.mo): time 0.003657/0.003657, allocations: 0.8015 MB / 260 MB, free: 12.47 MB / 250.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/readLineWithoutCache.mo:2:1-87:25:writable] Warning: External function annotation should occur on the external-clause, not on the function. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/writeLine.mo:2:1-61:14:writable] Warning: External function annotation should occur on the external-clause, not on the function. " [Timeout remaining time 180] Using package KeyWordIO with version 0.12.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.034e-06/2.034e-06, allocations: 0 / 382.3 MB, free: 15.67 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.945e-05/2.148e-05, allocations: 2.281 kB / 382.3 MB, free: 15.66 MB / 362.7 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.001819/0.001841, allocations: 1.382 MB / 383.7 MB, free: 14.28 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008958/0.002736, allocations: 0.9075 MB / 384.6 MB, free: 13.37 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.05e-05/0.002767, allocations: 0 / 384.6 MB, free: 13.37 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 2.782e-05/0.002795, allocations: 0 / 384.6 MB, free: 13.37 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002365/0.003031, allocations: 11.92 kB / 384.6 MB, free: 13.36 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/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.0002194/0.003251, allocations: 47.75 kB / 384.6 MB, free: 13.31 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 9.067e-05/0.003341, allocations: 27.92 kB / 384.7 MB, free: 13.28 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.415e-05/0.003385, allocations: 3.938 kB / 384.7 MB, free: 13.28 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.254e-05/0.003438, allocations: 11.98 kB / 384.7 MB, free: 13.27 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.947e-05/0.003507, allocations: 11.94 kB / 384.7 MB, free: 13.25 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 1.252e-05/0.00352, allocations: 4 kB / 384.7 MB, free: 13.25 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001004/0.00362, allocations: 51.83 kB / 384.7 MB, free: 13.2 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.3e-05/0.003633, allocations: 0 / 384.7 MB, free: 13.2 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 3.294e-05/0.003666, allocations: 15.92 kB / 384.7 MB, free: 13.18 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000149/0.003815, allocations: 75.84 kB / 384.8 MB, free: 13.11 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.054e-06/0.003817, allocations: 0 / 384.8 MB, free: 13.11 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.003818, allocations: 0 / 384.8 MB, free: 13.11 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.003823, allocations: 0 / 384.8 MB, free: 13.11 MB / 362.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.0004101/0.004233, allocations: 303.8 kB / 385.1 MB, free: 12.77 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.004274, allocations: 12.03 kB / 385.1 MB, free: 12.76 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.663e-05/0.004301, allocations: 34.75 kB / 385.2 MB, free: 12.72 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.257e-05/0.004333, allocations: 0.9375 kB / 385.2 MB, free: 12.72 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.162e-05/0.004425, allocations: 113.7 kB / 385.3 MB, free: 12.58 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.053e-05/0.004435, allocations: 4.375 kB / 385.3 MB, free: 12.58 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.137e-06/0.004445, allocations: 384 / 385.3 MB, free: 12.58 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000127/0.004572, allocations: 79.92 kB / 385.4 MB, free: 12.49 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.00458, allocations: 192 / 385.4 MB, free: 12.49 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.837e-06/0.004588, allocations: 4.312 kB / 385.4 MB, free: 12.48 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.004595, allocations: 4.125 kB / 385.4 MB, free: 12.48 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.738e-05/0.004642, allocations: 45.69 kB / 385.4 MB, free: 12.43 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001263/0.004769, allocations: 132.8 kB / 385.5 MB, free: 12.26 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.434e-05/0.004833, allocations: 60.27 kB / 385.6 MB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.616e-05/0.004869, allocations: 38.59 kB / 385.6 MB, free: 12.14 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.568e-06/0.004879, allocations: 48 / 385.6 MB, free: 12.14 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001694/0.005048, allocations: 178.1 kB / 385.8 MB, free: 11.93 MB / 362.7 MB Notification: Performance of pre-optimization done (n=5): time 1.122e-06/0.005049, allocations: 0 / 385.8 MB, free: 11.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002561/0.005305, allocations: 190.6 kB / 386 MB, free: 11.71 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.337e-05/0.005359, allocations: 132.5 kB / 386.1 MB, free: 11.55 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.093e-05/0.00542, allocations: 113.9 kB / 386.2 MB, free: 11.43 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.04e-05/0.00543, allocations: 25.7 kB / 386.3 MB, free: 11.4 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.814e-05/0.005458, allocations: 84.14 kB / 386.3 MB, free: 11.32 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.458e-05/0.005483, allocations: 7.953 kB / 386.4 MB, free: 11.31 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.85e-05/0.005511, allocations: 21.7 kB / 386.4 MB, free: 11.28 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.005612, allocations: 314.8 kB / 386.7 MB, free: 10.96 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.464e-05/0.005647, allocations: 41.69 kB / 386.7 MB, free: 10.92 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.061e-05/0.005688, allocations: 59.34 kB / 386.8 MB, free: 10.85 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001058/0.005793, allocations: 97.11 kB / 386.9 MB, free: 10.73 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.005795, allocations: 0 / 386.9 MB, free: 10.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001057/0.005901, allocations: 137 kB / 387 MB, free: 10.58 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.109e-05/0.005932, allocations: 41.62 kB / 387.1 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.005937, allocations: 0 / 387.1 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.00595, allocations: 3.938 kB / 387.1 MB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.834e-05/0.006008, allocations: 4 kB / 387.1 MB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.246e-06/0.006016, allocations: 8.25 kB / 387.1 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.523e-05/0.006041, allocations: 8.047 kB / 387.1 MB, free: 10.51 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.003e-06/0.006048, allocations: 4 kB / 387.1 MB, free: 10.51 MB / 362.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,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.0001105/0.006159, allocations: 147.8 kB / 387.2 MB, free: 10.35 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.887e-06/0.006168, allocations: 7.953 kB / 387.2 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.695e-05/0.006185, allocations: 8.109 kB / 387.2 MB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.006188, allocations: 3.938 kB / 387.2 MB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.006192, allocations: 4 kB / 387.2 MB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.006195, allocations: 0 / 387.2 MB, free: 10.32 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.455e-05/0.00627, allocations: 140.6 kB / 387.4 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.006271, allocations: 0 / 387.4 MB, free: 10.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.359e-05/0.006284, allocations: 8 kB / 387.4 MB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.333e-06/0.006285, allocations: 0 / 387.4 MB, free: 10.13 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.014e-05/0.006296, allocations: 7.984 kB / 387.4 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.006297, allocations: 3.938 kB / 387.4 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.006298, allocations: 0 / 387.4 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001389/0.006437, allocations: 168.5 kB / 387.6 MB, free: 9.926 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.063e-05/0.006447, allocations: 11.98 kB / 387.6 MB, free: 9.914 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.325e-05/0.006461, allocations: 3.984 kB / 387.6 MB, free: 9.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.897e-05/0.00648, allocations: 11.94 kB / 387.6 MB, free: 9.898 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.682e-05/0.006516, allocations: 4.031 kB / 387.6 MB, free: 9.895 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.353e-05/0.00653, allocations: 7.984 kB / 387.6 MB, free: 9.887 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.03e-05/0.00656, allocations: 87.28 kB / 387.7 MB, free: 9.801 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00656, allocations: 0 / 387.7 MB, free: 9.801 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001496/0.00671, allocations: 16 kB / 387.7 MB, free: 9.785 MB / 362.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 (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.0005408/0.007251, allocations: 0.8018 MB / 388.5 MB, free: 8.98 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001556/0.007406, allocations: 150.8 kB / 388.7 MB, free: 8.809 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.007408, allocations: 0 / 388.7 MB, free: 8.809 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.994e-05/0.007468, allocations: 109 kB / 388.8 MB, free: 8.684 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001127/0.00758, allocations: 20.06 kB / 388.8 MB, free: 8.664 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009081/0.008488, allocations: 1.434 MB / 390.2 MB, free: 7.102 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.011e-05/0.008528, allocations: 67.28 kB / 390.3 MB, free: 7.016 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.104e-05/0.00855, allocations: 4 kB / 390.3 MB, free: 7.012 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.032e-05/0.00858, allocations: 16.48 kB / 390.3 MB, free: 6.996 MB / 362.7 MB Notification: Performance of SimCode: time 6.21e-07/0.00858, allocations: 0 / 390.3 MB, free: 6.996 MB / 362.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeMain.mo:796:13-796:114:writable] Error: Internal error Failed to copy path /home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/../output.txt to 652.fmutmp/resources//home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/.. Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01771/0.02629, allocations: 2.666 MB / 393 MB, free: 4.441 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.158/8.184, allocations: 0 / 393 MB, free: 4.441 MB / 362.7 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file KeyWordIO_KeyWordIO.Examples.WriteRealVariables_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 KeyWordIO_KeyWordIO_Examples_WriteRealVariables.fmu > KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.081237534992397] Failed to read output from testmodel.py, exit status != 0: 8.263935387134552 8.275631233 8.269387635 Calling exit ...