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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo", uses=false) Using package KeyWordIO with version 0.11.X (/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/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: translateModel(KeyWordIO.Examples.WriteRealVariables,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariables") translateModel(KeyWordIO.Examples.WriteRealVariables,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.WriteRealVariables") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001534/0.001534, allocations: 107.5 kB / 15.99 MB, free: 5.91 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001356/0.001356, allocations: 192.5 kB / 16.91 MB, free: 5.758 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.315/1.315, allocations: 222.9 MB / 240.6 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.005967/0.005967, allocations: 0.9956 MB / 291.7 MB, free: 14 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 55.91 kB / 352.2 MB, free: 1.477 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2253/0.2266, allocations: 49.64 MB / 401.9 MB, free: 35.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.002113/0.2287, allocations: 1.433 MB / 403.3 MB, free: 34.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009233/0.2297, allocations: 0.7871 MB / 404.1 MB, free: 33.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.505e-05/0.2297, allocations: 0 / 404.1 MB, free: 33.55 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.78e-05/0.2298, allocations: 3.938 kB / 404.1 MB, free: 33.54 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001782/0.2299, allocations: 15.97 kB / 404.1 MB, free: 33.53 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/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.0002229/0.2302, allocations: 39.91 kB / 404.1 MB, free: 33.49 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 6.452e-05/0.2303, allocations: 26.95 kB / 404.2 MB, free: 33.46 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.714e-05/0.2303, allocations: 4 kB / 404.2 MB, free: 33.46 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.654e-05/0.2303, allocations: 11.92 kB / 404.2 MB, free: 33.45 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.945e-05/0.2304, allocations: 15.92 kB / 404.2 MB, free: 33.43 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 9.708e-06/0.2304, allocations: 0 / 404.2 MB, free: 33.43 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.215e-05/0.2305, allocations: 43.97 kB / 404.2 MB, free: 33.39 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 1.178e-05/0.2306, allocations: 7.969 kB / 404.2 MB, free: 33.38 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 2.558e-05/0.2306, allocations: 19.88 kB / 404.3 MB, free: 33.36 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 9.234e-05/0.2307, allocations: 40.78 kB / 404.3 MB, free: 33.32 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.2307, allocations: 4 kB / 404.3 MB, free: 33.32 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2307, allocations: 4 kB / 404.3 MB, free: 33.32 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.94e-06/0.2307, allocations: 0 / 404.3 MB, free: 33.32 MB / 302.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.00034/0.2311, allocations: 375 kB / 404.7 MB, free: 32.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.293e-05/0.2311, allocations: 12.03 kB / 404.7 MB, free: 32.88 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.565e-05/0.2311, allocations: 4.922 kB / 404.7 MB, free: 32.88 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.019e-05/0.2312, allocations: 168.3 kB / 404.9 MB, free: 32.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.148e-05/0.2313, allocations: 384 / 404.9 MB, free: 32.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.748e-06/0.2313, allocations: 4.375 kB / 404.9 MB, free: 32.67 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001131/0.2314, allocations: 46.25 kB / 404.9 MB, free: 32.62 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.492e-06/0.2314, allocations: 192 / 404.9 MB, free: 32.62 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.989e-06/0.2314, allocations: 3.938 kB / 404.9 MB, free: 32.62 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.148e-06/0.2314, allocations: 4 kB / 404.9 MB, free: 32.61 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.419e-05/0.2315, allocations: 19.86 kB / 404.9 MB, free: 32.59 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001128/0.2316, allocations: 157.7 kB / 405.1 MB, free: 32.39 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.63e-05/0.2317, allocations: 34.56 kB / 405.1 MB, free: 32.35 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.523e-05/0.2317, allocations: 20.89 kB / 405.1 MB, free: 32.32 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.586e-06/0.2318, allocations: 0 / 405.1 MB, free: 32.32 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001349/0.2319, allocations: 144.5 kB / 405.3 MB, free: 32.15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=5): time 1.163e-06/0.2319, allocations: 0 / 405.3 MB, free: 32.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002624/0.2322, allocations: 131.2 kB / 405.4 MB, free: 32.01 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.593e-05/0.2322, allocations: 136.5 kB / 405.5 MB, free: 31.85 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.581e-05/0.2323, allocations: 117.9 kB / 405.7 MB, free: 31.72 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.304e-06/0.2323, allocations: 25.7 kB / 405.7 MB, free: 31.69 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.567e-05/0.2323, allocations: 80.14 kB / 405.8 MB, free: 31.61 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.263e-05/0.2323, allocations: 19.8 kB / 405.8 MB, free: 31.59 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.625e-05/0.2324, allocations: 13.72 kB / 405.8 MB, free: 31.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.892e-05/0.2324, allocations: 314.8 kB / 406.1 MB, free: 31.25 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.073e-05/0.2325, allocations: 15.98 kB / 406.1 MB, free: 31.24 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.936e-05/0.2325, allocations: 25.7 kB / 406.1 MB, free: 31.21 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000114/0.2326, allocations: 101 kB / 406.2 MB, free: 31.09 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.2326, allocations: 0 / 406.2 MB, free: 31.09 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001352/0.2328, allocations: 103.3 kB / 406.3 MB, free: 30.98 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.7e-05/0.2328, allocations: 37.64 kB / 406.4 MB, free: 30.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.508e-06/0.2328, allocations: 0 / 406.4 MB, free: 30.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.2328, allocations: 8.047 kB / 406.4 MB, free: 30.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.292e-05/0.2329, allocations: 4 kB / 406.4 MB, free: 30.92 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/0.2329, allocations: 0 / 406.4 MB, free: 30.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.667e-05/0.233, allocations: 7.906 kB / 406.4 MB, free: 30.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.915e-06/0.233, allocations: 4 kB / 406.4 MB, free: 30.91 MB / 302.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 9.935e-05/0.2331, allocations: 148.6 kB / 406.5 MB, free: 30.75 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.392e-05/0.2331, allocations: 8.188 kB / 406.6 MB, free: 30.74 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.836e-05/0.2331, allocations: 11.97 kB / 406.6 MB, free: 30.73 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.2331, allocations: 0 / 406.6 MB, free: 30.73 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.2331, allocations: 4 kB / 406.6 MB, free: 30.72 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.2332, allocations: 0 / 406.6 MB, free: 30.72 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.888e-05/0.2332, allocations: 165.7 kB / 406.7 MB, free: 30.51 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2332, allocations: 3.984 kB / 406.7 MB, free: 30.51 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.48e-05/0.2333, allocations: 4 kB / 406.7 MB, free: 30.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.2333, allocations: 3.938 kB / 406.7 MB, free: 30.5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.668e-06/0.2333, allocations: 0 / 406.7 MB, free: 30.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.51e-07/0.2333, allocations: 3.938 kB / 406.7 MB, free: 30.5 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.2333, allocations: 0 / 406.7 MB, free: 30.5 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000171/0.2335, allocations: 154.7 kB / 406.9 MB, free: 30.32 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.888e-05/0.2335, allocations: 77.11 kB / 407 MB, free: 30.23 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.742e-05/0.2335, allocations: 11.88 kB / 407 MB, free: 30.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.12e-05/0.2336, allocations: 4 kB / 407 MB, free: 30.21 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.204e-05/0.2336, allocations: 11.92 kB / 407 MB, free: 30.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.371e-05/0.2336, allocations: 4 kB / 407 MB, free: 30.2 MB / 302.1 MB Notification: Performance of sorting global known variables: time 2.728e-05/0.2336, allocations: 95.61 kB / 407.1 MB, free: 30.1 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2337, allocations: 0 / 407.1 MB, free: 30.1 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002093/0.2339, allocations: 23.98 kB / 407.1 MB, free: 30.08 MB / 302.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.0003357/0.2342, allocations: 192.8 kB / 407.3 MB, free: 29.92 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001653/0.2344, allocations: 103.3 kB / 407.4 MB, free: 29.8 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.2344, allocations: 0 / 407.4 MB, free: 29.8 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.342e-05/0.2345, allocations: 91.52 kB / 407.5 MB, free: 29.7 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001435/0.2346, allocations: 10.56 kB / 407.5 MB, free: 29.7 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002564/0.2349, allocations: 167.1 kB / 407.7 MB, free: 29.5 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001194/0.235, allocations: 0.6807 MB / 408.4 MB, free: 28.79 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.578e-05/0.2351, allocations: 11.44 kB / 408.4 MB, free: 28.78 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2351, allocations: 0 / 408.4 MB, free: 28.78 MB / 302.1 MB Notification: Performance of Templates: time 0.002122/0.2372, allocations: 1.014 MB / 409.4 MB, free: 27.76 MB / 302.1 MB make -j1 -f KeyWordIO_KeyWordIO.Examples.WriteRealVariables.makefile (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)