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.0006489/0.0006489, allocations: 76.5 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0007506/0.0007506, allocations: 173.9 kB / 23.21 MB, free: 1.352 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.8291/0.8291, allocations: 177.1 MB / 203.5 MB, free: 5.738 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.003515/0.003515, allocations: 0.7948 MB / 260.7 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: translateModel(KeyWordIO.Examples.WriteRealVariables,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariables") translateModel(KeyWordIO.Examples.WriteRealVariables,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariables") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.102e-06/1.102e-06, allocations: 0 / 383.5 MB, free: 15.18 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.54e-05/1.65e-05, allocations: 2.281 kB / 383.5 MB, free: 15.18 MB / 362.7 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.001556/0.001572, allocations: 1.384 MB / 384.9 MB, free: 13.79 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007863/0.002359, allocations: 0.9114 MB / 385.8 MB, free: 12.87 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.878e-05/0.002387, allocations: 3.938 kB / 385.8 MB, free: 12.87 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 2.416e-05/0.002412, allocations: 0 / 385.8 MB, free: 12.87 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001836/0.002595, allocations: 15.92 kB / 385.8 MB, free: 12.85 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.0001867/0.002782, allocations: 51.75 kB / 385.9 MB, free: 12.8 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 6.496e-05/0.002847, allocations: 19.94 kB / 385.9 MB, free: 12.78 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.348e-05/0.00288, allocations: 11.86 kB / 385.9 MB, free: 12.77 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.173e-05/0.002922, allocations: 19.92 kB / 385.9 MB, free: 12.75 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.437e-05/0.002976, allocations: 7.984 kB / 385.9 MB, free: 12.74 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 1.033e-05/0.002987, allocations: 0 / 385.9 MB, free: 12.74 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.05e-05/0.003077, allocations: 47.89 kB / 386 MB, free: 12.7 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 1.121e-05/0.003088, allocations: 4 kB / 386 MB, free: 12.69 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.431e-05/0.003113, allocations: 8 kB / 386 MB, free: 12.68 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001314/0.003244, allocations: 75.72 kB / 386.1 MB, free: 12.61 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.453e-06/0.003246, allocations: 4 kB / 386.1 MB, free: 12.61 MB / 362.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.003247, allocations: 0 / 386.1 MB, free: 12.61 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.216e-06/0.00325, allocations: 0 / 386.1 MB, free: 12.61 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.0003221/0.003572, allocations: 299.9 kB / 386.4 MB, free: 12.27 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.807e-05/0.0036, allocations: 8.031 kB / 386.4 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.783e-05/0.003628, allocations: 4.938 kB / 386.4 MB, free: 12.26 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.885e-05/0.003707, allocations: 117.7 kB / 386.5 MB, free: 12.12 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.728e-06/0.003716, allocations: 384 / 386.5 MB, free: 12.12 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.696e-06/0.003725, allocations: 4.375 kB / 386.5 MB, free: 12.12 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001016/0.003827, allocations: 75.89 kB / 386.6 MB, free: 12.03 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.743e-06/0.003833, allocations: 4.188 kB / 386.6 MB, free: 12.03 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.727e-06/0.003842, allocations: 4.359 kB / 386.6 MB, free: 12.02 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.003846, allocations: 384 / 386.6 MB, free: 12.02 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.45e-05/0.003891, allocations: 45.62 kB / 386.6 MB, free: 11.97 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000101/0.003991, allocations: 105.3 kB / 386.7 MB, free: 11.84 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.866e-05/0.00405, allocations: 60.31 kB / 386.8 MB, free: 11.77 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.537e-05/0.004086, allocations: 46.62 kB / 386.8 MB, free: 11.71 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.416e-06/0.004094, allocations: 0 / 386.8 MB, free: 11.71 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001351/0.004229, allocations: 178.1 kB / 387 MB, free: 11.5 MB / 362.7 MB Notification: Performance of pre-optimization done (n=5): time 8.41e-07/0.00423, allocations: 0 / 387 MB, free: 11.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002191/0.004449, allocations: 186.7 kB / 387.2 MB, free: 11.29 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.923e-05/0.004498, allocations: 136.5 kB / 387.3 MB, free: 11.13 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.374e-05/0.004552, allocations: 109.8 kB / 387.4 MB, free: 11.01 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.927e-06/0.004561, allocations: 25.7 kB / 387.5 MB, free: 10.98 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.34e-05/0.004584, allocations: 88.14 kB / 387.5 MB, free: 10.89 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.063e-05/0.004605, allocations: 7.891 kB / 387.6 MB, free: 10.88 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.561e-05/0.004631, allocations: 25.66 kB / 387.6 MB, free: 10.85 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.753e-05/0.004698, allocations: 314.8 kB / 387.9 MB, free: 10.54 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.195e-05/0.00473, allocations: 41.73 kB / 387.9 MB, free: 10.49 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.501e-05/0.004765, allocations: 51.41 kB / 388 MB, free: 10.43 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.691e-05/0.004862, allocations: 105.1 kB / 388.1 MB, free: 10.3 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.004864, allocations: 256 / 388.1 MB, free: 10.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001046/0.004969, allocations: 133 kB / 388.2 MB, free: 10.16 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/0.004991, allocations: 29.7 kB / 388.2 MB, free: 10.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.004996, allocations: 7.938 kB / 388.2 MB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.02e-05/0.005006, allocations: 8.062 kB / 388.3 MB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.546e-05/0.005052, allocations: 7.984 kB / 388.3 MB, free: 10.1 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.005057, allocations: 3.938 kB / 388.3 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.286e-05/0.005079, allocations: 12 kB / 388.3 MB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.795e-06/0.005087, allocations: 4 kB / 388.3 MB, free: 10.08 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 9.603e-05/0.005183, allocations: 152.4 kB / 388.4 MB, free: 9.914 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.927e-06/0.005192, allocations: 7.953 kB / 388.4 MB, free: 9.906 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.51e-05/0.005207, allocations: 8.125 kB / 388.4 MB, free: 9.895 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-06/0.005208, allocations: 8 kB / 388.5 MB, free: 9.887 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.005212, allocations: 0 / 388.5 MB, free: 9.887 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.005215, allocations: 3.938 kB / 388.5 MB, free: 9.883 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.783e-05/0.005273, allocations: 109.3 kB / 388.6 MB, free: 9.746 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.005274, allocations: 0 / 388.6 MB, free: 9.746 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.075e-05/0.005284, allocations: 3.984 kB / 388.6 MB, free: 9.742 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.005287, allocations: 4 kB / 388.6 MB, free: 9.738 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.734e-06/0.005295, allocations: 3.938 kB / 388.6 MB, free: 9.734 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.21e-07/0.005296, allocations: 0 / 388.6 MB, free: 9.734 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.005296, allocations: 0 / 388.6 MB, free: 9.734 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001302/0.005426, allocations: 180.4 kB / 388.8 MB, free: 9.527 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.096e-05/0.005437, allocations: 11.95 kB / 388.8 MB, free: 9.516 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.081e-05/0.005448, allocations: 0 / 388.8 MB, free: 9.516 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.557e-05/0.005464, allocations: 4 kB / 388.8 MB, free: 9.512 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.24e-05/0.005496, allocations: 7.984 kB / 388.8 MB, free: 9.504 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.768e-06/0.005506, allocations: 0 / 388.8 MB, free: 9.504 MB / 362.7 MB Notification: Performance of sorting global known variables: time 2.974e-05/0.005536, allocations: 95.16 kB / 388.9 MB, free: 9.41 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005536, allocations: 0 / 388.9 MB, free: 9.41 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001559/0.005692, allocations: 27.92 kB / 388.9 MB, free: 9.383 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.0002623/0.005954, allocations: 196.3 kB / 389.1 MB, free: 9.223 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001446/0.006098, allocations: 154.8 kB / 389.2 MB, free: 9.047 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.0061, allocations: 0 / 389.2 MB, free: 9.047 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.634e-05/0.006156, allocations: 105.1 kB / 389.3 MB, free: 8.926 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.907e-05/0.006255, allocations: 4 kB / 389.3 MB, free: 8.922 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002264/0.006482, allocations: 180.3 kB / 389.5 MB, free: 8.707 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.471e-05/0.006517, allocations: 63.34 kB / 389.6 MB, free: 8.625 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.555e-05/0.006532, allocations: 12.5 kB / 389.6 MB, free: 8.613 MB / 362.7 MB Notification: Performance of SimCode: time 3.81e-07/0.006532, allocations: 0 / 389.6 MB, free: 8.613 MB / 362.7 MB Notification: Performance of Templates: time 0.001677/0.008209, allocations: 1.023 MB / 390.6 MB, free: 7.59 MB / 362.7 MB " [Timeout remaining time 660] make -j1 -f KeyWordIO_KeyWordIO.Examples.WriteRealVariables.makefile [Timeout 660] (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 & ./KeyWordIO_KeyWordIO.Examples.WriteRealVariables -abortSlowSimulation -alarm=480 -lv LOG_STATS > KeyWordIO_KeyWordIO.Examples.WriteRealVariables.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.124811784364283] Failed to read output from testmodel.py, exit status != 0: 0.01218708697706461 0.019518765 0.014782671 Calling exit ...