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.001014/0.001014, allocations: 116.5 kB / 16.42 MB, free: 6.02 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.001126/0.001126, allocations: 188.3 kB / 17.35 MB, free: 5.633 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.276/1.276, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/package.mo): time 0.006274/0.006274, allocations: 1.004 MB / 292.2 MB, free: 13.77 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 63.89 kB / 403.6 MB, free: 31.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07438/0.07565, allocations: 49.65 MB / 453.3 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.WriteRealVariables): time 0.002356/0.07804, allocations: 1.367 MB / 454.7 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001197/0.07926, allocations: 0.817 MB / 455.5 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.492e-05/0.07932, allocations: 0 / 455.5 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.052e-05/0.07937, allocations: 3.938 kB / 455.5 MB, free: 11.94 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001848/0.07956, allocations: 11.92 kB / 455.5 MB, free: 11.93 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.0002804/0.07985, allocations: 43.83 kB / 455.5 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.14e-05/0.07996, allocations: 27.91 kB / 455.6 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.866e-05/0.08, allocations: 3.938 kB / 455.6 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.17e-05/0.08004, allocations: 11.94 kB / 455.6 MB, free: 11.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001068/0.08015, allocations: 19.92 kB / 455.6 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.095e-05/0.08017, allocations: 4 kB / 455.6 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001179/0.08029, allocations: 47.95 kB / 455.6 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.105e-05/0.08031, allocations: 0 / 455.6 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.332e-05/0.08035, allocations: 15.92 kB / 455.7 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001459/0.0805, allocations: 55.88 kB / 455.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.08051, allocations: 0 / 455.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.08052, allocations: 0 / 455.7 MB, free: 11.7 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.193e-06/0.08053, allocations: 0 / 455.7 MB, free: 11.7 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.000422/0.08096, allocations: 388.9 kB / 456.1 MB, free: 11.26 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.081, allocations: 12.03 kB / 456.1 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.333e-05/0.08104, allocations: 4.938 kB / 456.1 MB, free: 11.25 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001292/0.08118, allocations: 168.3 kB / 456.3 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.036e-05/0.08119, allocations: 4.375 kB / 456.3 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.298e-05/0.08121, allocations: 384 / 456.3 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000122/0.08134, allocations: 46.25 kB / 456.3 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.372e-06/0.08135, allocations: 192 / 456.3 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.094e-05/0.08137, allocations: 3.938 kB / 456.3 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.177e-06/0.08138, allocations: 0 / 456.3 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.573e-05/0.08146, allocations: 23.98 kB / 456.4 MB, free: 10.96 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001525/0.08162, allocations: 157.6 kB / 456.5 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.438e-05/0.0817, allocations: 34.55 kB / 456.5 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.121e-05/0.08176, allocations: 20.92 kB / 456.6 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.04e-05/0.08177, allocations: 0 / 456.6 MB, free: 10.69 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001621/0.08194, allocations: 144.5 kB / 456.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.292e-06/0.08195, allocations: 0 / 456.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0003201/0.08228, allocations: 131.2 kB / 456.8 MB, free: 10.38 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.958e-05/0.08235, allocations: 132.5 kB / 457 MB, free: 10.22 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.675e-05/0.08244, allocations: 105.8 kB / 457.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.507e-05/0.08246, allocations: 29.7 kB / 457.1 MB, free: 10.07 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.507e-05/0.0825, allocations: 84.14 kB / 457.2 MB, free: 9.984 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.245e-05/0.08254, allocations: 11.8 kB / 457.2 MB, free: 9.973 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.64e-05/0.08258, allocations: 25.73 kB / 457.2 MB, free: 9.941 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001091/0.0827, allocations: 318.8 kB / 457.5 MB, free: 9.621 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.786e-05/0.08275, allocations: 7.984 kB / 457.5 MB, free: 9.613 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.928e-05/0.08281, allocations: 21.72 kB / 457.6 MB, free: 9.586 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001539/0.08297, allocations: 109 kB / 457.7 MB, free: 9.461 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.08298, allocations: 0 / 457.7 MB, free: 9.461 MB / 334.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001661/0.08315, allocations: 99.38 kB / 457.8 MB, free: 9.352 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.366e-05/0.08319, allocations: 41.58 kB / 457.8 MB, free: 9.305 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.08321, allocations: 4.188 kB / 457.8 MB, free: 9.301 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.135e-05/0.08322, allocations: 0 / 457.8 MB, free: 9.301 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.617e-05/0.08329, allocations: 12 kB / 457.8 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.08331, allocations: 7.922 kB / 457.8 MB, free: 9.281 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.125e-05/0.08335, allocations: 7.906 kB / 457.8 MB, free: 9.273 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.303e-06/0.08338, allocations: 4.062 kB / 457.8 MB, free: 9.27 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.0001517/0.08353, allocations: 155.3 kB / 458 MB, free: 9.105 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.634e-05/0.08356, allocations: 4 kB / 458 MB, free: 9.102 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.992e-05/0.08358, allocations: 7.906 kB / 458 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.08359, allocations: 0 / 458 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.08359, allocations: 48 / 458 MB, free: 9.09 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.701e-05/0.08364, allocations: 89 kB / 458.1 MB, free: 8.984 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.783e-05/0.08367, allocations: 0 / 458.1 MB, free: 8.984 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.05e-05/0.08371, allocations: 11.98 kB / 458.1 MB, free: 8.973 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.276e-05/0.08375, allocations: 0 / 458.1 MB, free: 8.973 MB / 334.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002518/0.08401, allocations: 262 kB / 458.3 MB, free: 8.691 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0002591/0.08428, allocations: 288.5 kB / 458.6 MB, free: 8.387 MB / 334.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 7.249e-05/0.08436, allocations: 36.05 kB / 458.7 MB, free: 8.352 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.899e-05/0.08442, allocations: 95.56 kB / 458.8 MB, free: 8.258 MB / 334.1 MB Notification: Performance of Backend: time 5.81e-07/0.08443, allocations: 0 / 458.8 MB, free: 8.258 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000671/0.0851, allocations: 256.8 kB / 459 MB, free: 8.027 MB / 334.1 MB Notification: Performance of SimCode: time 0.0004292/0.08554, allocations: 0.6189 MB / 459.6 MB, free: 7.348 MB / 334.1 MB Notification: Performance of Templates: time 0.003396/0.08895, allocations: 0.934 MB / 460.6 MB, free: 6.418 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)