Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ScalableTestGrids_NumericalJacobian_ScalableTestGrids.GridModelBuilders.Type1Sample_N_1_M_2.conf.json 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 3.2.3+maint.om/package.mo", uses=false) 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/PowerGrids 1.0.2/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestGrids 1.1.0-master/package.mo", uses=false) Using package ScalableTestGrids with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestGrids 1.1.0-master/package.mo) Using package PowerGrids with version 1.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/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) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Running command: translateModel(ScalableTestGrids.GridModelBuilders.Type1Sample_N_1_M_2,tolerance=0.0001,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ScalableTestGrids_NumericalJacobian_ScalableTestGrids.GridModelBuilders.Type1Sample_N_1_M_2") translateModel(ScalableTestGrids.GridModelBuilders.Type1Sample_N_1_M_2,tolerance=0.0001,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ScalableTestGrids_NumericalJacobian_ScalableTestGrids.GridModelBuilders.Type1Sample_N_1_M_2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009255/0.0009255, allocations: 197.7 kB / 16.71 MB, free: 6.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.313/0.313, allocations: 205.5 MB / 223 MB, free: 160 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008746/0.0008746, allocations: 101.3 kB / 270.4 MB, free: 8.551 MB / 222.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.2/package.mo): time 0.09885/0.09885, allocations: 14.43 MB / 332.2 MB, free: 44.78 MB / 270.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ScalableTestGrids 1.1.0-master/package.mo): time 1.196/1.196, allocations: 460.6 MB / 0.8239 GB, free: 11.99 MB / 0.6388 GB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 71.89 kB / 1.006 GB, free: 11.94 MB / 0.7327 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1963/0.1975, allocations: 171.9 MB / 1.174 GB, free: 15.7 MB / 0.9045 GB Notification: Performance of NFInst.instantiate(ScalableTestGrids.GridModelBuilders.Type1Sample_N_1_M_2): time 0.03958/0.2371, allocations: 64.69 MB / 1.237 GB, free: 14.75 MB / 0.967 GB Notification: Performance of NFInst.instExpressions: time 0.644/0.8811, allocations: 23.34 MB / 1.26 GB, free: 38.56 MB / 0.9673 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.007755/0.8889, allocations: 244.8 kB / 1.26 GB, free: 38.56 MB / 0.9673 GB Notification: Performance of NFTyping.typeComponents: time 0.005491/0.8945, allocations: 2.804 MB / 1.263 GB, free: 38.51 MB / 0.9673 GB Notification: Performance of NFTyping.typeBindings: time 0.01582/0.9103, allocations: 8.026 MB / 1.27 GB, free: 38.23 MB / 0.9673 GB Notification: Performance of NFTyping.typeClassSections: time 0.004398/0.9147, allocations: 3.01 MB / 1.273 GB, free: 38.15 MB / 0.9673 GB Notification: Performance of NFFlatten.flatten: time 0.01874/0.9334, allocations: 22.13 MB / 1.295 GB, free: 29.9 MB / 0.9673 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004132/0.9376, allocations: 2.515 MB / 1.297 GB, free: 28.77 MB / 0.9673 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007642/0.9453, allocations: 6.418 MB / 1.304 GB, free: 25.44 MB / 0.9673 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008496/0.9538, allocations: 6.805 MB / 1.31 GB, free: 22.17 MB / 0.9673 GB Notification: Performance of NFPackage.collectConstants: time 0.002241/0.956, allocations: 0.8958 MB / 1.311 GB, free: 22.17 MB / 0.9673 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005243/0.9613, allocations: 1.895 MB / 1.313 GB, free: 22.02 MB / 0.9673 GB Notification: Performance of NFScalarize.scalarize: time 0.001171/0.9625, allocations: 2.06 MB / 1.315 GB, free: 20.55 MB / 0.9673 GB Notification: Performance of NFVerifyModel.verify: time 0.006161/0.9686, allocations: 6.467 MB / 1.321 GB, free: 16.44 MB / 0.9673 GB Notification: Performance of NFConvertDAE.convert: time 0.01195/0.9806, allocations: 15.19 MB / 1.336 GB, free: 10.36 MB / 0.9673 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.9806, allocations: 0 / 1.336 GB, free: 10.36 MB / 0.9673 GB Notification: Performance of FrontEnd: time 1.233e-06/0.9806, allocations: 1.438 kB / 1.336 GB, free: 10.36 MB / 0.9673 GB Notification: Performance of Transformations before backend: time 0.0002257/0.9809, allocations: 2.25 kB / 1.336 GB, free: 10.36 MB / 0.9673 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2196 * Number of variables: 2196 Notification: Performance of Generate backend data structure: time 0.03745/1.018, allocations: 15.69 MB / 1.351 GB, free: 0.7656 MB / 0.9673 GB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/1.018, allocations: 9.078 kB / 1.352 GB, free: 0.7656 MB / 0.9673 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005136/1.023, allocations: 1.647 MB / 1.353 GB, free: 15.95 MB / 0.9829 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0101/1.034, allocations: 6.63 MB / 1.36 GB, free: 11.07 MB / 0.9829 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003561/1.034, allocations: 0.6582 MB / 1.36 GB, free: 10.76 MB / 0.9829 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008774/1.035, allocations: 0.8633 MB / 1.361 GB, free: 10.47 MB / 0.9829 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01115/1.046, allocations: 8.979 MB / 1.37 GB, free: 4.75 MB / 0.9829 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001292/1.046, allocations: 18.5 kB / 1.37 GB, free: 4.738 MB / 0.9829 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005511/1.047, allocations: 355.9 kB / 1.37 GB, free: 4.469 MB / 0.9829 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001328/1.047, allocations: 212.7 kB / 1.37 GB, free: 4.469 MB / 0.9829 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01209/1.059, allocations: 8.515 MB / 1.379 GB, free: 328 kB / 0.9829 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04665/1.106, allocations: 53.75 MB / 1.431 GB, free: 14.5 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01262/1.118, allocations: 10.67 MB / 1.442 GB, free: 3.812 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00474/1.123, allocations: 4.011 MB / 1.446 GB, free: 15.8 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002994/1.123, allocations: 115.1 kB / 1.446 GB, free: 15.69 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.873e-05/1.123, allocations: 125.7 kB / 1.446 GB, free: 15.56 MB / 1.061 GB Notification: Performance of pre-optimization done (n=909): time 1.018e-05/1.123, allocations: 0 / 1.446 GB, free: 15.56 MB / 1.061 GB Notification: Performance of matching and sorting (n=911): time 0.03037/1.154, allocations: 20.42 MB / 1.466 GB, free: 11.07 MB / 1.077 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001236/1.154, allocations: 348.2 kB / 1.466 GB, free: 10.66 MB / 1.077 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005602/1.16, allocations: 5.794 MB / 1.472 GB, free: 4.918 MB / 1.077 GB Notification: Performance of collectPreVariables (initialization): time 0.0003877/1.16, allocations: 189.7 kB / 1.472 GB, free: 4.727 MB / 1.077 GB Notification: Performance of collectInitialEqns (initialization): time 0.002176/1.162, allocations: 4.059 MB / 1.476 GB, free: 0.6602 MB / 1.077 GB Notification: Performance of collectInitialBindings (initialization): time 0.001868/1.164, allocations: 3.138 MB / 1.479 GB, free: 13.54 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001946/1.166, allocations: 1.737 MB / 1.481 GB, free: 11.8 MB / 1.092 GB Notification: Performance of setup shared object (initialization): time 6.301e-05/1.166, allocations: 305.1 kB / 1.481 GB, free: 11.5 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004474/1.17, allocations: 3.264 MB / 1.484 GB, free: 8.223 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005495/1.176, allocations: 5.27 MB / 1.489 GB, free: 2.23 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01043/1.186, allocations: 8.587 MB / 1.498 GB, free: 8.926 MB / 1.108 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.193e-05/1.186, allocations: 16 kB / 1.498 GB, free: 8.91 MB / 1.108 GB Notification: Performance of matching and sorting (n=1353) (initialization): time 0.02299/1.209, allocations: 13.88 MB / 1.511 GB, free: 10.89 MB / 1.124 GB Notification: Performance of prepare postOptimizeDAE: time 3.769e-05/1.21, allocations: 24.19 kB / 1.511 GB, free: 10.87 MB / 1.124 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.444e-05/1.21, allocations: 52 kB / 1.511 GB, free: 10.82 MB / 1.124 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02434/1.234, allocations: 6.229 MB / 1.517 GB, free: 4.535 MB / 1.124 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006041/1.24, allocations: 1.956 MB / 1.519 GB, free: 2.578 MB / 1.124 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0629/1.303, allocations: 57.93 MB / 1.576 GB, free: 5.816 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007156/1.31, allocations: 0.5329 MB / 1.576 GB, free: 5.281 MB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004738/1.311, allocations: 376 kB / 1.577 GB, free: 4.914 MB / 1.186 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.006122/1.317, allocations: 4.254 MB / 1.581 GB, free: 0.6523 MB / 1.186 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.004882/1.322, allocations: 5.03 MB / 1.586 GB, free: 10.9 MB / 1.202 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.009513/1.331, allocations: 8.268 MB / 1.594 GB, free: 1.914 MB / 1.202 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.238e-05/1.331, allocations: 12 kB / 1.594 GB, free: 1.902 MB / 1.202 GB Notification: Performance of matching and sorting (n=1353) (initialization_lambda0): time 0.01848/1.35, allocations: 12.19 MB / 1.606 GB, free: 5.582 MB / 1.217 GB Notification: Performance of prepare postOptimizeDAE: time 3.146e-05/1.35, allocations: 24 kB / 1.606 GB, free: 5.559 MB / 1.217 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.364e-05/1.35, allocations: 48.91 kB / 1.606 GB, free: 5.512 MB / 1.217 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02066/1.37, allocations: 5.143 MB / 1.611 GB, free: 336 kB / 1.217 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006479/1.377, allocations: 2.102 MB / 1.613 GB, free: 14.22 MB / 1.233 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04583/1.423, allocations: 47.55 MB / 1.659 GB, free: 12.12 MB / 1.28 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006875/1.43, allocations: 458 kB / 1.66 GB, free: 11.68 MB / 1.28 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004466/1.43, allocations: 376 kB / 1.66 GB, free: 11.31 MB / 1.28 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 215 * Number of states: 0 () * Number of discrete variables: 10 (GEN_2_1.PSS.firstWashoutVsi2.integrator.local_reset,GEN_2_1.PSS.secondWashoutVsi1.integrator.local_reset,GEN_2_1.PSS.firstWashoutVsi1.integrator.local_reset,GEN_2_1.AVR.firstOrderLim.I.local_reset,GEN_2_1.TGOV.firstOrderLim.I.local_reset,GEN_1_1.PSS.firstWashoutVsi2.integrator.local_reset,GEN_1_1.PSS.secondWashoutVsi1.integrator.local_reset,GEN_1_1.PSS.firstWashoutVsi1.integrator.local_reset,GEN_1_1.AVR.firstOrderLim.I.local_reset,GEN_1_1.TGOV.firstOrderLim.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1063): * Single equations (assignments): 1043 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 20 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,0,100.0%), (2,0,100.0%), (3,0,66.7%), (3,0,66.7%), (2,0,100.0%), (2,0,100.0%), (3,0,66.7%), (3,0,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 12 systems {(38,0), (216,0), (2,0), (2,0), (2,0), (2,0), (10,0), (2,0), (2,0), (2,0), (2,0), (10,0)} Notification: Performance of prepare postOptimizeDAE: time 0.001322/1.431, allocations: 0.7361 MB / 1.661 GB, free: 10.57 MB / 1.28 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001089/1.432, allocations: 0.8955 MB / 1.662 GB, free: 9.66 MB / 1.28 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01499/1.447, allocations: 10.01 MB / 1.672 GB, free: 15.62 MB / 1.295 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.965e-05/1.448, allocations: 43.83 kB / 1.672 GB, free: 15.57 MB / 1.295 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-05/1.448, allocations: 0 / 1.672 GB, free: 15.57 MB / 1.295 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002691/1.45, allocations: 1.591 MB / 1.673 GB, free: 13.95 MB / 1.295 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008593/1.451, allocations: 152 kB / 1.673 GB, free: 13.8 MB / 1.295 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003537/1.455, allocations: 366.2 kB / 1.674 GB, free: 13.45 MB / 1.295 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008336/1.455, allocations: 0.7128 MB / 1.674 GB, free: 12.73 MB / 1.295 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0172/1.473, allocations: 9.422 MB / 1.684 GB, free: 3.48 MB / 1.295 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01297/1.486, allocations: 10.89 MB / 1.694 GB, free: 8.523 MB / 1.311 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003534/1.489, allocations: 3.015 MB / 1.697 GB, free: 5.5 MB / 1.311 GB Notification: Performance of sorting global known variables: time 0.004021/1.493, allocations: 3.675 MB / 1.701 GB, free: 1.867 MB / 1.311 GB Notification: Performance of Backend: time 4.21e-07/1.493, allocations: 0 / 1.701 GB, free: 1.867 MB / 1.311 GB Warning: The hideResult annotation could not be evaluated, probably due to missing annotation(Evaluate=true). It is removed. Notification: Performance of simCode: created initialization part: time 0.03635/1.53, allocations: 24.67 MB / 1.725 GB, free: 8.711 MB / 1.342 GB Warning: The hideResult annotation could not be evaluated, probably due to missing annotation(Evaluate=true). It is removed. Notification: Performance of SimCode: time 0.02173/1.551, allocations: 23.03 MB / 1.747 GB, free: 1.609 MB / 1.358 GB Notification: Performance of Templates: time 0.7251/2.277, allocations: 186.6 MB / 1.929 GB, free: 372 MB / 1.374 GB make -j1 -f ScalableTestGrids_NumericalJacobian_ScalableTestGrids.GridModelBuilders.Type1Sample_N_1_M_2.makefile (rm -f ScalableTestGrids_NumericalJacobian_ScalableTestGrids.GridModelBuilders.Type1Sample_N_1_M_2.pipe ; mkfifo ScalableTestGrids_NumericalJacobian_ScalableTestGrids.GridModelBuilders.Type1Sample_N_1_M_2.pipe ; head -c 1048576 < ScalableTestGrids_NumericalJacobian_ScalableTestGrids.GridModelBuilders.Type1Sample_N_1_M_2.pipe >> ../files/ScalableTestGrids_NumericalJacobian_ScalableTestGrids.GridModelBuilders.Type1Sample_N_1_M_2.sim & ./ScalableTestGrids_NumericalJacobian_ScalableTestGrids.GridModelBuilders.Type1Sample_N_1_M_2 -nls=kinsol -lv=LOG_STATS -abortSlowSimulation -alarm=300 -lv LOG_STATS > ScalableTestGrids_NumericalJacobian_ScalableTestGrids.GridModelBuilders.Type1Sample_N_1_M_2.pipe 2>&1)