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.001131/0.001135, allocations: 110.5 kB / 16.42 MB, free: 6.504 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.001147/0.001147, allocations: 185.7 kB / 17.34 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.286/1.286, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.006215/0.006215, allocations: 1.004 MB / 292.2 MB, free: 13.77 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 63.89 kB / 403.7 MB, free: 31.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06918/0.07038, allocations: 49.64 MB / 453.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.002341/0.07276, allocations: 1.371 MB / 454.7 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001144/0.07392, allocations: 0.8208 MB / 455.5 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.313e-05/0.07397, allocations: 0 / 455.5 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.301e-05/0.074, allocations: 3.938 kB / 455.5 MB, free: 11.81 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001793/0.0742, allocations: 3.938 kB / 455.5 MB, free: 11.8 MB / 334.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.0002434/0.07446, allocations: 43.89 kB / 455.5 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.478e-05/0.07455, allocations: 27.91 kB / 455.6 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.483e-05/0.07459, allocations: 11.98 kB / 455.6 MB, free: 11.72 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.798e-05/0.07463, allocations: 7.938 kB / 455.6 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001064/0.07474, allocations: 15.92 kB / 455.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.225e-05/0.07476, allocations: 4 kB / 455.6 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001112/0.07488, allocations: 47.89 kB / 455.7 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.09e-05/0.07489, allocations: 0 / 455.7 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.275e-05/0.07493, allocations: 15.94 kB / 455.7 MB, free: 11.63 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001533/0.07509, allocations: 59.78 kB / 455.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.0751, allocations: 4 kB / 455.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.07511, allocations: 0 / 455.7 MB, free: 11.57 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.017e-06/0.07512, allocations: 0 / 455.7 MB, free: 11.57 MB / 334.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.000406/0.07553, allocations: 381 kB / 456.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.07557, allocations: 8.031 kB / 456.1 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.495e-05/0.07561, allocations: 4.891 kB / 456.1 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001273/0.07575, allocations: 172.3 kB / 456.3 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.869e-06/0.07576, allocations: 4.375 kB / 456.3 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.108e-05/0.07578, allocations: 384 / 456.3 MB, free: 10.92 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001286/0.07591, allocations: 42.19 kB / 456.3 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.271e-06/0.07593, allocations: 4.188 kB / 456.3 MB, free: 10.87 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.18e-05/0.07595, allocations: 11.92 kB / 456.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.07596, allocations: 0 / 456.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.919e-05/0.07603, allocations: 15.98 kB / 456.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000152/0.07619, allocations: 157.7 kB / 456.5 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.09e-05/0.07627, allocations: 30.56 kB / 456.5 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.973e-05/0.07633, allocations: 16.89 kB / 456.6 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.848e-06/0.07634, allocations: 7.938 kB / 456.6 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002003/0.07655, allocations: 156.4 kB / 456.7 MB, free: 10.39 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.553e-06/0.07656, allocations: 0 / 456.7 MB, free: 10.39 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.000297/0.07686, allocations: 119.3 kB / 456.8 MB, free: 10.26 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.733e-05/0.07694, allocations: 132.5 kB / 457 MB, free: 10.1 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.899e-05/0.07703, allocations: 109.8 kB / 457.1 MB, free: 9.98 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.469e-05/0.07705, allocations: 29.73 kB / 457.1 MB, free: 9.945 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.153e-05/0.0771, allocations: 92.06 kB / 457.2 MB, free: 9.852 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.681e-05/0.07713, allocations: 15.89 kB / 457.2 MB, free: 9.836 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.384e-05/0.07717, allocations: 13.72 kB / 457.2 MB, free: 9.816 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.07728, allocations: 322.8 kB / 457.5 MB, free: 9.492 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.144e-05/0.07733, allocations: 4 kB / 457.5 MB, free: 9.488 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.753e-05/0.07738, allocations: 25.7 kB / 457.6 MB, free: 9.457 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001486/0.07754, allocations: 101.1 kB / 457.7 MB, free: 9.34 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.07756, allocations: 4 kB / 457.7 MB, free: 9.336 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001757/0.07774, allocations: 103.6 kB / 457.8 MB, free: 9.223 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.454e-05/0.07778, allocations: 40.34 kB / 457.8 MB, free: 9.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.07779, allocations: 3.938 kB / 457.8 MB, free: 9.176 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.07781, allocations: 0 / 457.8 MB, free: 9.176 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.293e-05/0.07788, allocations: 12.06 kB / 457.8 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.07789, allocations: 4 kB / 457.8 MB, free: 9.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.995e-05/0.07794, allocations: 11.89 kB / 457.8 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.023e-06/0.07795, allocations: 0 / 457.8 MB, free: 9.148 MB / 334.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 0.0001375/0.07809, allocations: 155.4 kB / 458 MB, free: 8.98 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.551e-05/0.07812, allocations: 4 kB / 458 MB, free: 8.977 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.407e-05/0.07814, allocations: 7.906 kB / 458 MB, free: 8.965 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.07815, allocations: 0 / 458 MB, free: 8.965 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.07816, allocations: 7.984 kB / 458 MB, free: 8.957 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.611e-05/0.0782, allocations: 81.06 kB / 458.1 MB, free: 8.859 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.913e-05/0.07823, allocations: 4 kB / 458.1 MB, free: 8.855 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.781e-05/0.07827, allocations: 4 kB / 458.1 MB, free: 8.852 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.408e-05/0.07831, allocations: 4 kB / 458.1 MB, free: 8.848 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002529/0.07857, allocations: 254 kB / 458.4 MB, free: 8.574 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002659/0.07884, allocations: 300.4 kB / 458.6 MB, free: 8.258 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 7.014e-05/0.07892, allocations: 35.98 kB / 458.7 MB, free: 8.223 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.283e-05/0.07898, allocations: 87.59 kB / 458.8 MB, free: 8.137 MB / 334.1 MB Notification: Performance of Backend: time 5.61e-07/0.07898, allocations: 0 / 458.8 MB, free: 8.137 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006747/0.07966, allocations: 266.5 kB / 459 MB, free: 7.898 MB / 334.1 MB Notification: Performance of SimCode: time 0.0004172/0.08009, allocations: 0.6151 MB / 459.6 MB, free: 7.223 MB / 334.1 MB Notification: Performance of Templates: time 0.003257/0.08336, allocations: 0.9413 MB / 460.6 MB, free: 6.281 MB / 334.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)