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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001363/0.001363, allocations: 105.8 kB / 18.84 MB, free: 3.023 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001704/0.001704, allocations: 190.8 kB / 22.1 MB, free: 4.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.456/1.456, allocations: 225.6 MB / 250.8 MB, free: 13.06 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/package.mo): time 0.007225/0.007225, allocations: 1.023 MB / 307 MB, free: 7.641 MB / 238.1 MB " [Timeout remaining time 180] Using package KeyWordIO with version 0.12.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001993/0.001993, allocations: 63.89 kB / 426.8 MB, free: 23.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09164/0.09363, allocations: 52.41 MB / 479.3 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.002685/0.09632, allocations: 1.383 MB / 480.6 MB, free: 1.574 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001456/0.09778, allocations: 0.9036 MB / 481.5 MB, free: 0.668 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.988e-05/0.09781, allocations: 0 / 481.5 MB, free: 0.668 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.463e-05/0.09783, allocations: 3.938 kB / 481.5 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001851/0.09802, allocations: 11.92 kB / 481.6 MB, free: 0.6523 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/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.0002439/0.09826, allocations: 43.83 kB / 481.6 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.313e-05/0.09835, allocations: 27.97 kB / 481.6 MB, free: 0.582 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.186e-05/0.09839, allocations: 0 / 481.6 MB, free: 0.582 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.83e-05/0.09843, allocations: 11.88 kB / 481.6 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001216/0.09855, allocations: 23.92 kB / 481.7 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.043e-05/0.09856, allocations: 0 / 481.7 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001212/0.09869, allocations: 43.95 kB / 481.7 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.315e-05/0.0987, allocations: 0 / 481.7 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.374e-05/0.09873, allocations: 15.94 kB / 481.7 MB, free: 500 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001627/0.0989, allocations: 68.02 kB / 481.8 MB, free: 432 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.0989, allocations: 0 / 481.8 MB, free: 432 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.0989, allocations: 0 / 481.8 MB, free: 432 kB / 334.1 MB Notification: Performance of Transformations before backend: time 4.589e-06/0.0989, allocations: 0 / 481.8 MB, free: 432 kB / 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.0004459/0.09935, allocations: 307.8 kB / 482.1 MB, free: 84 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.09939, allocations: 12.92 kB / 482.1 MB, free: 72 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.703e-05/0.09944, allocations: 34.69 kB / 482.1 MB, free: 28 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.806e-05/0.09946, allocations: 4.891 kB / 482.1 MB, free: 24 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001422/0.09961, allocations: 106.5 kB / 482.2 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.361e-05/0.09962, allocations: 4.375 kB / 482.3 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.055e-06/0.09963, allocations: 384 / 482.3 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001359/0.09976, allocations: 50.23 kB / 482.3 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.09977, allocations: 3.938 kB / 482.3 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.787e-06/0.09978, allocations: 0 / 482.3 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.597e-06/0.09979, allocations: 7.938 kB / 482.3 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.69e-05/0.09987, allocations: 19.98 kB / 482.3 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001624/0.1, allocations: 124.8 kB / 482.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.773e-05/0.1001, allocations: 30.55 kB / 482.5 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.714e-05/0.1002, allocations: 20.92 kB / 482.5 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.658e-06/0.1002, allocations: 0 / 482.5 MB, free: 15.58 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002327/0.1004, allocations: 152.4 kB / 482.7 MB, free: 15.4 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.102e-06/0.1004, allocations: 0 / 482.7 MB, free: 15.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003307/0.1008, allocations: 123.3 kB / 482.8 MB, free: 15.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.903e-05/0.1009, allocations: 136.5 kB / 482.9 MB, free: 15.1 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001008/0.101, allocations: 113.8 kB / 483 MB, free: 14.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.912e-05/0.101, allocations: 29.7 kB / 483 MB, free: 14.95 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.742e-05/0.101, allocations: 84.17 kB / 483.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.866e-05/0.1011, allocations: 15.89 kB / 483.1 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.357e-05/0.1011, allocations: 17.72 kB / 483.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.1012, allocations: 322.8 kB / 483.5 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.592e-05/0.1013, allocations: 8 kB / 483.5 MB, free: 14.49 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.593e-05/0.1013, allocations: 25.7 kB / 483.5 MB, free: 14.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000179/0.1015, allocations: 109 kB / 483.6 MB, free: 14.33 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.1015, allocations: 0 / 483.6 MB, free: 14.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001777/0.1017, allocations: 99.31 kB / 483.7 MB, free: 14.22 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.598e-05/0.1017, allocations: 37.64 kB / 483.7 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-06/0.1017, allocations: 0 / 483.7 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.179e-05/0.1017, allocations: 48 / 483.7 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.44e-05/0.1018, allocations: 11.98 kB / 483.8 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.998e-06/0.1018, allocations: 4.062 kB / 483.8 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.069e-05/0.1019, allocations: 15.88 kB / 483.8 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.993e-06/0.1019, allocations: 0 / 483.8 MB, free: 14.15 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.0001478/0.102, allocations: 143.5 kB / 483.9 MB, free: 13.99 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.058e-05/0.1021, allocations: 11.92 kB / 483.9 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.948e-05/0.1021, allocations: 4.062 kB / 483.9 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.1021, allocations: 0 / 483.9 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.1021, allocations: 0 / 483.9 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.1021, allocations: 4 kB / 483.9 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001323/0.1022, allocations: 136.7 kB / 484.1 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.1022, allocations: 0 / 484.1 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.588e-05/0.1022, allocations: 4 kB / 484.1 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.1022, allocations: 3.938 kB / 484.1 MB, free: 13.79 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.114e-05/0.1023, allocations: 4 kB / 484.1 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.1023, allocations: 0 / 484.1 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.1023, allocations: 4.234 kB / 484.1 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002848/0.1025, allocations: 158.7 kB / 484.2 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.039e-05/0.1026, allocations: 7.875 kB / 484.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.059e-05/0.1026, allocations: 4 kB / 484.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.714e-05/0.1026, allocations: 3.984 kB / 484.3 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.706e-05/0.1026, allocations: 8 kB / 484.3 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.598e-05/0.1027, allocations: 4 kB / 484.3 MB, free: 13.57 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.031e-05/0.1027, allocations: 87.27 kB / 484.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1027, allocations: 0 / 484.4 MB, free: 13.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002266/0.1029, allocations: 23.94 kB / 484.4 MB, free: 13.46 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.0009643/0.1039, allocations: 0.7896 MB / 485.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002139/0.1041, allocations: 91.38 kB / 485.3 MB, free: 12.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1041, allocations: 4.125 kB / 485.3 MB, free: 12.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00011/0.1042, allocations: 75.39 kB / 485.3 MB, free: 12.48 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001428/0.1044, allocations: 8 kB / 485.3 MB, free: 12.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001471/0.1059, allocations: 1.295 MB / 486.6 MB, free: 11.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003469/0.1062, allocations: 0.6844 MB / 487.3 MB, free: 10.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.575e-05/0.1062, allocations: 11.98 kB / 487.3 MB, free: 10.37 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.215e-05/0.1063, allocations: 7.438 kB / 487.3 MB, free: 10.36 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1063, allocations: 0 / 487.3 MB, free: 10.36 MB / 350.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeMain.mo:791:13-791:114:writable] Error: Internal error Failed to copy path /home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/../output.txt to 652.fmutmp/resources//home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.0/.. Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02527/0.1315, allocations: 1.99 MB / 489.3 MB, free: 8.457 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.841/7.973, allocations: 6.141 kB / 489.3 MB, free: 8.457 MB / 350.1 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_KeyWordIO_KeyWordIO_Examples_WriteRealVariables_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 KeyWordIO_KeyWordIO_Examples_WriteRealVariables.fmu > KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.397978784050792] Failed to read output from testmodel.py, exit status != 0: 8.041646622121334 8.058267038 7.956284796 Calling exit ...