Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr KeyWordIO_KeyWordIO.Examples.CaseExamples.ElectricalCases.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.CaseExamples.ElectricalCases,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.CaseExamples.ElectricalCases") translateModel(KeyWordIO.Examples.CaseExamples.ElectricalCases,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="KeyWordIO_KeyWordIO.Examples.CaseExamples.ElectricalCases") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001361/0.001361, allocations: 110.7 kB / 16.42 MB, free: 6.512 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.001371/0.001371, allocations: 189.5 kB / 17.35 MB, free: 5.738 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.318/1.318, allocations: 222.9 MB / 241 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.01078/0.01078, allocations: 1.004 MB / 292.2 MB, free: 13.76 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 75.88 kB / 403.6 MB, free: 31.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07503/0.07628, allocations: 49.65 MB / 453.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFInst.instantiate(KeyWordIO.Examples.CaseExamples.ElectricalCases): time 0.004279/0.0806, allocations: 3.136 MB / 456.4 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005552/0.08617, allocations: 3.573 MB / 460 MB, free: 7.273 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000279/0.08647, allocations: 8 kB / 460 MB, free: 7.266 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/readLine.mo:2:1-36:13:writable] Warning: Pure function 'KeyWordIO.readLine' contains a call to impure function 'KeyWordIO.readLineWithoutCache'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/readSizeCSV.mo:2:1-41:16:writable] Warning: Pure function 'KeyWordIO.readSizeCSV' contains a call to impure function 'KeyWordIO.readLine'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/readCaseNumbersCSV.mo:2:1-21:23:writable] Warning: Pure function 'KeyWordIO.readCaseNumbersCSV' contains a call to impure function 'KeyWordIO.readSizeCSV'. Notification: Performance of NFTyping.typeComponents: time 0.05292/0.1394, allocations: 9.551 MB / 469.6 MB, free: 14.86 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/readRowsCSV.mo:2:1-18:16:writable] Warning: Pure function 'KeyWordIO.readRowsCSV' contains a call to impure function 'KeyWordIO.readSizeCSV'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/readColsCSV.mo:2:1-18:16:writable] Warning: Pure function 'KeyWordIO.readColsCSV' contains a call to impure function 'KeyWordIO.readSizeCSV'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/readStringCSV.mo:2:1-85:18:writable] Warning: Pure function 'KeyWordIO.readStringCSV' contains a call to impure function 'KeyWordIO.readLine'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/readRealCSV.mo:2:1-72:16:writable] Warning: Pure function 'KeyWordIO.readRealCSV' contains a call to impure function 'KeyWordIO.readLine'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/readCaseColCSV.mo:2:1-48:19:writable] Warning: Pure function 'KeyWordIO.readCaseColCSV' contains a call to impure function 'KeyWordIO.readRowsCSV'. Notification: Performance of NFTyping.typeBindings: time 0.2489/0.3883, allocations: 44.76 MB / 0.5023 GB, free: 1.844 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/KeyWordIO 0.11.0-master/overwriteCaseCSV.mo:2:1-110:21:writable] Warning: Pure function 'KeyWordIO.overwriteCaseCSV' contains a call to impure function 'KeyWordIO.readCaseNumbersCSV'. Notification: Performance of NFTyping.typeClassSections: time 0.001661/0.39, allocations: 0.6931 MB / 0.5029 GB, free: 1.148 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.1791/0.5691, allocations: 2.524 MB / 0.5054 GB, free: 55.15 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002514/0.5716, allocations: 2.614 MB / 0.508 GB, free: 54.73 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001113/0.5728, allocations: 1.068 MB / 0.509 GB, free: 54.55 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001166/0.5739, allocations: 1.333 MB / 0.5103 GB, free: 54.34 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003454/0.5743, allocations: 241.4 kB / 0.5105 GB, free: 54.34 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002269/0.5766, allocations: 1.304 MB / 0.5118 GB, free: 54.34 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004218/0.577, allocations: 0.5682 MB / 0.5124 GB, free: 54.11 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001085/0.5781, allocations: 1.177 MB / 0.5135 GB, free: 53.41 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003734/0.5818, allocations: 4.101 MB / 0.5175 GB, free: 52.17 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.5819, allocations: 1.219 kB / 0.5175 GB, free: 52.17 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.5819, allocations: 0 / 0.5175 GB, free: 52.17 MB / 382.1 MB Notification: Performance of Transformations before backend: time 3.564e-05/0.5819, allocations: 0 / 0.5175 GB, free: 52.17 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 582 * Number of variables: 582 Notification: Performance of Generate backend data structure: time 0.007822/0.5897, allocations: 3.574 MB / 0.521 GB, free: 50.19 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.358e-05/0.5898, allocations: 8.656 kB / 0.521 GB, free: 50.19 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01789/0.6077, allocations: 4.139 MB / 0.5251 GB, free: 47.5 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002438/0.6101, allocations: 1.254 MB / 0.5263 GB, free: 46.26 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.706e-05/0.6102, allocations: 169.3 kB / 0.5264 GB, free: 46.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003719/0.6106, allocations: 235.8 kB / 0.5267 GB, free: 45.86 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004402/0.615, allocations: 3.338 MB / 0.5299 GB, free: 42.47 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.988e-05/0.6151, allocations: 11.91 kB / 0.5299 GB, free: 42.46 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002345/0.6153, allocations: 96 kB / 0.53 GB, free: 42.37 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.919e-05/0.6154, allocations: 56 kB / 0.5301 GB, free: 42.31 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004859/0.6202, allocations: 4.061 MB / 0.5341 GB, free: 38.24 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01286/0.6331, allocations: 11.3 MB / 0.5451 GB, free: 26.7 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006186/0.6393, allocations: 8.047 MB / 0.5529 GB, free: 17.82 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001239/0.6406, allocations: 1.263 MB / 0.5542 GB, free: 16.55 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001334/0.6407, allocations: 129.5 kB / 0.5543 GB, free: 16.42 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001423/0.6422, allocations: 1.411 MB / 0.5557 GB, free: 14.96 MB / 382.1 MB Notification: Performance of pre-optimization done (n=187): time 3.597e-06/0.6422, allocations: 0 / 0.5557 GB, free: 14.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=187): time 0.006396/0.6486, allocations: 4.709 MB / 0.5603 GB, free: 10.14 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.192e-05/0.6487, allocations: 384.7 kB / 0.5606 GB, free: 9.684 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009844/0.6496, allocations: 0.9877 MB / 0.5616 GB, free: 8.688 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.998e-05/0.6497, allocations: 57.7 kB / 0.5617 GB, free: 8.625 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002764/0.65, allocations: 0.8064 MB / 0.5625 GB, free: 7.812 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003136/0.6504, allocations: 0.6291 MB / 0.5631 GB, free: 7.188 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005059/0.6509, allocations: 415.7 kB / 0.5635 GB, free: 6.773 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.263e-05/0.6509, allocations: 338 kB / 0.5638 GB, free: 6.438 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001328/0.6523, allocations: 1.263 MB / 0.565 GB, free: 5.164 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001478/0.6537, allocations: 1.732 MB / 0.5667 GB, free: 3.223 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002706/0.6565, allocations: 2.952 MB / 0.5696 GB, free: 140 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.057e-06/0.6565, allocations: 4 kB / 0.5696 GB, free: 136 kB / 382.1 MB Notification: Performance of matching and sorting (n=277) (initialization): time 0.005365/0.6618, allocations: 3.577 MB / 0.5731 GB, free: 12.62 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.651e-05/0.6619, allocations: 11.98 kB / 0.5731 GB, free: 12.61 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.249e-05/0.6619, allocations: 16 kB / 0.5731 GB, free: 12.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001619/0.6635, allocations: 0.5606 MB / 0.5737 GB, free: 12.02 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001778/0.6653, allocations: 0.5292 MB / 0.5742 GB, free: 11.51 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01038/0.6757, allocations: 12.52 MB / 0.5864 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002025/0.6778, allocations: 381.7 kB / 0.5868 GB, free: 13.85 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001692/0.678, allocations: 96.03 kB / 0.5869 GB, free: 13.75 MB / 414.1 MB Warning: Assuming fixed start value for the following 6 variables: electrical[6].voltageSource.pin_p.reference.gamma:VARIABLE(flow=false start = 0.0 unit = "rad" fixed = true ) type: Real [6] electrical[5].voltageSource.pin_p.reference.gamma:VARIABLE(flow=false start = 0.0 unit = "rad" fixed = true ) type: Real [6] electrical[4].voltageSource.pin_p.reference.gamma:VARIABLE(flow=false start = 0.0 unit = "rad" fixed = true ) type: Real [6] electrical[3].voltageSource.pin_p.reference.gamma:VARIABLE(flow=false start = 0.0 unit = "rad" fixed = true ) type: Real [6] electrical[2].voltageSource.pin_p.reference.gamma:VARIABLE(flow=false start = 0.0 unit = "rad" fixed = true ) type: Real [6] electrical[1].voltageSource.pin_p.reference.gamma:VARIABLE(flow=false start = 0.0 unit = "rad" fixed = true ) type: Real [6] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * 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 (247): * Single equations (assignments): 241 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,5,100.0%), (1,5,100.0%), (1,5,100.0%), (1,5,100.0%), (1,5,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001247/0.6792, allocations: 0.7811 MB / 0.5876 GB, free: 12.99 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002488/0.6795, allocations: 114.7 kB / 0.5877 GB, free: 12.88 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004914/0.6844, allocations: 3.138 MB / 0.5908 GB, free: 9.723 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.879e-05/0.6844, allocations: 7.969 kB / 0.5908 GB, free: 9.715 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.6844, allocations: 4 kB / 0.5908 GB, free: 9.711 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004058/0.6848, allocations: 255.2 kB / 0.5911 GB, free: 9.441 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001964/0.685, allocations: 40 kB / 0.5911 GB, free: 9.402 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009343/0.686, allocations: 219.6 kB / 0.5913 GB, free: 9.188 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00022/0.6862, allocations: 140.4 kB / 0.5914 GB, free: 9.055 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.005532/0.6918, allocations: 3.853 MB / 0.5952 GB, free: 5.219 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.004891/0.6967, allocations: 4.34 MB / 0.5994 GB, free: 0.8594 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001379/0.698, allocations: 1.202 MB / 0.6006 GB, free: 15.65 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0008574/0.6989, allocations: 0.6668 MB / 0.6013 GB, free: 14.99 MB / 430.1 MB Notification: Performance of Backend: time 5.21e-07/0.6989, allocations: 0 / 0.6013 GB, free: 14.99 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006309/0.7052, allocations: 3.393 MB / 0.6046 GB, free: 11.71 MB / 430.1 MB Notification: Performance of SimCode: time 0.005424/0.7107, allocations: 4.293 MB / 0.6088 GB, free: 7.355 MB / 430.1 MB Notification: Performance of Templates: time 0.05701/0.7677, allocations: 37.18 MB / 0.6451 GB, free: 2.438 MB / 462.1 MB make -j1 -f KeyWordIO_KeyWordIO.Examples.CaseExamples.ElectricalCases.makefile (rm -f KeyWordIO_KeyWordIO.Examples.CaseExamples.ElectricalCases.pipe ; mkfifo KeyWordIO_KeyWordIO.Examples.CaseExamples.ElectricalCases.pipe ; head -c 1048576 < KeyWordIO_KeyWordIO.Examples.CaseExamples.ElectricalCases.pipe >> ../files/KeyWordIO_KeyWordIO.Examples.CaseExamples.ElectricalCases.sim & ./KeyWordIO_KeyWordIO.Examples.CaseExamples.ElectricalCases -abortSlowSimulation -alarm=480 -lv LOG_STATS > KeyWordIO_KeyWordIO.Examples.CaseExamples.ElectricalCases.pipe 2>&1)