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.0008378/0.0008378, allocations: 81.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001179/0.002017, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.00076/0.00076, allocations: 161.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001489/0.002249, allocations: 483.5 kB / 11.83 MB, free: 2.34 MB / 13.93 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.952/0.952, allocations: 177.2 MB / 189.8 MB, free: 5.25 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08473/1.037, allocations: 53.66 MB / 243.4 MB, free: 15.5 MB / 250.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.003505/0.003505, allocations: 0.7925 MB / 245 MB, free: 13.98 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. Notification: Performance of NFInstanceAPI.mkTop(): time 0.001139/0.004644, allocations: 0.6357 MB / 245.6 MB, free: 13.35 MB / 250.7 MB " [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.383e-06/1.383e-06, allocations: 0 / 246.9 MB, free: 12.07 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.012e-05/1.15e-05, allocations: 6.25 kB / 246.9 MB, free: 12.06 MB / 250.7 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.00156/0.001571, allocations: 1.467 MB / 248.3 MB, free: 10.58 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007406/0.002312, allocations: 0.9633 MB / 249.3 MB, free: 9.617 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.349e-05/0.002335, allocations: 0 / 249.3 MB, free: 9.617 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 1.767e-05/0.002353, allocations: 0 / 249.3 MB, free: 9.617 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.336e-05/0.002426, allocations: 19.91 kB / 249.3 MB, free: 9.598 MB / 250.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.0001242/0.002551, allocations: 39.78 kB / 249.4 MB, free: 9.559 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 7.409e-05/0.002625, allocations: 23.86 kB / 249.4 MB, free: 9.535 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.123e-05/0.002656, allocations: 4 kB / 249.4 MB, free: 9.531 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.422e-05/0.00273, allocations: 23.97 kB / 249.4 MB, free: 9.508 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.281e-05/0.002793, allocations: 11.92 kB / 249.4 MB, free: 9.496 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 9.959e-06/0.002803, allocations: 0 / 249.4 MB, free: 9.496 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.852e-05/0.002881, allocations: 35.92 kB / 249.5 MB, free: 9.461 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 1.705e-05/0.002898, allocations: 7.984 kB / 249.5 MB, free: 9.453 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 1.635e-05/0.002915, allocations: 4 kB / 249.5 MB, free: 9.449 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001118/0.003027, allocations: 47.84 kB / 249.5 MB, free: 9.402 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.548e-06/0.003036, allocations: 0 / 249.5 MB, free: 9.402 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.81e-07/0.003037, allocations: 3.938 kB / 249.5 MB, free: 9.398 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.656e-06/0.003045, allocations: 0 / 249.5 MB, free: 9.398 MB / 250.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.0003084/0.003354, allocations: 274.2 kB / 249.8 MB, free: 9.098 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.85e-05/0.003382, allocations: 8.031 kB / 249.8 MB, free: 9.09 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.756e-05/0.00341, allocations: 4.938 kB / 249.8 MB, free: 9.086 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.594e-05/0.003496, allocations: 113.8 kB / 249.9 MB, free: 8.949 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.775e-06/0.003504, allocations: 384 / 249.9 MB, free: 8.949 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.806e-06/0.003512, allocations: 384 / 249.9 MB, free: 8.949 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.472e-05/0.003607, allocations: 80.66 kB / 250 MB, free: 8.855 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.59e-06/0.003613, allocations: 4.188 kB / 250 MB, free: 8.852 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.691e-06/0.003618, allocations: 384 / 250 MB, free: 8.852 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.003622, allocations: 4.312 kB / 250 MB, free: 8.848 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.516e-06/0.003631, allocations: 3.938 kB / 250 MB, free: 8.844 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.553e-05/0.003696, allocations: 65.02 kB / 250.1 MB, free: 8.766 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.779e-05/0.003724, allocations: 22.55 kB / 250.1 MB, free: 8.734 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.048e-05/0.003735, allocations: 8.859 kB / 250.1 MB, free: 8.723 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.539e-06/0.003739, allocations: 0 / 250.1 MB, free: 8.723 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.735e-05/0.003836, allocations: 150.3 kB / 250.3 MB, free: 8.539 MB / 250.7 MB Notification: Performance of pre-optimization done (n=2): time 5.91e-07/0.003837, allocations: 0 / 250.3 MB, free: 8.539 MB / 250.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002472/0.004084, allocations: 126.7 kB / 250.4 MB, free: 8.391 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.153e-05/0.004106, allocations: 51.41 kB / 250.4 MB, free: 8.328 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.054e-05/0.004156, allocations: 114.7 kB / 250.5 MB, free: 8.203 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.218e-06/0.004166, allocations: 25.7 kB / 250.6 MB, free: 8.172 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.738e-05/0.004183, allocations: 80.14 kB / 250.6 MB, free: 8.09 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.027e-05/0.004203, allocations: 12.08 kB / 250.7 MB, free: 8.078 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.126e-05/0.004224, allocations: 21.7 kB / 250.7 MB, free: 8.051 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 5.954e-05/0.004284, allocations: 314.8 kB / 251 MB, free: 7.734 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.394e-05/0.004298, allocations: 33.69 kB / 251 MB, free: 7.695 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.399e-05/0.004322, allocations: 65.12 kB / 251.1 MB, free: 7.613 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.202e-05/0.004354, allocations: 73.06 kB / 251.2 MB, free: 7.523 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.004356, allocations: 0 / 251.2 MB, free: 7.523 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 4.651e-05/0.004402, allocations: 89.09 kB / 251.2 MB, free: 7.418 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.576e-05/0.004428, allocations: 37.86 kB / 251.3 MB, free: 7.375 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.004434, allocations: 3.984 kB / 251.3 MB, free: 7.371 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.285e-06/0.004442, allocations: 3.938 kB / 251.3 MB, free: 7.367 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.518e-05/0.004487, allocations: 4 kB / 251.3 MB, free: 7.363 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.066e-06/0.00449, allocations: 0 / 251.3 MB, free: 7.363 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.177e-05/0.004512, allocations: 4 kB / 251.3 MB, free: 7.359 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.533e-06/0.004518, allocations: 3.938 kB / 251.3 MB, free: 7.355 MB / 250.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 5.042e-05/0.004569, allocations: 139.5 kB / 251.4 MB, free: 7.203 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.766e-06/0.004578, allocations: 7.984 kB / 251.4 MB, free: 7.195 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.378e-05/0.004591, allocations: 3.625 kB / 251.4 MB, free: 7.191 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.202e-06/0.004593, allocations: 4 kB / 251.4 MB, free: 7.188 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.112e-06/0.004594, allocations: 0 / 251.4 MB, free: 7.188 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.004596, allocations: 0 / 251.4 MB, free: 7.188 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.482e-05/0.004641, allocations: 77.81 kB / 251.5 MB, free: 7.094 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.71e-07/0.004641, allocations: 0 / 251.5 MB, free: 7.094 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.458e-06/0.004651, allocations: 7.938 kB / 251.5 MB, free: 7.086 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.31e-06/0.004656, allocations: 0 / 251.5 MB, free: 7.086 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.82e-07/0.004657, allocations: 0 / 251.5 MB, free: 7.086 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.757e-06/0.004661, allocations: 0 / 251.5 MB, free: 7.086 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.01e-07/0.004661, allocations: 0 / 251.5 MB, free: 7.086 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.41e-07/0.004662, allocations: 0 / 251.5 MB, free: 7.086 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.988e-05/0.004722, allocations: 132.4 kB / 251.7 MB, free: 6.926 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.358e-06/0.004731, allocations: 0 / 251.7 MB, free: 6.926 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.344e-05/0.004744, allocations: 11.98 kB / 251.7 MB, free: 6.914 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.383e-05/0.004768, allocations: 0 / 251.7 MB, free: 6.914 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.415e-06/0.004771, allocations: 0 / 251.7 MB, free: 6.914 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.252e-05/0.004783, allocations: 16.84 kB / 251.7 MB, free: 6.895 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.004783, allocations: 0 / 251.7 MB, free: 6.895 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001119/0.004895, allocations: 19.94 kB / 251.7 MB, free: 6.875 MB / 250.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.0003148/0.00521, allocations: 211.8 kB / 251.9 MB, free: 6.719 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 8.156e-05/0.005291, allocations: 123.7 kB / 252 MB, free: 6.57 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.005295, allocations: 0 / 252 MB, free: 6.57 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 3.594e-05/0.005331, allocations: 97.84 kB / 252.1 MB, free: 6.453 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.52e-05/0.005396, allocations: 19.91 kB / 252.1 MB, free: 6.434 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002812/0.005677, allocations: 134.3 kB / 252.3 MB, free: 6.27 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.635e-05/0.005704, allocations: 59.34 kB / 252.3 MB, free: 6.191 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 9.728e-06/0.005713, allocations: 0 / 252.3 MB, free: 6.191 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.199e-05/0.005755, allocations: 63.38 kB / 252.4 MB, free: 6.129 MB / 250.7 MB Notification: Performance of SimCode: time 3.91e-07/0.005756, allocations: 288 / 252.4 MB, free: 6.129 MB / 250.7 MB Notification: Performance of Templates: time 0.002012/0.007768, allocations: 0.8448 MB / 253.2 MB, free: 5.293 MB / 250.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.5618341313675046]