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.002525/0.002525, allocations: 93.47 kB / 19.44 MB, free: 340 kB / 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.003147/0.003147, allocations: 169.2 kB / 22.76 MB, free: 1.668 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 1.715/1.715, allocations: 177.1 MB / 203.1 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] 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.008649/0.008649, allocations: 0.7883 MB / 260.4 MB, free: 12.3 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 2.525e-06/2.525e-06, allocations: 0 / 329.8 MB, free: 19.28 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.383e-05/3.636e-05, allocations: 6.25 kB / 329.8 MB, free: 19.27 MB / 266.7 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariable): time 0.00239/0.002426, allocations: 1.392 MB / 331.2 MB, free: 17.87 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009804/0.003407, allocations: 0.9156 MB / 332.1 MB, free: 16.95 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.13e-05/0.003448, allocations: 4 kB / 332.1 MB, free: 16.95 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 2.729e-05/0.003475, allocations: 0 / 332.1 MB, free: 16.95 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002431/0.003719, allocations: 7.875 kB / 332.1 MB, free: 16.94 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.0001849/0.003903, allocations: 43.83 kB / 332.2 MB, free: 16.89 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 8.645e-05/0.00399, allocations: 27.91 kB / 332.2 MB, free: 16.87 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.493e-05/0.004035, allocations: 0 / 332.2 MB, free: 16.87 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.867e-05/0.004093, allocations: 11.94 kB / 332.2 MB, free: 16.86 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.028e-05/0.004184, allocations: 7.984 kB / 332.2 MB, free: 16.85 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.545e-05/0.004199, allocations: 4 kB / 332.2 MB, free: 16.84 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.798e-05/0.004287, allocations: 39.91 kB / 332.3 MB, free: 16.8 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.447e-05/0.004302, allocations: 0 / 332.3 MB, free: 16.8 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 3.185e-05/0.004333, allocations: 11.92 kB / 332.3 MB, free: 16.79 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001495/0.004483, allocations: 55.81 kB / 332.3 MB, free: 16.74 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.004486, allocations: 0 / 332.3 MB, free: 16.74 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.81e-07/0.004487, allocations: 0 / 332.3 MB, free: 16.74 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.004492, allocations: 8 kB / 332.3 MB, free: 16.73 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.0003918/0.004884, allocations: 393.9 kB / 332.7 MB, free: 16.3 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.004922, allocations: 11.97 kB / 332.7 MB, free: 16.29 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.482e-05/0.004967, allocations: 4.938 kB / 332.7 MB, free: 16.29 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.293e-05/0.00506, allocations: 116.6 kB / 332.8 MB, free: 16.14 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.26e-05/0.005072, allocations: 384 / 332.8 MB, free: 16.14 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.194e-05/0.005084, allocations: 4.375 kB / 332.9 MB, free: 16.14 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001091/0.005193, allocations: 63.95 kB / 332.9 MB, free: 16.07 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.005201, allocations: 192 / 332.9 MB, free: 16.07 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.025e-05/0.005211, allocations: 384 / 332.9 MB, free: 16.07 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.005216, allocations: 4.375 kB / 332.9 MB, free: 16.06 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.389e-05/0.00526, allocations: 11.88 kB / 332.9 MB, free: 16.05 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001142/0.005374, allocations: 120.7 kB / 333 MB, free: 15.9 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.373e-05/0.005438, allocations: 27.06 kB / 333.1 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.292e-05/0.005471, allocations: 15.75 kB / 333.1 MB, free: 15.84 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.236e-05/0.005483, allocations: 0 / 333.1 MB, free: 15.84 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001333/0.005616, allocations: 159.9 kB / 333.2 MB, free: 15.64 MB / 266.7 MB Notification: Performance of pre-optimization done (n=2): time 9.42e-07/0.005617, allocations: 0 / 333.2 MB, free: 15.64 MB / 266.7 MB Notification: Performance of matching and sorting (n=2): time 0.0002402/0.005857, allocations: 146.7 kB / 333.4 MB, free: 15.48 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.768e-05/0.005885, allocations: 77.11 kB / 333.5 MB, free: 15.38 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.367e-05/0.005949, allocations: 173.9 kB / 333.6 MB, free: 15.2 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 8.396e-06/0.005957, allocations: 25.7 kB / 333.7 MB, free: 15.16 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.535e-05/0.005992, allocations: 130.9 kB / 333.8 MB, free: 15.03 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.362e-05/0.006016, allocations: 7.938 kB / 333.8 MB, free: 15.02 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.467e-05/0.006051, allocations: 15.38 kB / 333.8 MB, free: 15 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.065e-05/0.006131, allocations: 0.4923 MB / 334.3 MB, free: 14.5 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.557e-05/0.006177, allocations: 29.7 kB / 334.3 MB, free: 14.46 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.831e-05/0.006225, allocations: 45.2 kB / 334.4 MB, free: 14.4 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.496e-05/0.00631, allocations: 98.77 kB / 334.5 MB, free: 14.29 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.006312, allocations: 0 / 334.5 MB, free: 14.29 MB / 266.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001403/0.006453, allocations: 109 kB / 334.6 MB, free: 14.16 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.56e-05/0.006478, allocations: 29.7 kB / 334.6 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.76e-06/0.006484, allocations: 3.984 kB / 334.6 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.006503, allocations: 4 kB / 334.6 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.448e-05/0.006567, allocations: 0 / 334.6 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.006575, allocations: 11.98 kB / 334.6 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.038e-05/0.006615, allocations: 4 kB / 334.6 MB, free: 14.1 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.951e-06/0.006621, allocations: 0 / 334.6 MB, free: 14.1 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 7.763e-05/0.006699, allocations: 190.2 kB / 334.8 MB, free: 13.9 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.981e-05/0.006719, allocations: 4 kB / 334.8 MB, free: 13.89 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.237e-05/0.006741, allocations: 3.625 kB / 334.8 MB, free: 13.89 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.534e-06/0.006744, allocations: 4 kB / 334.8 MB, free: 13.89 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.006749, allocations: 3.984 kB / 334.8 MB, free: 13.88 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.006753, allocations: 3.938 kB / 334.8 MB, free: 13.88 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.331e-05/0.006826, allocations: 112.6 kB / 334.9 MB, free: 13.73 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-06/0.006827, allocations: 4 kB / 335 MB, free: 13.73 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.788e-05/0.006855, allocations: 7.984 kB / 335 MB, free: 13.72 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.006857, allocations: 0 / 335 MB, free: 13.72 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.735e-06/0.006865, allocations: 0 / 335 MB, free: 13.72 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.006866, allocations: 0 / 335 MB, free: 13.72 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.006867, allocations: 0 / 335 MB, free: 13.72 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000153/0.00702, allocations: 155.7 kB / 335.1 MB, free: 13.54 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.955e-06/0.007028, allocations: 0 / 335.1 MB, free: 13.54 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.258e-05/0.007041, allocations: 0 / 335.1 MB, free: 13.54 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.68e-05/0.007067, allocations: 4 kB / 335.1 MB, free: 13.53 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.465e-05/0.007112, allocations: 8.016 kB / 335.1 MB, free: 13.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.811e-06/0.007118, allocations: 4 kB / 335.1 MB, free: 13.52 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.099e-05/0.007149, allocations: 131.1 kB / 335.3 MB, free: 13.39 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.007149, allocations: 0 / 335.3 MB, free: 13.39 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002005/0.007349, allocations: 15.98 kB / 335.3 MB, free: 13.38 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.0005616/0.007911, allocations: 200.1 kB / 335.5 MB, free: 13.21 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001519/0.008063, allocations: 130.4 kB / 335.6 MB, free: 13.05 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.008066, allocations: 4 kB / 335.6 MB, free: 13.05 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.076e-05/0.008117, allocations: 96.78 kB / 335.7 MB, free: 12.93 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002084/0.008325, allocations: 4.188 kB / 335.7 MB, free: 12.93 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003264/0.008651, allocations: 153.8 kB / 335.8 MB, free: 12.74 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.025e-05/0.008692, allocations: 59.34 kB / 335.9 MB, free: 12.66 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.284e-05/0.008715, allocations: 7.938 kB / 335.9 MB, free: 12.66 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.415e-05/0.008739, allocations: 8.5 kB / 335.9 MB, free: 12.65 MB / 266.7 MB Notification: Performance of SimCode: time 5.31e-07/0.008739, allocations: 0 / 335.9 MB, free: 12.65 MB / 266.7 MB Notification: Performance of Templates: time 0.00425/0.01299, allocations: 0.7964 MB / 336.7 MB, free: 11.86 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: 4.9389492981135845]