Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr KeyWordIO_KeyWordIO.Examples.WriteRealVariable.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.001424/0.001424, allocations: 87.58 kB / 20.45 MB, free: 4.121 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.001077/0.001077, allocations: 161 kB / 23.82 MB, free: 0.7539 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.9396/0.9396, allocations: 177.1 MB / 204.2 MB, free: 5.609 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.006443/0.006443, allocations: 0.797 MB / 261.5 MB, free: 12.25 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.WriteRealVariable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariable") translateModel(KeyWordIO.Examples.WriteRealVariable,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariable") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.313e-06/1.313e-06, allocations: 0 / 331.3 MB, free: 18.93 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.69e-05/1.821e-05, allocations: 10.19 kB / 331.4 MB, free: 18.91 MB / 266.7 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.00147/0.001489, allocations: 1.402 MB / 332.8 MB, free: 17.5 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.000692/0.002181, allocations: 0.9349 MB / 333.7 MB, free: 16.57 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.119e-05/0.002212, allocations: 0 / 333.7 MB, free: 16.57 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 2.752e-05/0.002239, allocations: 7.922 kB / 333.7 MB, free: 16.56 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002117/0.002451, allocations: 11.94 kB / 333.7 MB, free: 16.55 MB / 266.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.12.1/writeRealVariable.mo:2:1-14:22:writable] Warning: Pure function 'KeyWordIO.writeRealVariable' contains a call to impure function 'Modelica.Utilities.Files.removeFile'. Notification: Performance of NFTyping.typeClassSections: time 0.0001408/0.002592, allocations: 43.88 kB / 333.8 MB, free: 16.5 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 5.359e-05/0.002645, allocations: 15.94 kB / 333.8 MB, free: 16.49 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.653e-05/0.002682, allocations: 7.922 kB / 333.8 MB, free: 16.48 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.109e-05/0.002723, allocations: 15.94 kB / 333.8 MB, free: 16.46 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.822e-05/0.002791, allocations: 7.984 kB / 333.8 MB, free: 16.46 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.162e-05/0.002803, allocations: 0 / 333.8 MB, free: 16.46 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.958e-05/0.002872, allocations: 39.91 kB / 333.8 MB, free: 16.42 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.228e-05/0.002885, allocations: 3.938 kB / 333.8 MB, free: 16.41 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.046e-05/0.002905, allocations: 4 kB / 333.8 MB, free: 16.41 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000113/0.003018, allocations: 55.88 kB / 333.9 MB, free: 16.36 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.003021, allocations: 3.984 kB / 333.9 MB, free: 16.35 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.91e-07/0.003021, allocations: 7.938 kB / 333.9 MB, free: 16.34 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.466e-06/0.003025, allocations: 0 / 333.9 MB, free: 16.34 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.000266/0.003291, allocations: 394.2 kB / 334.3 MB, free: 15.91 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.414e-05/0.003325, allocations: 12.03 kB / 334.3 MB, free: 15.9 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.464e-05/0.00336, allocations: 4.891 kB / 334.3 MB, free: 15.9 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.05e-05/0.00343, allocations: 112.6 kB / 334.4 MB, free: 15.76 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.588e-06/0.00344, allocations: 384 / 334.4 MB, free: 15.76 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.089e-05/0.003451, allocations: 4.375 kB / 334.4 MB, free: 15.76 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.25e-05/0.003533, allocations: 76.59 kB / 334.5 MB, free: 15.67 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.516e-06/0.003542, allocations: 192 / 334.5 MB, free: 15.67 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.116e-06/0.00355, allocations: 4.375 kB / 334.5 MB, free: 15.66 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.702e-06/0.003557, allocations: 384 / 334.5 MB, free: 15.66 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.022e-05/0.003567, allocations: 3.938 kB / 334.5 MB, free: 15.66 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.163e-05/0.003648, allocations: 120.7 kB / 334.6 MB, free: 15.51 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.868e-05/0.003677, allocations: 23.06 kB / 334.6 MB, free: 15.47 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.423e-05/0.003691, allocations: 7.688 kB / 334.7 MB, free: 15.46 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.604e-06/0.003699, allocations: 8 kB / 334.7 MB, free: 15.45 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.154e-05/0.00378, allocations: 155.9 kB / 334.8 MB, free: 15.26 MB / 266.7 MB Notification: Performance of pre-optimization done (n=2): time 9.02e-07/0.003781, allocations: 0 / 334.8 MB, free: 15.26 MB / 266.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001281/0.003909, allocations: 130.8 kB / 334.9 MB, free: 15.11 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.908e-05/0.003929, allocations: 81.11 kB / 335 MB, free: 15.01 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.724e-05/0.003976, allocations: 169.9 kB / 335.2 MB, free: 14.83 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.701e-06/0.003981, allocations: 25.7 kB / 335.2 MB, free: 14.8 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.641e-05/0.003998, allocations: 130.8 kB / 335.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.908e-05/0.004017, allocations: 4 kB / 335.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.034e-05/0.004037, allocations: 19.38 kB / 335.4 MB, free: 14.63 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.666e-05/0.004074, allocations: 0.4884 MB / 335.9 MB, free: 14.13 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.471e-05/0.004089, allocations: 29.7 kB / 335.9 MB, free: 14.1 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.81e-05/0.004107, allocations: 49.08 kB / 335.9 MB, free: 14.04 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.683e-05/0.004134, allocations: 78.91 kB / 336 MB, free: 13.94 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.884e-06/0.004135, allocations: 0 / 336 MB, free: 13.94 MB / 266.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.515e-05/0.004191, allocations: 105 kB / 336.1 MB, free: 13.82 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.437e-05/0.004215, allocations: 33.7 kB / 336.1 MB, free: 13.78 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.004219, allocations: 0 / 336.1 MB, free: 13.78 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.575e-05/0.004235, allocations: 0 / 336.1 MB, free: 13.78 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.416e-05/0.004289, allocations: 4 kB / 336.1 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.004295, allocations: 3.938 kB / 336.2 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.829e-05/0.004313, allocations: 16.03 kB / 336.2 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.318e-06/0.004317, allocations: 0 / 336.2 MB, free: 13.75 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 3.978e-05/0.004357, allocations: 182.3 kB / 336.3 MB, free: 13.56 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.096e-06/0.004365, allocations: 4 kB / 336.3 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.938e-05/0.004384, allocations: 11.56 kB / 336.4 MB, free: 13.54 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.004386, allocations: 0 / 336.4 MB, free: 13.54 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.595e-06/0.004389, allocations: 0 / 336.4 MB, free: 13.54 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.004392, allocations: 7.922 kB / 336.4 MB, free: 13.54 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 3.893e-05/0.004431, allocations: 112.6 kB / 336.5 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.004432, allocations: 4 kB / 336.5 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.789e-06/0.004442, allocations: 4 kB / 336.5 MB, free: 13.38 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.004443, allocations: 3.984 kB / 336.5 MB, free: 13.38 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.001e-06/0.004449, allocations: 4 kB / 336.5 MB, free: 13.38 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.21e-07/0.00445, allocations: 0 / 336.5 MB, free: 13.38 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.00445, allocations: 0 / 336.5 MB, free: 13.38 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.119e-05/0.004512, allocations: 139.7 kB / 336.6 MB, free: 13.2 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.702e-06/0.004518, allocations: 0 / 336.6 MB, free: 13.2 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.141e-05/0.00453, allocations: 0 / 336.6 MB, free: 13.2 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.337e-05/0.004543, allocations: 4 kB / 336.6 MB, free: 13.2 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.344e-05/0.004577, allocations: 0 / 336.6 MB, free: 13.2 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.018e-06/0.004581, allocations: 4 kB / 336.6 MB, free: 13.2 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.879e-05/0.004599, allocations: 143.1 kB / 336.8 MB, free: 13.05 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004599, allocations: 0 / 336.8 MB, free: 13.05 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001461/0.004746, allocations: 15.94 kB / 336.8 MB, free: 13.04 MB / 266.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: 1 ($whenCondition1) * Number of discrete states: 1 ($whenCondition1) * 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.0002832/0.005029, allocations: 197.8 kB / 337 MB, free: 12.87 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 8.59e-05/0.005115, allocations: 122.5 kB / 337.1 MB, free: 12.72 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.303e-06/0.005116, allocations: 0 / 337.1 MB, free: 12.72 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.586e-05/0.005142, allocations: 92.78 kB / 337.2 MB, free: 12.61 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001069/0.005249, allocations: 4 kB / 337.2 MB, free: 12.61 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002033/0.005452, allocations: 158.5 kB / 337.4 MB, free: 12.42 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.813e-05/0.00547, allocations: 55.22 kB / 337.4 MB, free: 12.34 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.868e-06/0.00548, allocations: 0 / 337.4 MB, free: 12.34 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.541e-05/0.005495, allocations: 12.5 kB / 337.4 MB, free: 12.33 MB / 266.7 MB Notification: Performance of SimCode: time 4.1e-07/0.005496, allocations: 0 / 337.4 MB, free: 12.33 MB / 266.7 MB Notification: Performance of Templates: time 0.002247/0.007743, allocations: 0.8047 MB / 338.2 MB, free: 11.54 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f KeyWordIO_KeyWordIO.Examples.WriteRealVariable.makefile [Timeout 660] (rm -f KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe ; mkfifo KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe ; head -c 1048576 < KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe >> ../files/KeyWordIO_KeyWordIO.Examples.WriteRealVariable.sim & ./KeyWordIO_KeyWordIO.Examples.WriteRealVariable -abortSlowSimulation -alarm=240 -lv LOG_STATS > KeyWordIO_KeyWordIO.Examples.WriteRealVariable.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.8338658488355577]